mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-10 22:35:35 +00:00
Patching gamemode and god toggles to not match on ' '
This commit is contained in:
parent
3b2403b686
commit
b03a327f9b
2 changed files with 2 additions and 2 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 && user.isAuthorized("essentials.gamemode.others"))
|
||||
if (args.length > 0 && !args[0].trim().isEmpty() && user.isAuthorized("essentials.gamemode.others"))
|
||||
{
|
||||
gamemodeOtherPlayers(server, user, args[0]);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue