Stop PvP if a player is in an ArrayList

Discussion in 'Plugin Development' started by CraftCreeper6, Apr 23, 2014.

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

    CraftCreeper6

    Hello! So my plugin uses a GUI menu to select a kit, after you select it you are put in an ArrayList,
    How would I stop people in that ArrayList:

    From using a command other than /leave;

    And finally, stopping item drops when a player dies.

    Can anyone help me? :)
     
  2. Offline

    Wizehh

  3. Offline

    CraftCreeper6

    Wizehh
    I legitimately did use Google and the Forum but found nothing, or maybe I am just the worst searcher in history....
     
  4. Offline

    Wizehh

  5. Offline

    CraftCreeper6

    Wizehh
    Then I am the worst searcher ever :p
    I typed in the Search Bar:
    Stop item drops

    And I got one thing, something to do with Essentials

    Then I go to Google,
    Same thing;
    Essentials.
     
  6. Offline

    Wizehh

    Here's a tip: prefix all of your searches (when applicable) with site:forums.bukkit.org; that way, you'll only get Bukkit-related results. Example:
    'site:forums.bukkit.org how to stop item drops'
     
  7. Offline

    Konkz

    I mostly google How to stop item drops bukkit and get a result from here or stackoverflow.
     
    AdamQpzm likes this.
  8. Offline

    coasterman10

    I believe it would be PlayerCommandPreprocessEvent. If the player is in the collection and the command is not "leave" cancel it.
     
Thread Status:
Not open for further replies.

Share This Page