StaffList

Discussion in 'Plugin Development' started by jrobi230, Nov 24, 2014.

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

    jrobi230

    Hey guys, Im making a plugin that practically shows staff online. I want it to show the mods, admins, helpers etc. in a list after they type a command like Mods: player1, Helpers: player2, Admins, player3. But another function i want to add is with the list it grabs the player status. Either online or offline. Online = green and Offline = red. If anyone has any useful help it would be greatly appreciated thank you :D!
     
  2. Offline

    teej107

  3. Offline

    MrInspector

    Well when I was starting I just made it so that if anyone had this permission and so on.
     
  4. Offline

    pookeythekid

    One way to do this would be to use Vault to check the groups of players. It provides API as a bridge to permissions, chat, and economy managers, but all you need to use is the permissions part.
     
  5. Offline

    jrobi230

    Thanks guys but that was not really the help i was looking for, i was more wondering if it would be possible to get the groups from the config file that the person has edited then check to see if they were online. So if i typed /staff it would come up with
    Mods: player1
    Admins: player 2
    Helper: player3
    But say player1 was offline so it would be Mods: player1 but since player2 is online it would say Admins: player2
     
  6. Offline

    mythbusterma

    jrobi230

    It's much easier to have a permission for a group, then you don't have to add anyone to a file.
     
  7. Offline

    leon3001

    Use an if-statement + a StringBuilder to define the colour of the name.
     
Thread Status:
Not open for further replies.

Share This Page