ops.setOp(playerName, true);
source.sendMessage(plugin.getPrefix() + ChatStyle.RED + playerName + " is now an operator!");
if (getEngine() instanceof Server) {
Player player = ((Server) getEngine()).getPlayer(playerName, true);
if (player != null && !source.equals(player)) {
player.sendMessage(plugin.getPrefix() + ChatStyle.YELLOW + "You are now an operator!");
}
}
}
@CommandDescription (aliases = {"time"}, usage = "<add|set> <0-24000|day|night|dawn|dusk> [world]", desc = "Set the time of the server")