StaffList
This mod was requested by Four_Down.
Description
StaffList is a plugin that displays the online staff when someone types /stafflist. That's about all there is to it. It hooks into Vault for the prefixes, and can hook into disguisecraft to remove players from the staff list if they are disguised (this can be disabled in the config).
Commands
/stafflist - shows the staff list
/stafflist toggle - toggles if you are shown on the staff list or not
/stafflist status - tells you if you will be shown on the staff list or not
/stafflist reload - reloads the staff list
Aliases for stafflist:
- who
- staff
Permissions
stafflist.view - Players with this permission will appear on the staff list
stafflist.togglehide - /stafflist toggle command
stafflist.reload - /stafflist reload command
stafflist.status - /stafflist status command
stafflist.show - /stafflist command
stafflist.* - all stafflist commands
stafflist.staff - convenience node for standard staff members. Contains:
- stafflist.view
- stafflist.status
- stafflist.show
Configuration
These are the default values:
putBracketsAroundPrefix: true - This puts the brackets around the prefixes
displayAmountOfPlayers: true - This shows the amount of online players (It won't count hidden players)
hideDisguisedPlayers: true - If this is true players disguised by disguisecraft will be hidden from the staff list
hideOps: false - If this is true ops will be hidden
In my opinion the plugin shouldn't worry about the brackets or the amount of players on the server, but my request was very specific, so that's what I did, and why they can be disabled in the config.
Previous Users
This plugin has been completely rewritten again (this is the 3rd time......). It no longer looks for what group the player is in, but instead if they have the stafflist.view permission node or not. The stafflist folder has been changed back to "StaffList" so you can either let it generate a new config, or rename the "StaffList2" folder to "StaffList". The folder name will no longer change, I promise!
Source
As requested, the source code can be found here
Oh btw would it be possible to see the source code to it?
I have a suggestion, in the config, you could add the message that will be displayed when typing /stafflist. The extra config that would be added:
just a suggestion, I would like if it would be added :).
Alright. I can think of
What other ones are out there at the moment?
Add color support by adding this to the imports:
Support other permissions managers and I might find this useful. Good idea though.