Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

players cant drop items

Comments in 'Plugin Development' started by PaulchenHD, Mar 25, 2016.

Thread Status:
Not open for further replies.
  1. PaulchenHD
    Offline

    PaulchenHD Active Member

    Joined:
    Jan 17, 2016
    Posts:
    111
    Minecraft User:
    Paulchen_HD
    how to code this ?
  2. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    public function onDrop(PlayerDropEvent $event){
    $event->setCancelled();
    }
  3. PaulchenHD
    Offline

    PaulchenHD Active Member

    Joined:
    Jan 17, 2016
    Posts:
    111
    Minecraft User:
    Paulchen_HD
    thx but the function's name is PlayerDropItemEvent like this:
    PHP:
      public function onDrop(PlayerDropItemEvent $event){
      
    $event->setCancelled();
    }
    }
  4. xBeastMode
    Offline

    xBeastMode Active Member

    Joined:
    Nov 27, 2015
    Posts:
    292
    If you know why do you ask?? "-_-
  5. Ritch
    Offline

    Ritch Active Member

    Joined:
    Oct 4, 2015
    Posts:
    184
    Minecraft User:
    anonymous
    OMG! Learn API !
  6. PaulchenHD
    Offline

    PaulchenHD Active Member

    Joined:
    Jan 17, 2016
    Posts:
    111
    Minecraft User:
    Paulchen_HD
    i forgot it sry.. :D
  7. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    Oh sorry, I somehow thought is it really PlayerDropEvent
  8. Nawaf_Craft1b
    Offline

    Nawaf_Craft1b Active Member Plugin Developer

    Joined:
    May 8, 2015
    Posts:
    232
    Plugins:
    1
    Minecraft User:
    Nawaf_Craft1b
    What is eror in PaulchenHD CODE !
  9. Ritch
    Offline

    Ritch Active Member

    Joined:
    Oct 4, 2015
    Posts:
    184
    Minecraft User:
    anonymous
    its not code ... it's a post of n**** How To drop with setCancelled(true); ect... It's really ? Learn API in doc ... @PaulchenHD .
Thread Status:
Not open for further replies.

Share This Page

Advertisement