@Override
public void execute(CommandSender sender, List<?> params) throws CommandException {
Player player = super.getSenderAsPlayer(sender);
if(player.getMinecraftPlayer() instanceof EntityPlayerMP) {
Settings config = super.loadSettings(player);
boolean instantMine = config.getBoolean("instantMine", false);
if (params.size() == 0) {
instantMine ^= true;
} else {
instantMine = ((Boolean)params.get(0));
}
config.set("instantMine", instantMine);
super.saveSettings(player);
player.sendChatMessage("Instant mining " + (instantMine?"enabled.":"disabled."));
} else {
throw new CommandException("Non-client command");
}