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 !
https://docs.oracle.com/javase/7/docs/api/java/util/Map.html or https://docs.oracle.com/javase/7/docs/api/java/util/Collection.html For the colors: http://jd.bukkit.org/rb/apidocs/org/bukkit/ChatColor.html
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.
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
jrobi230 It's much easier to have a permission for a group, then you don't have to add anyone to a file.