1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved Drop items from player's inventory

Discussion in 'Plugin Help' started by Suyz KStudio, Jul 12, 2020.

  1. Suyz KStudio

    Suyz KStudio Creeper

    Messages:
    4
    Hi guys so I'm making plugin about instant respawn and I need help

    How to drop all items from player's inventory?

    Thanks :)
     
  2. DerDevHD

    DerDevHD Creeper

    Messages:
    1
    GitHub:
    derdevhd
    There is a method called Player::dropContents($level, $vec3)
    $level has to be an instance of your level and not the level name
    $vec3 is the position as a Vector3, you can also use $player for that

    Hope I could help you ;)
     
  3. Suyz KStudio

    Suyz KStudio Creeper

    Messages:
    4
    Thanks! I am sorry asking too much because I am new
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.