Fix the spacing and clean it up.
This commit is contained in:
@@ -8,33 +8,33 @@ import com.graywolf336.jail.command.Command;
|
||||
import com.graywolf336.jail.command.CommandInfo;
|
||||
|
||||
@CommandInfo(
|
||||
maxArgs = 0,
|
||||
minimumArgs = 0,
|
||||
needsPlayer = true,
|
||||
pattern = "stop",
|
||||
permission = "jail.command.jailstop",
|
||||
usage = "/jail stop"
|
||||
)
|
||||
maxArgs = 0,
|
||||
minimumArgs = 0,
|
||||
needsPlayer = true,
|
||||
pattern = "stop",
|
||||
permission = "jail.command.jailstop",
|
||||
usage = "/jail stop"
|
||||
)
|
||||
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;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user