From 34ebb3586c0b4655cbabd4c446e62086b8006d39 Mon Sep 17 00:00:00 2001 From: JeromSar Date: Mon, 16 Feb 2015 15:49:10 +0100 Subject: [PATCH] Resolve PlayerRank entries by IP. Resolves #415 --- buildnumber.properties | 4 ++-- src/me/StevenLawson/TotalFreedomMod/TFM_PlayerRank.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/buildnumber.properties b/buildnumber.properties index 64f7684..75d81ed 100644 --- a/buildnumber.properties +++ b/buildnumber.properties @@ -1,3 +1,3 @@ #Build Number for ANT. Do not edit! -#Sun Feb 15 19:11:50 CET 2015 -build.number=975 +#Mon Feb 16 15:45:38 CET 2015 +build.number=976 diff --git a/src/me/StevenLawson/TotalFreedomMod/TFM_PlayerRank.java b/src/me/StevenLawson/TotalFreedomMod/TFM_PlayerRank.java index 0c2b016..68be911 100644 --- a/src/me/StevenLawson/TotalFreedomMod/TFM_PlayerRank.java +++ b/src/me/StevenLawson/TotalFreedomMod/TFM_PlayerRank.java @@ -17,8 +17,8 @@ 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; + private final String loginMessage; + private final String prefix; private TFM_PlayerRank(String loginMessage, String prefix) { @@ -70,7 +70,7 @@ public enum TFM_PlayerRank 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;