Make /list send clanforge the exact list that vanilla Bukkit prints out for compatibility.

This commit is contained in:
Steven Lawson 2012-12-01 18:07:27 -05:00
parent b2ae63dc53
commit 9501c07301

View File

@ -16,7 +16,11 @@ public class Command_list extends TFM_Command
@Override
public boolean run(CommandSender sender, Player sender_p, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
{
final boolean is_clanforge = TFM_Util.isFromClanforge(sender.getName());
if (TFM_Util.isFromClanforge(sender.getName()))
{
sender.sendMessage("There are " + server.getOnlinePlayers().length + "/" + server.getMaxPlayers() + " players online:\n" + StringUtils.join(server.getOnlinePlayers(), ", ").toString());
return true;
}
StringBuilder onlineStats = new StringBuilder();
StringBuilder onlineUsers = new StringBuilder();
@ -30,8 +34,6 @@ public class Command_list extends TFM_Command
{
String prefix = "";
if (!is_clanforge)
{
if (TFM_SuperadminList.isUserSuperadmin(p))
{
if (TFM_SuperadminList.isSeniorAdmin(p))
@ -50,7 +52,6 @@ public class Command_list extends TFM_Command
prefix = (ChatColor.RED + "[OP]");
}
}
}
player_names.add(prefix + p.getName() + ChatColor.WHITE);
}