Plugin category: Admin Suggested name: StaffList What I want: I would like a plugin that gives a staff player list with prefixes. I have seen Playerz, but I believe this plugin is not great. I would also like the plugin to give a broadcast of the amount of online players at a configurable amount of time. Here is what I would like the list to look like: http://pastebin.com/c4A5KmMt Also, the plugin should be fully configurable and work with PermissionsEx. Players with the staff permission will be able to be on the staff list, and their prefix will also be shown. Here is a sample config.yml: http://pastebin.com/eE7Zeq9U Ideas for commands: /list (Shows online staff) /who (Shows online staff) /online (Shows online staff) Ideas for permissions: stafflist.use (Allows commands to view the list (/list)) stafflist.staff (Allows the player to be shown on the staff list) When I'd like it by: As Soon As Possible
I could do this but my eclipse is broken so I won't be able to compile it and instead of just making it for server name can i already do it for reclaimer craft will be a lot easier. McLuke500 made something similar but it says compass craft maybe if you ask him to change it and make it configureable? Also should think colors should be configureable
ColeBergmann I've made your plugin. You can download it here: <Edit by Moderator: Redacted mediafire url> It formats it like this: ---StaffLIst--- (Owner) ~Bob - IGN: BobIsGreat42 This was done so that if an admin had a nickname then his IGN would still be visible If you need anything else done, please contact me, although I may not be able to reply for awhile EDIT: if the prefix of Bob is colored, it will be colored in the staff list
Oh, it's because the plugin version is out of date. I'll update it real quick ColeBergmann New download link: <Edit by Moderator: Redacted mediafire url> Give a "StaffList.Show" permission to anyone you want to be seen on the list. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Still getting this weird error :/ http://pastebin.com/aLUgEDb0 Also, at the top could it be configurable so it could say ---[ReclaimerCraft]---
This is just a list of the staff members. Even if they are not online. I would like a list of staff members that are online.
Use EssentialsChat and config in Essentials # Sort output of /list command by groups sort-list-by-groups: true Then u will see the Admin/Moderator/Owner/Player/Member all what u want
Do you know how to change the order of the way the groups are displayed? Mine sort alphabetically, and make no sense that way. -_-
I just was curious! I'm didn't post this, but I saw your comment and was wondering if I'm missing something in Essentials.
I'm looking for something to just show staff. If it shows players too it gets too long and people can not find staff.
It is configurable if i remember Here is that post Config is CompassCraft: cwho: - '&3--------=[ &9CompassCraft &3]=--------' - '&3There are &6(&e%allplayers%&6) &3players online.' - '&5Online staff: &d%staff%' - '&2Online Donators: &a%donators%' The %allplayers% is all players %staff% is number of staff %donators% is all donators Permissions are compasscraft.cwho to use the command /cwho compasscraft.reload to use /cwho reload then compasscraft.staff and compasscraft.donator Colorcodes work Download https://dl.dropbox.com/u/20849260/Compasscraft.jar And if anyones interested source code Code: package me.mcluke300.compasscraft; import java.util.ArrayList; import java.util.List; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import org.bukkit.event.Listener; import org.bukkit.plugin.java.JavaPlugin; public class main extends JavaPlugin implements Listener{ public static main plugin; @Override public void onEnable() { LoadConfiguration(); plugin = this; System.out.println(this+" has been Enabled"); Bukkit.getServer().getPluginManager().registerEvents(this, this); } @Override public void onDisable() { System.out.println(this+" has been Disabled"); } public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if(commandLabel.equalsIgnoreCase("cwho")) { //Main Command if(args.length == 0 && sender.hasPermission("compasscraft.cwho")) { List<String> words = plugin.getConfig().getStringList("CompassCraft.cwho"); String allplayers = "" + Bukkit.getOnlinePlayers().length + "/" + Bukkit.getMaxPlayers(); int staffp = 0; int donatorp = 0; Player[] players = Bukkit.getOnlinePlayers(); for (Player playerP : players) { if (playerP.hasPermission("compasscraft.staff")) { staffp++; } if (playerP.hasPermission("compasscraft.donator")) { donatorp++; } } String staffpp = "" + staffp; String donatorpp = "" + donatorp; for (String m : words) { m = m.replaceAll("%allplayers%", allplayers); m = m.replaceAll("%staff%", staffpp); m = m.replaceAll("%donators%", donatorpp); m = m.replaceAll("&([0-9a-fA-F])", "§$1"); sender.sendMessage(m); } }else if (args.length == 1){ //Reload if (args[0].equalsIgnoreCase("reload") && sender.hasPermission("compasscraft.reload")) { getConfig(); reloadConfig(); getServer().getPluginManager().disablePlugin(plugin); getServer().getPluginManager().enablePlugin(plugin); sender.sendMessage(ChatColor.GREEN+"Compasscraft Config Reloaded"); } } else if (args.length < 2) { return false; } } return false; } public void LoadConfiguration() { List<String> words = new ArrayList<String>(); String path = "CompassCraft.cwho"; words.add("&3--------=[ &9CompassCraft &3]=--------"); words.add("&3There are &6(&e%allplayers%&6) &3players online."); words.add("&5Online staff: &d%staff%"); words.add("&2Online Donators: &a%donators%"); getConfig().addDefault(path, words); getConfig().options().copyDefaults(true); saveConfig(); } }
Could you add a feature where you can do for example %staffplayers% and then all the staff players would come up, instead of just the number? Something similar to donators too would be cool.
maybe, in the comfig have somthing like this: Confiy.yml: Code: CompassCraft: cwho: - '&3--------=[ &9CompassCraft &3]=--------' - '&3There are &6(&e%allplayers%&6) &3players online.' - '&5Online staff: &d%staff%' - '&2Online Donators: &a%donators%' Custom: - %NAMEHERE% Premissions: CompassCraft.NAMEHERE do that ppl with the premissions have there one rank. btw maybe have it like /who not /cwho.
Im not making this a public plugin because it is too simple and there are much better ones out there. Even essentials can make /who show groups as lists...
If you got another 4 minutes, could you add so you can actually see who's the staff and donators, instead of just how many it is?