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

nodrop plugin

Comments in 'Plugin Development' started by archonpe, Nov 28, 2015.

  1. archonpe
    Offline

    archonpe New Member

    Joined:
    Oct 11, 2015
    Posts:
    3
    Minecraft User:
    ChiefArtz
    halp please
  2. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    PHP:
    public function onDrop(PlayerDropItemEvent $event){
            
    $event->setCancelled();
        }
    So easy, you should learn the API.
    Kripak and archonpe like this.
  3. archonpe
    Offline

    archonpe New Member

    Joined:
    Oct 11, 2015
    Posts:
    3
    Minecraft User:
    ChiefArtz
    is der any plugin. cause i dont know codes
  4. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    Then you put this in the wrong section. Put it into Plugin Requests.
    Vaivez66 likes this.
  5. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    I have made one. Its waiting for approval, its called NoDrop. Theres already a thread in the forums called "no block drop", use the search bar, theresthe link to the file
  6. archonpe
    Offline

    archonpe New Member

    Joined:
    Oct 11, 2015
    Posts:
    3
    Minecraft User:
    ChiefArtz
    i mean u cant drop th items in the ground.
  7. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    Oh, that sounds interesting.. Maybe i'll just add it to my plugin as option.
    The code would cancel the PlayerDropItemEvent, shouldn't be hard

Share This Page

Advertisement