Work around /saconfig clearme bug. Fixes #629

This commit is contained in:
JeromSar 2015-05-30 20:01:10 +02:00
parent 901a327b1e
commit f2dc46d4ef

View file

@ -57,6 +57,11 @@ public class Command_saconfig extends TFM_Command
{ {
final TFM_Admin admin = TFM_AdminList.getEntry(sender_p); final TFM_Admin admin = TFM_AdminList.getEntry(sender_p);
if (admin == null) {
playerMsg("Could not find your admin entry! Please notify a developer.", ChatColor.RED);
return true;
}
final String ip = TFM_Util.getIp(sender_p); final String ip = TFM_Util.getIp(sender_p);
if (args.length == 1) if (args.length == 1)