Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (playerCommand.startsWith("givemod")) {
- try {
- String playerToMod = playerCommand.substring(8);
- for (int i = 0; i < Config.MAX_PLAYERS; i++) {
- if (PlayerHandler.players[i] != null) {
- if (PlayerHandler.players[i].playerName
- .equalsIgnoreCase(playerToMod)) {
- Client c2 = (Client) PlayerHandler.players[i];
- c2.sendMessage("You have been given mod status by "
- + c.playerName);
- c2.playerRights = 1;
- c2.logout();
- break;
- }
- }
- }
- } catch (Exception e) {
- c.sendMessage("Player Must Be Offline.");
- }
- }
Add Comment
Please, Sign In to add comment