Fix the jail stop and also add some alternatives.

This commit is contained in:
graywolf336
2014-01-30 14:23:50 -06:00
parent 1e632017c7
commit f4e735eda4
2 changed files with 10 additions and 0 deletions

View File

@ -17,14 +17,22 @@ import com.graywolf336.jail.command.CommandInfo;
)
public class JailStopCommand implements Command {
public boolean execute(JailManager jm, CommandSender sender, String... args) {
boolean nothing = true;
if(jm.isCreatingACell(sender.getName())) {
jm.removeCellCreationPlayer(sender.getName());
sender.sendMessage(ChatColor.RED + "You have stopped creating cells.");
nothing = false;
}
if(jm.isCreatingAJail(sender.getName())) {
jm.removeJailCreationPlayer(sender.getName());
sender.sendMessage(ChatColor.RED + "You have stopped creating a jail.");
nothing = false;
}
if(nothing) {
sender.sendMessage(ChatColor.RED + "You've stopped creating....nothing.");
}
return true;