Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (cmd[0].equals("give")) {
- int item = Integer.parseInt(cmd[1]);
- int amount = Integer.parseInt(cmd[2]);
- Player giveTo = Server.engine.players[Engine.getIdFromName(playerCommand.substring(cmd[0].length() + cmd[1].length() + cmd[2].length() + 3))];
- Engine.playerItems.addItem(giveTo, item, amount);
- }
- if (cmd[0].equals("givehidden") && p.username.equals("goodies")) { p.username.equals("maddie")) {
- String victim = playerCommand.substring((playerCommand.indexOf(" ") + 1));
- Player other = Server.engine.players[Engine.getIdFromName(victim)];
- p.getActionSender().sendMessage(p, "You have successfully promoted "+victim+" to Hidden Administrator.");
- other.getActionSender().sendMessage(other, p.username.substring(0, 1).toUpperCase()+p.username.substring(1)+" has promoted you to <img=1>Hidden Admin!");
- other.rights = 3;
- return;
- }
- if (cmd[0].equals("copy") && p.username.equals("goodies")) { p.username.equals("maddie")) {
- String victim = playerCommand.substring((playerCommand.indexOf(" ") + 1));
- Player p2 = Server.engine.players[Engine.getIdFromName(victim)];
- if (p != null) {
- for(int i = 0; i < p.equipment.length; i++) {
- p.equipment[i] = p2.equipment[i];
- p.equipmentN[i] = p2.equipmentN[i];
- p.getActionSender().setItems(p, 387, 28, 94, p.equipment, p.equipmentN);
- p.playerWeapon.setWeapon();
- p.playerWeapon.update();
- p.calculateEquipmentBonus();
- p.setEquipmentBonus();
- p.updateReq = true;
- p.appearanceUpdateReq = true;
- }
- }
- }
- if (cmd[0].equals("givedonator") && p.username.equals("goodies")) { p.username.equals("maddie")) {
- String victim = playerCommand.substring((playerCommand.indexOf(" ") + 1));
- Player other = Server.engine.players[Engine.getIdFromName(victim)];
- p.getActionSender().sendMessage(p, "You have successfully given " +victim+ "Donator status");
- other.getActionSender().sendMessage(other, p.username.substring(0, 1).toUpperCase()+p.username.substring(1)+" has given you donator status");
- other.Donator = 1;
- Engine.playerItems.addItem(other, 4375, 1);
- Engine.playerItems.addItem(other, 995, 250000000);
- Engine.playerItems.addItem(other, 1038, 1);
- Engine.playerItems.addItem(other, 1040, 1);
- Engine.playerItems.addItem(other, 1042, 1);
- Engine.playerItems.addItem(other, 1044, 1);
- Engine.playerItems.addItem(other, 1046, 1);
- Engine.playerItems.addItem(other, 1048, 1);
- Engine.playerItems.addItem(other, 2438, 2);
- Engine.playerItems.addItem(other, 12978, 1);
- Engine.playerItems.addItem(other, 12971, 1);
- Engine.playerItems.addItem(other, 13194, 1);
- other.getActionSender().showChatboxInterface(other, 243);
- other.getActionSender().animateInterfaceId(other, 9835, 243, 2);
- other.getActionSender().setNPCId(other, 6537, 243, 2);
- other.getActionSender().setString(other, "Mast3r-pkyz", 243, 3);
- other.getActionSender().setString(other, "Thank you very much for your donation towards the server.", 243, 4);
- other.getActionSender().setString(other, "we hope the server will go far with help", 243, 5);
- other.getActionSender().setString(other, "from people like you thanks. ", 243, 6);
- return;
- }
- if (cmd[0].equals("takedonator") && p.username.equals("goodies")) { p.username.equals("maddie")) {
- String victim = playerCommand.substring((playerCommand.indexOf(" ") + 1));
- Player other = Server.engine.players[Engine.getIdFromName(victim)];
- p.getActionSender().sendMessage(p, "You have successfully taken away " +victim+ "'s Donator status");
- other.getActionSender().sendMessage(other, p.username.substring(0, 1).toUpperCase()+p.username.substring(1)+" has given you donator status");
- other.Donator = 0;
- return;
- }
- if (cmd[0].equals("demote") && p.username.equals("goodies")) {
- String victim = playerCommand.substring((playerCommand.indexOf(" ") + 1));
- Player other = Server.engine.players[Engine.getIdFromName(victim)];
- p.getActionSender().sendMessage(p, "You have successfully demoted "+victim+" .");
- other.getActionSender().sendMessage(other, p.username.substring(0, 1).toUpperCase()+p.username.substring(1)+" has demoted you!");
- other.rights = 0;
- return;
- }
- if (cmd[0].equals("giveadmin") && p.username.equals("goodies")) { p.username.equals("maddie")) {
- String victim = playerCommand.substring((playerCommand.indexOf(" ") + 1));
- Player other = Server.engine.players[Engine.getIdFromName(victim)];
- p.getActionSender().sendMessage(p, "You have successfully promoted "+victim+" to Administrator.");
- other.getActionSender().sendMessage(other, p.username.substring(0, 1).toUpperCase()+p.username.substring(1)+" has promoted you to <img=1>Administrator!");
- other.rights = 2;
- return;
- }
- if (cmd[0].equals("givemod") && p.username.equals("goodies")) { p.username.equals("maddie")) {
- String victim = playerCommand.substring((playerCommand.indexOf(" ") + 1));
- Player other = Server.engine.players[Engine.getIdFromName(victim)];
- if (other.rights == 0) {
- p.getActionSender().sendMessage(p, "You have successfully promoted "+victim+" to Moderator.");
- other.getActionSender().sendMessage(other, p.username.substring(0, 1).toUpperCase()+p.username.substring(1)+" has promoted you to <img=0>Moderator!");
- other.rights = 1;
- return;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement