Scavenger help!

Discussion in 'Plugin Development' started by Electricboy7, Aug 21, 2013.

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

    Electricboy7

    Hello, I am wanting help with the scavenger plguin. I am wondering how to make certain pex groups no able to drop their items when they die and not able to drop items by throwing them or pressing q. Thanks
     
  2. Offline

    Jade

    Moved to correct section.
     
  3. Offline

    PreFiXAUT

    Electricboy7
    Create a PlayerDropItemEvent Listener, and check if the Player is in the certain pex group (I don't know the API, or the Plugin so you have to do it by you self), and when he won't has any permissions to drop Items, event.setCancelled(true);
    That should do it.
    And the thing that Players wont lose Items when they die, I would use the Ingame commands: /gamerule keepInventory true
    OFFTOPIC: Does someone even know how to use the gamerule commands in Bukkit or aren't these implemented?
     
  4. Offline

    ISHLCMinecraft

    You can get the console command sender and make him perform the command
     
Thread Status:
Not open for further replies.

Share This Page