mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-30 20:16:41 +00:00
Prevent command arguments from using long number strings. Resolves #782
Mass format
This commit is contained in:
@ -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.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user