1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-13 18:14:38 +02: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:
snowleo
2011-04-06 00:52:27 +00:00
parent bf923f5a1d
commit ae4366d770

View File

@@ -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;