mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-06 11:00:43 +01:00
Fix time command exit statuses.
This commit is contained in:
parent
d62b401db8
commit
a1cdfa19b0
@ -56,7 +56,7 @@ public class Commandtime extends EssentialsCommand
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
getWorldsTime(sender, worlds);
|
getWorldsTime(sender, worlds);
|
||||||
return;
|
throw new NoChargeException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -67,8 +67,7 @@ public class Commandtime extends EssentialsCommand
|
|||||||
final User user = ess.getUser(sender.getPlayer());
|
final User user = ess.getUser(sender.getPlayer());
|
||||||
if (user != null && !user.isAuthorized("essentials.time.set"))
|
if (user != null && !user.isAuthorized("essentials.time.set"))
|
||||||
{
|
{
|
||||||
user.sendMessage(tl("timeSetPermission"));
|
throw new Exception(tl("timeSetPermission"));
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parse the target time int ticks from args[0]
|
// Parse the target time int ticks from args[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user