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
Great Plugin, Thanks MrZoraman
@Gold363
Agreed
KEEP THIS PLUGIN ALIVE :D
@MrZoraman
I keep getting this error in console when trying to issue command /who
07:10:49 [SEVERE] org.bukkit.command.CommandException: Unhandled exception execu ting command 'who' in plugin StaffList v1.4.4 07:10:49 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginComman d.java:44) 07:10:49 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCo mmandMap.java:185) 07:10:49 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(Cr aftServer.java:502) 07:10:49 [SEVERE] at net.minecraft.server.NetServerHandler.handleCommand(N etServerHandler.java:912) 07:10:49 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerH andler.java:830) 07:10:49 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHand ler.java:807) 07:10:49 [SEVERE] at net.minecraft.server.Packet3Chat.handle(Packet3Chat.j ava:44) 07:10:49 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager. java:290) 07:10:49 [SEVERE] at net.minecraft.server.NetServerHandler.d(NetServerHand ler.java:112) 07:10:49 [SEVERE] at net.minecraft.server.ServerConnection.b(SourceFile:39 ) 07:10:49 [SEVERE] at net.minecraft.server.DedicatedServerConnection.b(Sour ceFile:30) 07:10:49 [SEVERE] at net.minecraft.server.MinecraftServer.r(MinecraftServe r.java:595) 07:10:49 [SEVERE] at net.minecraft.server.DedicatedServer.r(DedicatedServe r.java:222) 07:10:49 [SEVERE] at net.minecraft.server.MinecraftServer.q(MinecraftServe r.java:493) 07:10:49 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer ver.java:426) 07:10:49 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour ceFile:856) 07:10:49 [SEVERE] Caused by: java.lang.NullPointerException 07:10:49 [SEVERE] at com.mrz.dyndns.server.StaffList.StaffList.isDisguised (StaffList.java:208) 07:10:49 [SEVERE] at com.mrz.dyndns.server.StaffList.StaffList.isPowerful( StaffList.java:149) 07:10:49 [SEVERE] at com.mrz.dyndns.server.StaffList.StaffList.onCommand(S taffList.java:238) 07:10:49 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginComman d.java:44) 07:10:49 [SEVERE] at com.earth2me.essentials.Essentials.onCommandEssential s(Essentials.java:303) 07:10:49 [SEVERE] at com.earth2me.essentials.Essentials.onCommand(Essentia ls.java:288) 07:10:49 [SEVERE] ... 16 more
[Edit]: I've been waiting for a reply... It's been a few weeks now.
@bchrzfg215
Make sure your mods do not have the stafflist.hide node. This permission is inherited when they are given either the '*' node or are an op. Also, if you have Vault installed with GroupManager, things should work fine.
@numanumajosh
How did you get your groups to show up using Groupmanager?
Hey, I've recently downloaded this plugin and whenever I try /who it does not display the staff on my server. I know there is a way to configure who shows up but how do I do this for GroupManager? I've listed the names of the Groupmanager groups and it doesn't work. It just says no staff online.
Thanks for making this plugin for me!
Could you add nickname support? Using Essentials nicknames
And also a customizable bar at the top and bottom? Which you can put the server name in? Like this: http://i.imgur.com/dUHxy.png
Can you add /list as an alias of this plugin?
Awesome work @MrZoraman
Waiting on the file approval!
@numanumajosh
Vault integration added
Vault always works!
Good luck!
@kittenchunks @numanumajosh (do tags even work in here?) GroupManager does not have an api (that I could find). However I can hook into vault. I have a list of things that I need to get done, so if this isn't done within a week or so, be sure to remind me! :P
@numanumajosh
same :(
Can you please add support for Essentials GroupManager?
When i drag and drop theres no config. file :(
I don't want my staff list to be colored. I love the grey. I do wish that the &s and the numbers would hide though. So instead of: I would like: Is this possible? I really don't want my name to be colored, just have the [Owner]ColeBergmann. Thank you!
Yeah I'll release the source code and fix that. I actually think I fixed it in the version 1.3, but i'll double check. I'll also be sure to release the source code for that latest version too. I haven't learned how to use github yet, so I'm stuck with just using pastie for now :s
Also, Do you think you could add color codes to be shown on the /staff list? As my players/admins/mods have colored prefix's, I can see the &# symbols around their name. The pic below shows. Screenshot
I am also interested in seeing the source code. I have been trying to develop a simple plugin to show the online players and their ranks. But I would like to see how you did the code.