@Permissible ("vanilla.command.deop")
public void deop(CommandSource source, CommandArguments args) throws CommandException {
String playerName = args.popString("player");
args.assertCompletelyParsed();
OpConfiguration ops = VanillaConfiguration.OPS;
if (!ops.isOp(playerName)) {
source.sendMessage(plugin.getPrefix() + playerName + ChatStyle.RED + " is not an operator!");
return;
}
ops.setOp(playerName, false);
source.sendMessage(plugin.getPrefix() + playerName + ChatStyle.RED + " had their operator status revoked!");
if (getEngine() instanceof Server) {
Player player = ((Server) getEngine()).getPlayer(playerName, true);
if (player != null && !source.equals(player)) {
player.sendMessage(plugin.getPrefix() + ChatStyle.RED + "You had your operator status revoked!");