mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 17:18:37 +01:00
[trunk] Fixes tjail if there is a jail stuck in the config.
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1138 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
fc2c9d71bb
commit
2f1e22bfb3
@ -43,6 +43,7 @@ public class Commandtogglejail extends EssentialsCommand
|
||||
User.charge(sender, this);
|
||||
sender.sendMessage("§7Player " + p.getName() + " " + (p.toggleJailed() ? "jailed." : "unjailed."));
|
||||
p.sendMessage("§7You have been jailed");
|
||||
p.currentJail = null;
|
||||
Essentials.getJail().sendToJail(p, args[1]);
|
||||
p.currentJail = (args[1]);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user