.

Discussion in 'Plugin Development' started by elementalgodz11, Nov 23, 2013.

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

    elementalgodz11

  2. Offline

    SourceForums

    elementalgodz11
    Try logging the player item drop toggling by using a .yml file. Then tell the plugin to do something like: when a player drops an item, make the plugin check the .yml on the player item drop toggling.

    elementalgodz11
    Use
    Code:java
    1. e.setCancelled (true);

    In your player item drop event. It will cancel the fact that the item was dropped. Don't manually disable dropping one by one if that's what you're trying to do.

    elementalgodz11
    You can create a new event PlayerJoinEvent for that. :D

    elementalgodz11
    Use your boolean values. When the player joins, set both of the boolean values to true. Mark this thread as solved if this solved your problem. (I will be going to bed now so I'll be able to reply in 7 hours.)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 5, 2016
Thread Status:
Not open for further replies.

Share This Page