else if (args.length == 2) {
if (!player.hasPermission("canary.command.god.other")) {
player.notice(Translator.translate("god failed"));
return;
}
Player other = Canary.getServer().matchPlayer(args[1]);
if (other == null) {
player.notice(Translator.translate("god failed") + " " + Translator.translateAndFormat("unknown player", args[1]));
return;
}
if (other.getCapabilities().isInvulnerable()) {
other.getCapabilities().setInvulnerable(false);
player.notice(Translator.translateAndFormat("god disabled other", other.getName()));
other.notice(Translator.translate("god disabled"));
}
else {
other.getCapabilities().setInvulnerable(true);
player.notice(Translator.translateAndFormat("god enabled other", other.getName()));
other.notice(Translator.translate("god enabled"));
}
}
else {
player.notice(Translator.translate("god failed") + " " + Translator.translate("usage"));
Canary.help().getHelp(player, "god");