mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-07 13:03:00 +00:00
Force 3 letters before matching players for /god /gamemode and /fly
This commit is contained in:
parent
8d6b864b5b
commit
a48f6c8c30
3 changed files with 3 additions and 3 deletions
|
@ -30,7 +30,7 @@ public class Commandgamemode extends EssentialsCommand
|
|||
@Override
|
||||
protected void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception
|
||||
{
|
||||
if (args.length > 0 && !args[0].trim().isEmpty() && user.isAuthorized("essentials.gamemode.others"))
|
||||
if (args.length > 0 && args[0].trim().length() > 2 && user.isAuthorized("essentials.gamemode.others"))
|
||||
{
|
||||
gamemodeOtherPlayers(server, user, args);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue