Prevent command arguments from using long number strings. Resolves #782

Mass format
This commit is contained in:
Jerom van der Sar
2015-09-06 17:02:06 +02:00
parent 3b87323c41
commit 400038265b
5 changed files with 179 additions and 85 deletions

View File

@ -77,9 +77,12 @@ public class TFM_ServerInterface
continue;
}
if (!isAdmin) {
if (!isAdmin)
{
event.disallow(AsyncPlayerPreLoginEvent.Result.KICK_OTHER, "Your username is already logged into this server.");
} else {
}
else
{
event.allow();
TFM_Sync.playerKick(onlinePlayer, "An admin just logged in with the username you are using.");
}