From 476dd17ffeb500a8543d8f57b88da1cf4afd8422 Mon Sep 17 00:00:00 2001 From: Jonathan Williams Date: Sun, 17 May 2015 23:11:04 -0700 Subject: [PATCH] Fix for null rank in /c staff server. --- .../mineplex/staffServer/customerSupport/CustomerSupport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/customerSupport/CustomerSupport.java b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/customerSupport/CustomerSupport.java index bc9c5ca94..c91eb71a9 100644 --- a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/customerSupport/CustomerSupport.java +++ b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/customerSupport/CustomerSupport.java @@ -99,7 +99,7 @@ public class CustomerSupport extends MiniPlugin caller.sendMessage(C.cDGreen + C.Strike + "============================================="); caller.sendMessage(C.cBlue + "Name : " + C.cYellow + playerName); - caller.sendMessage(C.cBlue + "Rank : " + C.cYellow + (client.GetRank().Name.isEmpty() ? "Regular" : client.GetRank().Name)); + caller.sendMessage(C.cBlue + "Rank : " + C.cYellow + (client.GetRank() == null ? C.cRed + "Error rank null!" : (client.GetRank().Name.isEmpty() ? "Regular" : client.GetRank().Name))); caller.sendMessage(C.cBlue + "Coins : " + C.cYellow + donor.getCoins()); caller.sendMessage(C.cBlue + "Gems : " + C.cYellow + donor.GetGems());