**ECLIPSE CODING PROBLEM**

Discussion in 'Plugin Development' started by steiger, Aug 10, 2014.

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

    steiger

    hi, i am trying out my first plugin attempt. i have basically all of the beginning parts done, except for the command. the command is one that i want to be /staff . well, the problem is i need to get the groups, mod+ to be shown on that list, as online players. someone help please?

    http://pastie.org/9459467

    if i did it completely wrong, someone please fix it up for me and send it my way via comments.


    Thank you all!
     
  2. Offline

    JaguarJo

    Moved thread to a more appropriate forum.
     
  3. Offline

    MegaNarwhal

    I think you'd want to use Vault for this.
     
  4. Offline

    Skionz

    I think you could loop through all the players and if their displayname contains "Moderator" then add their name to a list.
     
  5. Offline

    myminecrafter01

    You can do this using permission nodes. Give your moderators and other staff a permission node such as '<pluginname>.staff' and when you loop through the online players check if they have the permission node. If they do add their display name or username to a list to be displayed.
     
Thread Status:
Not open for further replies.

Share This Page