mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Fix time command exit statuses.
This commit is contained in:
parent
d62b401db8
commit
a1cdfa19b0
1 changed files with 3 additions and 4 deletions
|
@ -56,7 +56,7 @@ public class Commandtime extends EssentialsCommand
|
|||
else
|
||||
{
|
||||
getWorldsTime(sender, worlds);
|
||||
return;
|
||||
throw new NoChargeException();
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -67,8 +67,7 @@ public class Commandtime extends EssentialsCommand
|
|||
final User user = ess.getUser(sender.getPlayer());
|
||||
if (user != null && !user.isAuthorized("essentials.time.set"))
|
||||
{
|
||||
user.sendMessage(tl("timeSetPermission"));
|
||||
return;
|
||||
throw new Exception(tl("timeSetPermission"));
|
||||
}
|
||||
|
||||
// Parse the target time int ticks from args[0]
|
||||
|
@ -185,4 +184,4 @@ class WorldNameComparator implements Comparator<World>
|
|||
{
|
||||
return a.getName().compareTo(b.getName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue