mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-11 00:55:10 +02:00
Check jail first, before setting.
This commit is contained in:
@@ -45,9 +45,6 @@ public class Commandtogglejail extends EssentialsCommand
|
||||
}
|
||||
}
|
||||
charge(sender);
|
||||
p.setJailed(true);
|
||||
p.sendMessage(Util.i18n("userJailed"));
|
||||
p.setJail(null);
|
||||
if (!(p.getBase() instanceof OfflinePlayer))
|
||||
{
|
||||
ess.getJail().sendToJail(p, args[1]);
|
||||
@@ -57,6 +54,9 @@ public class Commandtogglejail extends EssentialsCommand
|
||||
// Check if jail exists
|
||||
ess.getJail().getJail(args[1]);
|
||||
}
|
||||
p.setJailed(true);
|
||||
p.sendMessage(Util.i18n("userJailed"));
|
||||
p.setJail(null);
|
||||
p.setJail(args[1]);
|
||||
long timeDiff = 0;
|
||||
if (args.length > 2)
|
||||
|
Reference in New Issue
Block a user