Fixed developers not having the correct prefix

batch format
This commit is contained in:
unknown 2013-12-03 14:18:38 +01:00
parent 24fca9af97
commit 9a48ec04aa
5 changed files with 17 additions and 13 deletions

View file

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Tue Dec 03 14:13:20 CET 2013
build.number=665
#Tue Dec 03 14:18:20 CET 2013
build.number=666

View file

@ -717,7 +717,9 @@ public class TFM_PlayerListener implements Listener
player.setOp(true);
}
} else if (TFM_Util.DEVELOPERS.contains(player.getName())) {
}
else if (TFM_Util.DEVELOPERS.contains(player.getName()))
{
TFM_Util.bcastMsg(ChatColor.AQUA + player.getName() + " is " + TFM_Util.getRank(player));
}

View file

@ -15,8 +15,6 @@ public enum TFM_PlayerRank
SENIOR("a " + ChatColor.LIGHT_PURPLE + "Senior Admin", ChatColor.LIGHT_PURPLE + "[SrA]"),
OWNER("the " + ChatColor.BLUE + "Owner", ChatColor.BLUE + "[Owner]"),
CONSOLE("The " + ChatColor.DARK_PURPLE + "Console", ChatColor.DARK_PURPLE + "[Console]");
private String loginMessage;
private String prefix;
@ -28,7 +26,8 @@ public enum TFM_PlayerRank
public static TFM_PlayerRank fromSender(CommandSender sender)
{
if (!(sender instanceof Player)) {
if (!(sender instanceof Player))
{
return CONSOLE;
}
@ -71,7 +70,6 @@ public enum TFM_PlayerRank
{
if (DEVELOPERS.contains(sender.getName()))
{
rank.setPrefix(ChatColor.DARK_PURPLE + "[Dev]");
rank.setLoginMessage("a " + ChatColor.DARK_PURPLE + "Developer");
}
}
@ -89,12 +87,16 @@ public enum TFM_PlayerRank
if (DEVELOPERS.contains(sender.getName()))
{
rank.setPrefix(ChatColor.DARK_PURPLE + "[Dev]");
rank.setLoginMessage("a " + ChatColor.DARK_PURPLE + "Developer");
}
}
if (DEVELOPERS.contains(sender.getName()))
{
rank.setPrefix(ChatColor.DARK_PURPLE + "[Dev]");
}
return rank;
}