[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 fc2c9d71bb
commit 2f1e22bfb3

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;