mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Check jail first, before setting.
This commit is contained in:
parent
a2f727bebc
commit
8d1262fc91
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue