Development Assistance Toggle for individual players

Discussion in 'Plugin Help/Development/Requests' started by nico123o, Jun 19, 2015.

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

    nico123o

    Basically, I am making a plugin where people can toggle something and I don't know how to have it so you can run a command and it toggles it on and off for each individual player.
     
  2. Offline

    terturl890

    What is this item you are referring to? If it something like an entity you will have to do client stuff with NMS which isnt to easy if you don't have a lot of bukkit knowledge (or Java coding in general)
     
  3. Offline

    xTrollxDudex

    Use a HashSet, add the player to the set to toggle on, remove to toggle off. Check if the set contains the to see if the player is toggled on. Remember to remove the player when the player leaves.
     
Thread Status:
Not open for further replies.

Share This Page