mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-09 22:13:03 +00:00
Cleanup player argument matching in loops
Cleanup ess cleanup timestamp matching
This commit is contained in:
parent
2d70bb19f7
commit
162b67aaa6
10 changed files with 212 additions and 156 deletions
|
@ -41,12 +41,20 @@ public class Commandfly extends EssentialsCommand
|
|||
}
|
||||
else if (user.isAuthorized("essentials.fly.others"))
|
||||
{
|
||||
if (args[0].trim().length() < 2)
|
||||
{
|
||||
throw new Exception(_("playerNotFound"));
|
||||
}
|
||||
flyOtherPlayers(server, user, args);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if (args.length == 2 && user.isAuthorized("essentials.fly.others"))
|
||||
{
|
||||
if (args[0].trim().length() < 2)
|
||||
{
|
||||
throw new Exception(_("playerNotFound"));
|
||||
}
|
||||
flyOtherPlayers(server, user, args);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue