mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-10-03 15:24:21 +00:00
Another fix for /tjail offline players
This commit is contained in:
parent
fdbb6510ef
commit
6b85b306ef
|
@ -35,7 +35,15 @@ public class Commandtogglejail extends EssentialsCommand
|
|||
p.setJailed(true);
|
||||
p.sendMessage(Util.i18n("userJailed"));
|
||||
p.setJail(null);
|
||||
if (!(p.getBase() instanceof OfflinePlayer))
|
||||
{
|
||||
ess.getJail().sendToJail(p, args[1]);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Check if jail exists
|
||||
ess.getJail().getJail(args[1]);
|
||||
}
|
||||
p.setJail(args[1]);
|
||||
long timeDiff = 0;
|
||||
if (args.length > 2)
|
||||
|
|
Loading…
Reference in a new issue