Let's get to the bottom of this ban error.

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1269 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
zenexer 2011-04-24 01:24:37 +00:00
parent 41279fc159
commit ea284b6b0f

View File

@ -23,7 +23,8 @@ public class Commandban extends EssentialsCommand
return; return;
} }
try
{
User p = null; User p = null;
if (server.matchPlayer(args[0]).isEmpty()) if (server.matchPlayer(args[0]).isEmpty())
{ {
@ -39,4 +40,10 @@ public class Commandban extends EssentialsCommand
} }
Essentials.getStatic().loadBanList(); Essentials.getStatic().loadBanList();
} }
catch (Throwable ex)
{
ex.printStackTrace();
sender.sendMessage("Error: " + ex);
}
}
} }