Resolve PlayerRank entries by IP. Resolves #415

This commit is contained in:
JeromSar 2015-02-16 15:49:10 +01:00
parent eee8682959
commit 34ebb3586c
2 changed files with 5 additions and 5 deletions

View file

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit! #Build Number for ANT. Do not edit!
#Sun Feb 15 19:11:50 CET 2015 #Mon Feb 16 15:45:38 CET 2015
build.number=975 build.number=976

View file

@ -17,8 +17,8 @@ public enum TFM_PlayerRank
SENIOR("a " + ChatColor.LIGHT_PURPLE + "Senior Admin", ChatColor.LIGHT_PURPLE + "[SrA]"), SENIOR("a " + ChatColor.LIGHT_PURPLE + "Senior Admin", ChatColor.LIGHT_PURPLE + "[SrA]"),
OWNER("the " + ChatColor.BLUE + "Owner", ChatColor.BLUE + "[Owner]"), OWNER("the " + ChatColor.BLUE + "Owner", ChatColor.BLUE + "[Owner]"),
CONSOLE("The " + ChatColor.DARK_PURPLE + "Console", ChatColor.DARK_PURPLE + "[Console]"); CONSOLE("The " + ChatColor.DARK_PURPLE + "Console", ChatColor.DARK_PURPLE + "[Console]");
private String loginMessage; private final String loginMessage;
private String prefix; private final String prefix;
private TFM_PlayerRank(String loginMessage, String prefix) private TFM_PlayerRank(String loginMessage, String prefix)
{ {
@ -70,7 +70,7 @@ public enum TFM_PlayerRank
return DEVELOPER; return DEVELOPER;
} }
final TFM_Admin entry = TFM_AdminList.getEntry((Player) sender); final TFM_Admin entry = TFM_AdminList.getEntryByIp(TFM_Util.getIp((Player) sender));
final TFM_PlayerRank rank; final TFM_PlayerRank rank;