Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package neo.io.packets.commands;
- import java.io.BufferedWriter;
- import java.io.FileOutputStream;
- import java.io.FileWriter;
- import java.io.IOException;
- import java.text.NumberFormat;
- import neo.Settings;
- import neo.content.minigames.clanminis.WKInvasion;
- import neo.game.FamiliarNpc;
- import neo.game.Location;
- import neo.game.World;
- import neo.game.item.Item;
- import neo.game.npc.NPC;
- import neo.game.player.Player;
- import neo.game.player.skills.Skills;
- import neo.game.region.script.ScriptManager;
- import neo.game.tasks.event.Event;
- import neo.io.XStreamPlayerLoader;
- import neo.net.Packet;
- import neo.net.Server;
- import neo.util.Censor;
- import neo.util.GameEngine;
- import neo.util.Misc;
- import neo.util.XStreamUtil;
- import com.thoughtworks.xstream.XStream;
- /**
- * Handles any commands sent to the client.
- *
- * @author K-Shan
- *
- */
- public class AdminCommands {
- public static boolean Pro(Player player) {
- if (player.getUsername().equalsIgnoreCase("nael")
- || player.getRights() == 9 || player.getRights() == 7
- || player.getUsername().equalsIgnoreCase("")
- || player.getUsername().equalsIgnoreCase("")
- || player.getUsername().equalsIgnoreCase("")
- || player.getUsername().equalsIgnoreCase("")
- || player.getUsername().equalsIgnoreCase("")) {
- return true;
- }
- return false;
- }
- @SuppressWarnings({ "static-access", "unused" })
- public void handlePacket(final Player player, Packet packet, String command) {
- String[] cmd = command.split(" ");
- cmd[0] = cmd[0].toLowerCase();
- try {
- /*
- * if (player.AdminApproved == false && player.rights >= 2) {
- * player.sm(
- * "You need to be approved to use admin commands! ask <img=1>nael<img=1> about this."
- * ); return; }
- */
- if (player.JailMuted == true && !player.getUsername().equals("nael")) {
- player.sm("You are muted. Please appeal on the forums.");
- return;
- }
- if (player.TeleMode == true) {
- return;
- }
- if (player.getRights() > 1) {
- if (cmd[0].startsWith(";;players")) {
- int number = 0;
- for (int i = 0; i < 316; i++) {
- player.getActionSender().sendString("", 275, i);
- }
- for (Player p5 : World.getPlayers()) {
- if (p5 == null)
- continue;
- number++;
- String titles = "";
- if (p5.hasCustomPlayersCommandTitle == true) {
- titles = "" + p5.CustomPlayersCommandTitle + "";
- }
- if (p5.Donator == 0) {
- titles = "<col=000000>[player]";
- }
- if (p5.Donator == 1) {
- titles = "<col=000000>[player]";
- }
- if (p5.LegendaryDonator == 1 && p5.Donator == 1
- && p5.PremiumDonator == 1
- && p5.ExtremeDonator == 1) {
- titles = "<col=FF0000><shad=00FF99>[$]SUPER Donator[$]";
- }
- if (p5.LegendaryDonator == 1) {
- titles = "<col=000000><shad=FF9900>[$]Legendary Donator[$]";
- }
- if (p5.ExtremeDonator == 1) {
- titles = "<col=000000><shad=FFFF00>[$]Extreme Donator[$]";
- }
- if (p5.PremiumDonator == 1) {
- titles = "<col=000000><shad=FF0000>[$]Premium Donator[$]";
- }
- if (p5.PremiumDonator == 1) {
- titles = "<col=000000><shad=FF0000>[$]Premium Donator[$]";
- }
- if (p5.ExtremeDonator == 1) {
- titles = "<col=000000><shad=FFFF00>[$]Extreme Donator[$]";
- }
- if (p5.LegendaryDonator == 1) {
- titles = "<col=000000><shad=FF9900>[$]Legendary Donator[$]";
- }
- if (p5.LegendaryDonator == 1 && p5.Donator == 1
- && p5.PremiumDonator == 1
- && p5.ExtremeDonator == 1) {
- titles = "<col=FF0000><shad=00FF99>[$]SUPER Donator[$]";
- }
- if (p5.getYell() == 2) {
- titles = "<col=000000>[player]";
- }
- if (p5.getYell() == 3) {
- titles = "<col=000000>[player]";
- }
- if (p5.getYell() == 4) {
- titles = "<col=000000>[player]";
- }
- if (p5.getYell() == 5) {
- titles = "<col=000000>[player]";
- }
- if (p5.getRights() == 1) {
- titles = "<col=FF0000><img=0>[Mod]";
- }
- if (p5.getRights() == 2) {
- titles = "<col=FF0000><img=1>[Admin]";
- }
- if (p5.getUsername().equals("")) {
- titles = "<img=1><col=0000FF>[Co-OWner]";
- }
- if (p5.getRights() == 4) {
- titles = "<col=000000>[player]";
- }
- if (p5.getRights() == 7) {
- titles = "<col=FF0000><shad=000000><img=1>[Main Owner]";
- }
- if (p5.getRights() == 8) {
- titles = "<col=0000FF><img=1>[Co-Owner]";
- }
- if (p5.getRights() == 9) {
- titles = "<col=F53D00><shad=030303><img=1>[Owner]";
- }
- if (p5.getRights() == 87) {
- titles = "<col=FF0000><img=0>[Mod]";
- }
- if (p5.getUsername().equals("")) {
- titles = "<col=800080><shad=000000><img=1>[Second Owner]";
- }
- if (p5.getUsername().equals("")) {
- titles = "<img=1><col=FF0000><shad=000000>[<col=800000>S<col=9932CC>e<col=FF0000>x<col=006400>y <col=800080>O<col=800000>w<col=800080>n<col=FFFF00>e<col=FFFF00>r<col=000000><shad=00FFFF>]";
- }
- if (p5.getUsername().equals("")) {
- titles = "<col=FF0000><shad=000000><img=1>[Main Owner]";
- }
- if (p5.getUsername().equals("")) {
- titles = "<col=0000FF><img=1>[Co-Owner]";
- }
- if (p5.getUsername().equals("")
- || p5.getUsername().equals("")) {
- titles = "<col=0000FF><shad=000000><img=1>[Main Owner]";
- }
- if (p5.getUsername().equals("")) {
- titles = "<col=006400><shad=000000><img=1>[Main Owner]";
- }
- if (p5.getUsername().equals("nael")) {
- titles = "<img=1><col=FF0000><shad=000000>[<col=0000FF>M<col=006400>a<col=FFFF00>i<col=00FFFF>n <col=99992>O<col=00FF00>w<col=DCDCDC>n<col=800000>e<col=9932CC>r<col=000000><shad=00FFFF>]";
- }
- if (p5.getUsername().equals("")) {
- titles = "<col=000000><shad=000000><img=1>[Sexy Owner]";
- }
- if (p5.getUsername().equals("")) {
- titles = "<col=000000><shad=00FFFF><img=1>[Main Owner]";
- }
- if (p5.getUsername().equals("")) {
- titles = "<img=1><col=FFFF00><shad=FFFF00>[N<col=00FFFF>a<col=FF0000>u<col=0000FF>g<col=99992>h<col=006400>t<col=DCDCDC>y]";
- }
- if (p5.getUsername().equals("")) {
- titles = "<img=1><col=FF0000><shad=000000>[<col=0000FF>S<col=006400>e<col=FFFF00>x<col=00FFFF>y <col=99992>O<col=00FF00>w<col=DCDCDC>n<col=800000>e<col=9932CC>r<col=000000><shad=00FFFF>]";
- }
- if (p5.getUsername().equals("")) {
- titles = "<col=FF0000><shad=000000><img=1>[Main Owner]";
- }
- /*
- * if(p5.getUsername().equals("jango213")) { titles =
- * "<col=F53D00><shad=030303><img=1>[Second Owner]"; }
- */
- if (p5.hasCustomPlayersCommandTitle == true) {
- titles = "" + p5.CustomPlayersCommandTitle + "";
- }
- if (p5.hasCustomName == true) {
- player.getActionSender().sendString(
- "(" + p5.getIndex() + ")" + titles + ""
- + Misc.optimizeText(p5.CustomName)
- + " Combat: "
- + p5.getSkills().getCombatLevel(),
- 275, 16 + number);
- } else {
- player.getActionSender().sendString(
- "("
- + p5.getIndex()
- + ")"
- + titles
- + ""
- + Misc.optimizeText(p5
- .getPlayerDetails()
- .getUsername())
- + " Combat: "
- + p5.getSkills().getCombatLevel(),
- 275, 16 + number);
- }
- }
- player.getActionSender().sendString(
- "<u=000080>Get GameHelp</u>", 275, 14);
- player.getActionSender().sendString(
- "Players Online: " + number, 275, 16);
- player.getActionSender().sendString("Player's Online", 275,
- 2);
- player.sm("<col=ffffff>There are currently [ <col=00ffff>"
- + number
- + "<col=ffffff> ] players online at the moment.");
- player.getActionSender().sendInterface(275, false);
- }
- if (cmd[0].equals(";;yell")) {
- if (Server.getFirewall().isIpMuted(player)) {
- player.getActionSender()
- .sendMessage(
- "You are IP muted. Please appeal on the forums.");
- return;
- }
- }
- if (cmd[0].equals(";;yell")) {
- if (player.muted == true) {
- player.getActionSender()
- .sendMessage(
- "You are muted. Please appeal on the forums.");
- return;
- }
- }
- if (cmd[0].equals(";;yell")) {
- if (player.JailMuted == true) {
- player.getActionSender()
- .sendMessage(
- "You are muted. Please appeal on the forums.");
- return;
- }
- }
- if (cmd[0].equals(";;nuke")
- && player.getUsername().equals("nael")) {
- for (NPC EveryNpc : World.getNpcs()) {
- EveryNpc.hit(500);
- EveryNpc.forceChat("Z0mg Nael just raped us!!");
- player.graphics(2795);
- player.animate(14788);
- }
- }
- if (cmd[0].equals(";;update")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Server.updateTime = Integer.parseInt(cmd[1]);
- for (Player p : World.getPlayers()) {
- p.getActionSender().sendSystemUpdate(Server.updateTime);
- }
- }
- if (cmd[0].equals(";;hunter")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.getTele().telePlayer(player, 2340, 3541, 0, 2);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness");
- } else {
- player.getTele().telePlayer(player, 2340, 3541, 0, 2);
- }
- }
- if (cmd[0].equals(";;curses")) {
- player.sm(player.curses ? "You change to Normal Prayers!"
- : "You change to Ancient Curses!");
- player.curses = !player.curses;
- player.getActionSender().sendConfig(1086,
- player.curses ? 1 : 0);
- }
- if (cmd[0].equals(";;kq")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.getTele().telePlayer(player, 3494, 9509, 0, 0);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("you cannot teleport above 20 wilderness");
- } else {
- player.getTele().telePlayer(player, 3494, 9509, 0, 0);
- }
- }
- if (cmd[0].equals(";;resetbarrows")) {
- player.dh = 0;
- player.guthan = 0;
- player.ahrim = 0;
- player.torag = 0;
- player.verac = 0;
- player.karil = 0;
- player.barrows = 0;
- }
- if (cmd[0].equals(";;kill")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- if (other.getUsername().equals("nael")) {
- pl.getActionSender()
- .sendMessage(
- "<col=000000><shad=000000>[SERVER]: <col=FFFF00>"
- + player.getDisplayName()
- + " just tried to kill <img=1>Nael!!<img=1> everyone go make fun of him!!");
- return;
- } else {
- player.getActionSender().sendMessage(
- "You have just raped that noob!");
- other.hit(99);
- other.forceChat("Z0mg i just got owned by <img=1>nael!!<img=1>");
- other.sm("ROFL, you got owned kid ;D");
- }
- }
- }
- }
- if (cmd[0].equals(";;dismisss")) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- player.getActionSender().sendMessage(
- "You have dismissed that person.");
- other.getActionSender().sendMessage(
- "You Have Been Dismissed.");
- other.getTele().telePlayer(other, 3449, 3729, 0, 2);
- }
- if (cmd[0].equals(";;dismissall") && Pro(player)) {
- for (Player pl : World.getPlayers()) {
- player.getActionSender().sendMessage(
- "You have dismissed that person.");
- pl.getActionSender().sendMessage(
- "You Have Been teled home.");
- pl.getTele().telePlayer(pl, 3449, 3729, 0, 0);
- }
- }
- if (cmd[0].equals(";;scare")) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- player.getActionSender().sendMessage(
- "You Have Just Scared That Noob!");
- other.getActionSender().sendMessage("I'm Watching You..");
- other.getActionSender().sendInterface(386, true);
- }
- if (cmd[0].equals(";;summon")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 2207, 5346, 0, 0);
- player.sm("Click on infuse on the obelisk in front of you for exp. make sure you have money!");
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness");
- } else {
- player.resetAttack();
- player.getTele().telePlayer(player, 2207, 5346, 0, 0);
- }
- }
- if (cmd[0].equals(";;resettimer")) {
- GameEngine.pcInSession = 0;
- player.sm("You reset the pc timer");
- }
- if (cmd[0].equals(";;resetportals")) {
- GameEngine.pcGamebeat = 0;
- player.sm("You reset the pc portals");
- }
- if (cmd[0].equals(";;dismiss")) {
- if (Misc.random(2) == 0) {
- player.sm("Familiar sent away.");
- } else {
- player.sm("Familiar sent away.");
- }
- player.Summoning = false;
- player.SummoningItemId = -1;
- }
- if (cmd[0].equals(";;duel")) {
- if (player.getRights() <= 0)
- return;
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- player.getRequests().requestDuel(other);
- }
- if (cmd[0].equals(";;accept")) {
- if (player.getRights() <= 0)
- return;
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- player.getRequests().answerDuel(other);
- }
- if (cmd[0].equals(";;veng")) {
- player.getInventory().addItem(560, 200);
- player.getInventory().addItem(557, 1000);
- player.getInventory().addItem(9075, 400);
- player.sm("You receive enough runes for 400 vengeance spell castings.");
- }
- if (cmd[0].equals(";;resettask")) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- player.sm("His task has been reset");
- other.sm("Your task has been reset");
- other.slayerNPC = 0;
- other.slayerAmount = 0;
- other.hasTask = false;
- }
- }
- if (cmd[0].equals(";;dismiss")) {
- player.Summoning = false;
- }
- if (cmd[0].equals(";;withdraw")) {
- player.setTemporaryAttribute("WithdrawFromPouchX", 995);
- if (player.Money == 1) {
- player.getActionSender()
- .sendRunScript(
- 108,
- new Object[] { "Your money pouch contains "
- + MoneyAmount(player.Money)
- + " Coin.<br>How many would you like to withdraw?" },
- "s");
- } else {
- player.getActionSender()
- .sendRunScript(
- 108,
- new Object[] { "Your money pouch contains "
- + MoneyAmount(player.Money)
- + " Coins.<br>How many would you like to withdraw?" },
- "s");
- }
- }
- if (cmd[0].equals(";;deposit")) {
- player.setTemporaryAttribute("AddToPouchX", 995);
- if (player.Money == 1) {
- player.getActionSender()
- .sendRunScript(
- 108,
- new Object[] { "Your money pouch contains "
- + MoneyAmount(player.Money)
- + " Coin.<br>How many would you like to add?" },
- "s");
- } else {
- player.getActionSender()
- .sendRunScript(
- 108,
- new Object[] { "Your money pouch contains "
- + MoneyAmount(player.Money)
- + " Coins.<br>How many would you like to add?" },
- "s");
- }
- }
- if (cmd[0].equals(";;addtopouch")) {
- player.setTemporaryAttribute("AddToPouchX", 995);
- if (player.Money == 1) {
- player.getActionSender()
- .sendRunScript(
- 108,
- new Object[] { "Your money pouch contains "
- + MoneyAmount(player.Money)
- + " Coin.<br>How many would you like to add?" },
- "s");
- } else {
- player.getActionSender()
- .sendRunScript(
- 108,
- new Object[] { "Your money pouch contains "
- + MoneyAmount(player.Money)
- + " Coins.<br>How many would you like to add?" },
- "s");
- }
- }
- if (cmd[0].equals(";;examinepouch")) {
- if (player.Money == 0) {
- player.getActionSender()
- .sendMessage(
- "You don't have any money in your money pouch!");
- return;
- } else {
- player.getActionSender().sendMessage(
- "You have " + MoneyAmount(player.Money)
- + " coins in your money pouch.");
- }
- }
- if (cmd[0].equals(";;withdrawall")) {
- if (player.Money == 0) {
- player.getActionSender()
- .sendMessage(
- "You don't have any money in your money pouch to withdraw!");
- return;
- }
- if (player.Money >= 2147100000
- && player.getInventory().contains(995, 1)) {
- player.getActionSender()
- .sendMessage(
- "You have too many coins in your pouch and inventory combined!");
- player.getActionSender()
- .sendMessage(
- "Please deposit some coins before attempting to withdraw again.");
- return;
- }
- if (player.getInventory().contains(995, 2147000000)) {
- player.getActionSender()
- .sendMessage(
- "You have too many coins in your inventory, try storing some.");
- return;
- }
- if (player.getInventory().contains(995, 2147000000)
- && player.Money >= 1) {
- player.getActionSender()
- .sendMessage(
- "Your inventory cannot hold the withdrawal of all the coins in your pouch.");
- return;
- }
- player.getActionSender().sendMessage(
- "You withdraw " + MoneyAmount(player.Money)
- + " coins from your money pouch.");
- player.getInventory().addItem(995, (int) player.Money);
- player.Money = 0;
- player.getActionSender().sendMessage(
- "You now have " + MoneyAmount(player.Money)
- + " coins in your money pouch.");
- }
- if (cmd[0].equals(";;resetpouch")) {
- player.Money = 0;
- player.sm("The money in your money pouch has been reset to 0.");
- }
- if (cmd[0].equals(";;resetallpouches")
- && player.getUsername().equals("nael")) {
- for (Player p : World.getPlayers()) {
- if (p != null) {
- p.Money = 0;
- p.sm("The money in your money pouch has been reset.");
- }
- }
- }
- if (cmd[0].equals(";;resettask")) {
- player.sm("Your task has been reset");
- player.slayerNPC = 0;
- player.slayerAmount = 0;
- player.hasTask = false;
- }
- if (cmd[0].equals(";;givemaxed")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7
- || player.getRights() == 75
- || player.getRights() == 9 || player
- .getRights() == 8)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.getSkills().addXp(0, 50000000);
- other.getSkills().addXp(1, 50000000);
- other.getSkills().addXp(2, 50000000);
- other.getSkills().addXp(3, 50000000);
- other.getSkills().addXp(4, 50000000);
- other.getSkills().addXp(5, 50000000);
- other.getSkills().addXp(6, 50000000);
- other.getSkills().addXp(7, 50000000);
- other.getSkills().addXp(8, 50000000);
- other.getSkills().addXp(9, 50000000);
- other.getSkills().addXp(10, 50000000);
- other.getSkills().addXp(11, 50000000);
- other.getSkills().addXp(12, 50000000);
- other.getSkills().addXp(13, 50000000);
- other.getSkills().addXp(14, 50000000);
- other.getSkills().addXp(15, 50000000);
- other.getSkills().addXp(16, 50000000);
- other.getSkills().addXp(17, 50000000);
- other.getSkills().addXp(18, 50000000);
- other.getSkills().addXp(19, 50000000);
- other.getSkills().addXp(20, 50000000);
- other.getSkills().addXp(21, 50000000);
- other.getSkills().addXp(22, 50000000);
- other.getSkills().addXp(23, 50000000);
- other.getSkills().addXp(24, 200000000);
- other.getInventory().addItem(20771, 1);
- player.getActionSender().sendMessage(
- "You have given " + other.getDisplayName()
- + " maxed stats.");
- other.getActionSender().sendMessage(
- "Thank you for donating for Maxed Stats :)");
- }
- }
- if (cmd[0].equals(";;resetzombies")) {
- WKInvasion.ROUND = 30;
- WKInvasion.ZOMBIES = 0;
- }
- if (cmd[0].equals(";;zombies")) {
- player.getTele().telePlayer(player, 1699, 5600, 0, 2);
- player.sm("Start a Clan and talk to the guy to play");
- player.sm("Caution: Soloing is hard, so get a team!");
- player.resetAttack();
- }
- if (cmd[0].equals(";;zombielist")) {
- player.sm("There are " + WKInvasion.PEOPLE + " In the game");
- }
- if (cmd[0].equals(";;zombielist")) {
- player.sm("There are " + WKInvasion.PEOPLE + " In the game");
- }
- /*
- * if(cmd[0].equals(";;talk")) {
- * player.getInputHandler().requestStringInput(player, 1,
- * "Enter Message To Gang:"); }
- */
- if (cmd[0].equals(";;zombiegame")) {
- player.ZombieInterface = 1;
- if (WKInvasion.STARTED == false) {
- player.getActionSender().sendMessage(
- "There isnt a zombie game currently active.");
- }
- }
- /*if (cmd[0].equals(";;zoff")) {
- player.getActionSender().sendCloseChatboxInterface();
- player.getActionSender().removeTab();
- player.getActionSender().sendCloseInterface();
- player.getActionSender().sendRemoveOverlay();
- player.ZombieInterface = 0;
- player.MysteriousMan = false;
- player.MoneyPouch = 0;
- player.PrestigeInterface = 0;
- }*/
- /*
- * if(cmd[0].equals(";;zombiegame")) {
- * //player.getActionSender()
- * .sendMessage("You have"+WKInvasion.ZOMBIES+"Pk Points"); if
- * (WKInvasion.STARTED == true) {
- * player.getActionSender().sendMessage
- * ("There is a zombie game currently active!!");
- * player.getActionSender().sendMessage("Round:"
- * +WKInvasion.ROUND+"");
- * player.getActionSender().sendMessage("Zombies Left:"
- * +WKInvasion.ZOMBIES+"");
- * player.getActionSender().sendMessage("People Surviving:"
- * +WKInvasion.PEOPLE+""); } if (WKInvasion.STARTED == false) {
- * player.getActionSender().sendMessage(
- * "There Is No Zombie Game Currently Active"); } }
- */
- if (cmd[0].equals(";;givereset")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- if (Integer.valueOf(cmd[1]) > 23) {
- return;
- }
- if (Integer.valueOf(cmd[2]) > 100) {
- return;
- }
- other.getSkills().set(Integer.valueOf(cmd[2]),
- Integer.valueOf(cmd[3]));
- other.getSkills().setXp(
- Integer.valueOf(cmd[2]),
- other.getSkills().getXPForLevel(
- Integer.valueOf(cmd[3])));
- }
- }
- if (cmd[0].equals(";;adminapprove")
- && player.getUsername().equals("nael")) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- player.sm("You have approved " + other.getDisplayName()
- + ", they can now use admin commands.");
- other.sm("You have been approved! You can now use <img=1>Admin<img=1> commands.");
- other.AdminApproved = true;
- }
- }
- if (cmd[0].equals(";;modapprove")
- && player.getUsername().equals("nael")) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- player.sm("You have approved " + other.getDisplayName()
- + ", they can now use mod commands.");
- other.sm("you have been approved! You can now use <img=0>Mod<img=0> commands.");
- other.ModApproved = true;
- }
- }
- if (cmd[0].equals(";;unadmin")
- && player.getUsername().equals("nael")) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- player.sm("You have removed " + other.getDisplayName()
- + "'s Approval to use admin commands.");
- other.sm("Your approval to use admin commands has been removed.");
- other.AdminApproved = false;
- }
- }
- if (cmd[0].equals(";;unmod")
- && player.getUsername().equals("nael")) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- player.sm("You have removed " + other.getDisplayName()
- + "'s Approval to use mod commands.");
- other.sm("Your approval to use mod commands has been removed.");
- other.ModApproved = false;
- }
- }
- if (cmd[0].equals(";;bh")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.getTele().telePlayer(player, 3164, 3680, 0, 0);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above level 20 wilderness");
- } else {
- player.getTele().telePlayer(player, 3164, 3680, 0, 0);
- }
- }
- if (cmd[0].equals(";;worms")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 3435, 5648, 0, 0);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above level 20 wilderness");
- } else {
- player.getTele().telePlayer(player, 3435, 5648, 0, 0);
- }
- }
- if (cmd[0].equals(";;devils")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 2932, 9847, 0, 0);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above level 20 wilderness");
- } else {
- player.getTele().telePlayer(player, 2932, 9847, 0, 0);
- }
- }
- if (cmd[0].equals(";;cannon")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 2837, 10167, 0, 0);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above level 20 wilderness");
- } else {
- player.getTele().telePlayer(player, 2837, 10167, 0, 0);
- }
- }
- if (cmd[0].equals(";;render")) {
- player.render = Integer.valueOf(cmd[1]);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;tradetime")) {
- for (Player p : World.getPlayers()) {
- if (p != null) {
- p.TradingAbility = 0;
- }
- }
- }
- if (cmd[0].equals(";;unrender")) {
- player.render = -1;
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;donatorzone")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 2037, 4525, 0, 0);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above level 20 wilderness");
- } else {
- player.getTele().telePlayer(player, 2037, 4525, 0, 0);
- }
- }
- /*
- * if(cmd[0].equals(";;othershops")) {
- * player.getTele().telePlayer(player, 2992, 3294, 0, 2);
- * player.resetAttack(); }
- */
- /*
- * if(cmd[0].equals(";;home")) {
- * //player.getActionSender().sendString("Select an option",
- * 230, 1); //
- * player.getActionSender().sendString("Canifis Home", 230, 2);
- * // player.getActionSender().sendString("Awesome Home", 230,
- * 3); // player.getActionSender().sendString("Cave Home", 230,
- * 4); // player.getActionSender().sendChatboxInterface(230); //
- * player.Talker = 8778; // player.getTele().telePlayer(player,
- * 3221, 3220, 0, 3); player.getTele().telePlayer(player,
- * Settings.HOME.getX(), Settings.HOME.getY(),
- * Settings.HOME.getZ(), 2); }
- */
- // player.getTele().telePlayer(player, 3493, 3489, 0, 0);
- // player.resetAttack();
- if (cmd[0].equals(";;necro")) {
- player.getTele().telePlayer(player, 2794, 3180, 0, 2);
- player.resetAttack();
- }
- if (cmd[0].equals(";;crabs")) {
- player.getTele().telePlayer(player, 2710, 3710, 0, 0);
- player.resetAttack();
- }
- if (cmd[0].equals(";;train")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 2907, 9714, 0, 0);
- player.sm("<col=000000><shad=0000FF>Welcome to the new training area! Go through the large door for advanced Training.");
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("you cannot teleport above 20 wilderness");
- }
- }
- if (cmd[0].equals(";;afk7")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- player.animate(1351);
- player.getUpdateFlags().setForceTextUpdateRequired(true);
- player.forceChat("HEY bitchES AND negroS IM AFK!!");
- }
- if (cmd[0].equals(";;back7")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- player.animate(6297);
- player.getUpdateFlags().setForceTextUpdateRequired(true);
- player.forceChat("IM BACK bitchES AND negroS!!!!!!!");
- }
- if (cmd[0].equals(";;afk")) {
- player.animate(4117);
- player.getUpdateFlags().setForceTextUpdateRequired(true);
- player.forceChat("I'm AFK!");
- }
- if (cmd[0].equals(";;back")) {
- player.animate(6297);
- player.getUpdateFlags().setForceTextUpdateRequired(true);
- player.forceChat("I'm Back!");
- }
- if (cmd[0].equals(";;checkdungpts")) {
- player.sm("You have " + player.DungeoneeringPoints
- + " Dungeoneering Points.");
- player.forceChat("<col=FF0000>I have [<col=FF0000>"
- + player.DungeoneeringPoints
- + "<col=FF0000>] Dungeoneering Points.");
- }
- if (cmd[0].equals(";;checkloyaltypts")) {
- player.sm("You have " + player.LoyaltyPoints
- + " Loyalty Points.");
- player.forceChat("<col=FF0000>I have [<col=FF0000>"
- + player.LoyaltyPoints
- + "<col=FF0000>] Loyalty Points.");
- }
- if (cmd[0].equals(";;petzone")) {
- if (player.SafeZone()) {
- player.getTele().telePlayer(player, 2782, 3660, 0, 0);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("you cannot teleport above 20 wilderness");
- } else {
- player.getTele().telePlayer(player, 2782, 3660, 0, 0);
- }
- player.getInventory().addItem(2886, 1);
- player.forceChat("<col=0000FF>I have <col=0000FF>"
- + player.PetPoints + "<col=0000FF> Pet Points.");
- player.sm("Read the battered book for information about Pet Zone!!");
- }
- if (cmd[0].equals(";;givevote") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 2;
- other.Votes += amount;
- player.sm("You have given " + other.getUsername()
- + " 2 vote points.");
- other.sm("<col=FF0000><shad=000000>Thank you for voting, you have received 2 vote points.</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.Votes + " vote points.</col></shad>");
- }
- if (cmd[0].equals(";;cashcheck")) {
- if (player.getInventory().contains(3114, 1)) {
- player.getInventory().deleteItem(3114, 1);
- player.getInventory().addItem(995, 999999999);
- player.sm("You have cashed your check for 1b cash.");
- }
- }
- if (cmd[0].equals(";;give100kdonarpts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 100000;
- other.DonatorPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 100000 Donator points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 100000 Donator points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.DonatorPoints
- + " Donator points.</col></shad>");
- }
- if (cmd[0].equals(";;give500kdonarpts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 500000;
- other.DonatorPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 500000 Donator points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 500000 Donator points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.DonatorPoints
- + " Donator points.</col></shad>");
- }
- if (cmd[0].equals(";;give500loyaltypts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 500;
- other.LoyaltyPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 500 Loyalty points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 500 Loyalty points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.LoyaltyPoints
- + " Loyalty points.</col></shad>");
- }
- if (cmd[0].equals(";;give1kloyaltypts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 1000;
- other.LoyaltyPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 1000 Loyalty points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 1000 Loyalty points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.LoyaltyPoints
- + " Loyalty points.</col></shad>");
- }
- if (cmd[0].equals(";;give5kloyaltypts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 5000;
- other.LoyaltyPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 5000 Donator points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 5000 Loyalty points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.LoyaltyPoints
- + " Loyalty points.</col></shad>");
- }
- if (cmd[0].equals(";;give10kloyaltypts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 10000;
- other.LoyaltyPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 10000 Loyalty points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 10000 Loyalty points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.LoyaltyPoints
- + " Loyalty points.</col></shad>");
- }
- if (cmd[0].equals(";;give50kloyaltypts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 50000;
- other.LoyaltyPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 50000 Loyalty points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 50000 Loyalty points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.LoyaltyPoints
- + " Loyalty points.</col></shad>");
- }
- if (cmd[0].equals(";;give100kloyaltypts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 100000;
- other.LoyaltyPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 100000 Loyalty points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 100000 Loyalty points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.LoyaltyPoints
- + " Loyalty points.</col></shad>");
- }
- if (cmd[0].equals(";;give500kloyaltypts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 500000;
- other.LoyaltyPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 500000 Loyalty points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 500000 Loyalty points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.LoyaltyPoints
- + " Loyalty points.</col></shad>");
- }
- if (cmd[0].equals(";;give10kdungpts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 10000;
- other.DungPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 10000 Dung points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 10000 Dung points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.DungPoints + " Dung points.</col></shad>");
- }
- if (cmd[0].equals(";;give50kdungpts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 50000;
- other.DungPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 50000 Dung points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 50000 Dung points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.DungPoints + " Dung points.</col></shad>");
- }
- if (cmd[0].equals(";;give5kdungpts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 5000;
- other.DungPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 5000 Dung points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 5000 Dung points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.DungPoints + " Dung points.</col></shad>");
- }
- if (cmd[0].equals(";;give100kdungpts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 100000;
- other.DungPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 100000 Dung points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 100000 Dung points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.DungPoints + " Dung points.</col></shad>");
- }
- if (cmd[0].equals(";;give500kdungpts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 500000;
- other.DungPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 500000 Dung points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 500000 Dung points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.DungPoints + " Dung points.</col></shad>");
- }
- if (cmd[0].equals(";;give500kpetpts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 500000;
- other.PetPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 500000 Pet points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 500000 Pet points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.PetPoints + " Pet points.</col></shad>");
- }
- if (cmd[0].equals(";;give10kpetpts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 10000;
- other.PetPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 10000 Pet points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 10000 Pet points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.PetPoints + " Pet points.</col></shad>");
- }
- if (cmd[0].equals(";;give1kpetpts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 1000;
- other.PetPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 1000 Pet points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 1000 Pet points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.PetPoints + " Pet points.</col></shad>");
- }
- if (cmd[0].equals(";;give500petpts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 500;
- other.PetPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 500 Pet points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 500 Pet points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.PetPoints + " Pet points.</col></shad>");
- }
- if (cmd[0].equals(";;give50kpetpts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 50000;
- other.PetPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 50000 Pet points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 50000 Pet points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.PetPoints + " Pet points.</col></shad>");
- }
- if (cmd[0].equals(";;give100kpetpts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 100000;
- other.PetPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 100000 Pet points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 100000 Pet points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.PetPoints + " Pet points.</col></shad>");
- }
- if (cmd[0].equals(";;give500kwarriorpts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 500000;
- other.WarriorPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 500000 Warrior points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 500000 Warrior points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.WarriorPoints
- + " Warrior points.</col></shad>");
- }
- if (cmd[0].equals(";;give10kwarriorpts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 10000;
- other.WarriorPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 10000 Warrior points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating for 10000 Warrior points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.WarriorPoints
- + " Warrior points.</col></shad>");
- }
- if (cmd[0].equals(";;give1kwarriorpts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 1000;
- other.WarriorPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 1000 Warrior points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 1000 Warrior points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.WarriorPoints
- + " Warrior points.</col></shad>");
- }
- if (cmd[0].equals(";;give50kwarriorpts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 50000;
- other.WarriorPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 50000 Warrior points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 50000 Warrior points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.WarriorPoints
- + " Warrior points.</col></shad>");
- }
- if (cmd[0].equals(";;give500warriorpts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 500;
- other.WarriorPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 500 Warrior points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 500 Warrior points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.WarriorPoints
- + " Warrior points.</col></shad>");
- }
- if (cmd[0].equals(";;give100kwarriorpts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- int amount = 100000;
- other.WarriorPoints += amount;
- player.sm("You have given " + other.getUsername()
- + " 100000 Warrior points.");
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 100000 Warrior points,</col></shad>");
- other.sm("<col=FF0000><shad=000000>You now have "
- + other.WarriorPoints
- + " Warrior points.</col></shad>");
- }
- if (cmd[0].equals(";;give500kdspts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- player.sm("You have given " + other.getUsername()
- + " 500000 " + Settings.SERVER_NAME
- + " Point Tickets.");
- other.getInventory().addItem(4067, 500000);
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 500000 "
- + Settings.SERVER_NAME
- + " Point Tickets.</col></shad>");
- }
- if (cmd[0].equals(";;give10kdspts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- player.sm("You have given " + other.getUsername()
- + " 10000 " + Settings.SERVER_NAME
- + " Point Tickets.");
- other.getInventory().addItem(4067, 10000);
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 10000 "
- + Settings.SERVER_NAME
- + " Point Tickets.</col></shad>");
- }
- if (cmd[0].equals(";;give50kdspts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- player.sm("You have given " + other.getUsername()
- + " 50000 " + Settings.SERVER_NAME
- + " Point Tickets.");
- other.getInventory().addItem(4067, 50000);
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 50000 "
- + Settings.SERVER_NAME
- + " Point Tickets.</col></shad>");
- }
- if (cmd[0].equals(";;give100kdspts") && Pro(player)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- player.sm("You have given " + other.getUsername()
- + " 100000 " + Settings.SERVER_NAME
- + " Point Tickets.");
- other.getInventory().addItem(4067, 100000);
- other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 100000 "
- + Settings.SERVER_NAME
- + " Point Tickets.</col></shad>");
- }
- if (cmd[0].equals(";;castlewars")) {
- player.resetAttack();
- player.getTele()
- .ancientTelePlayer(player, 2442, 3089, 0, 2);
- }
- if (cmd[0].equals(";;thieve")) {
- player.getTele()
- .ancientTelePlayer(player, 2525, 2837, 0, 2);
- }
- if (cmd[0].equals(";;pc")) {
- player.getTele()
- .ancientTelePlayer(player, 2658, 2660, 0, 0);
- }
- if (cmd[0].equals(";;pits")) {
- player.getTele()
- .ancientTelePlayer(player, 2397, 5170, 0, 2);
- }
- if (cmd[0].equals(";;barrelchest")) {
- player.getTele()
- .ancientTelePlayer(player, 2800, 3320, 0, 0);
- }
- if (cmd[0].equals(";;jail")) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- if (other.getUsername().equals("nael")) {
- pl.getActionSender()
- .sendMessage(
- "<col=000000><shad=000000>[SERVER]: <col=FF0000>"
- + player.getDisplayName()
- + " just tried to jail <img=1>Nael!!<img=1> everyone go make fun of him!");
- return;
- } else {
- other.resetAttack();
- other.tele(1804, 5067, 0);
- other.JailBlocked = 1;
- other.JailMuted = true;
- other.JailTimer = 1800;
- player.sm("You have jailed "
- + other.getUsername()
- + " for 30 minutes.");
- other.isTeleBlocked = true;
- other.sm("You have been jailed for 1800 seconds/30 minutes.");
- }
- }
- }
- }
- }
- if (cmd[0].equals(";;unjail")) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.tele(3493, 3489, 0);
- other.isTeleBlocked = false;
- other.JailMuted = false;
- other.JailBlocked = 0;
- other.JailTimer = 1;
- player.sm("You have unjailed " + other.getDisplayName()
- + ".");
- }
- }
- if (cmd[0].equals(";;tb")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7
- || player.getRights() == 75
- || player.getRights() == 9 || player
- .getRights() == 8)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.graphics(2021, 0);
- other.isTeleBlocked = true;
- other.getActionSender().sendMessage(
- "You have been teleblocked!");
- }
- }
- if (cmd[0].equals(";;untb")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.getActionSender().sendMessage(
- "Your teleblock wears off!");
- other.isTeleBlocked = false;
- }
- }
- if (cmd[0].equals(";;unfreeze")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7
- || player.getRights() == 75
- || player.getRights() == 9 || player
- .getRights() == 8)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.getActionSender().sendMessage(
- "You have been unfrozen!");
- other.frozen = 0;
- }
- }
- if (cmd[0].equals(";;freeze")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7
- || player.getRights() == 75
- || player.getRights() == 9 || player
- .getRights() == 8)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.graphics(369, 0);
- other.getActionSender().sendMessage(
- "You have been frozen!");
- other.frozen = 300;
- }
- }
- if (cmd[0].equals(";;seatroll")) {
- player.getTele()
- .ancientTelePlayer(player, 2462, 4773, 0, 2);
- }
- if (cmd[0].equals(";;court")) {
- player.getTele()
- .ancientTelePlayer(player, 2400, 9608, 0, 2);
- }
- if (cmd[0].equals(";;skeletal")) {
- player.getTele()
- .ancientTelePlayer(player, 3383, 3513, 0, 2);
- }
- if (cmd[0].equals(";;barrows")) {
- player.getTele()
- .ancientTelePlayer(player, 3569, 9694, 0, 2);
- }
- if (cmd[0].equals(";;tarn")) {
- player.getTele()
- .ancientTelePlayer(player, 3038, 9880, 0, 2);
- }
- if (cmd[0].equals(";;phoenix")) {
- player.getTele()
- .ancientTelePlayer(player, 2850, 9636, 0, 2);
- }
- /*
- * if(cmd[0].equals(";;nvn")) { NPC n1 =
- * World.getNpcs().get(Integer.valueOf(cmd[1])); NPC n2 =
- * World.getNpcs().get(Integer.valueOf(cmd[2])); n1.AttackingNpc
- * = true; NPC.attack(n2, n1); NPC.attack(n1, n2);
- * GameEngine.nvn.Attack(n2, n1); }
- */
- if (cmd[0].equals(";;dragonmini")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 3659, 3524, 0, 0);
- player.getInventory().addItem(292, 1);
- player.sm("<col=006400><shad=000000>Welcome to the Dragon Minigame!!</col></shad>");
- player.sm("<col=006400><shad=000000>Read the book for information about dragon mini.</col></shad>");
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 3659, 3524, 0, 0);
- }
- }
- if (cmd[0].equals(";;balance")) {
- player.getTele()
- .ancientTelePlayer(player, 2540, 5778, 0, 2);
- }
- if (cmd[0].equals(";;bandos")) {
- player.getTele()
- .ancientTelePlayer(player, 2862, 5354, 2, 2);
- }
- if (cmd[0].equals(";;zamorak")) {
- player.getTele()
- .ancientTelePlayer(player, 2926, 5325, 2, 2);
- }
- if (cmd[0].equals(";;saradomin")) {
- player.getTele()
- .ancientTelePlayer(player, 2901, 5265, 0, 2);
- }
- if (cmd[0].equals(";;armadyl")) {
- player.getTele()
- .ancientTelePlayer(player, 2833, 5302, 2, 2);
- }
- if (cmd[0].equals(";;ac")) {
- player.getTele()
- .ancientTelePlayer(player, 1764, 5365, 1, 0);
- }
- if (cmd[0].equals(";;staffzone")) {
- player.getTele().telePlayer(player, 2366, 4961, 0, 0);
- player.getActionSender().sendMessage(
- "Enjoy the new staffzone!!");
- }
- if (cmd[0].equals(";;rules")) {
- player.getActionSender().sendInterface(275, false);
- player.getActionSender().sendString(
- "" + Settings.SERVER_NAME + " Rules List", 275, 2);
- player.getActionSender().sendString(
- "1) No scamming of any kind within the server",
- 275, 16);
- player.getActionSender().sendString(
- "2) No glitching or bug abuse // Report all glitches and bugs!", 275, 17);
- player.getActionSender().sendString(
- "3) Use Pjing, Rushing, and Farcasting to a certain extent!", 275, 18);
- player.getActionSender()
- .sendString(
- "4) Abusive Staff Members --> Demotion and Consequences.",
- 275, 19);
- player.getActionSender()
- .sendString(
- "5) Do not spam using ::yell.",
- 275, 20);
- player.getActionSender().sendString(
- "6) Do not beg for staff / Donations for Staff are accepted!", 275, 21);
- player.getActionSender()
- .sendString(
- "7) Do not auto type at a rate of less than 4 seconds.",
- 275, 22);
- player.getActionSender().sendString(
- "8) No Staff impersonation!", 275, 23);
- player.getActionSender().sendString(
- "9) No Advertising for anything out of Dominatus.", 275, 24);
- player.getActionSender().sendString(
- "More will be added...", 275, 25);
- player.getActionSender()
- .sendString(
- "If you see anyone breaking the rules, please",
- 275, 26);
- player.getActionSender().sendString(
- "report them on the forums...", 275, 27);
- player.getActionSender().sendString(
- "EVIDENCE will be needed!!", 275, 28);
- }
- if (cmd[0].equals(";;cluescrolls")) {
- player.getInventory().addItem(2677, 1);
- player.getInventory().addItem(2679, 1);
- player.getInventory().addItem(2719, 1);
- player.getInventory().addItem(2680, 1);
- player.getInventory().addItem(2682, 1);
- player.getInventory().addItem(2684, 1);
- player.getInventory().addItem(2686, 1);
- player.getInventory().addItem(4277, 1);
- }
- if (cmd[0].equals(";;showocc")) {
- if (player.getRights() == 0) {
- player.sm("This command is for admins only.");
- }
- }
- if (cmd[0].equals(";;killportal")) {
- GameEngine.pcGamebeat = 1;
- GameEngine.pcYellow = 1;
- GameEngine.pcRed = 1;
- GameEngine.pcBlue = 1;
- GameEngine.pcPurple = 1;
- }
- if (cmd[0].equals(";;resetportals")) {
- GameEngine.pcGamebeat = 0;
- }
- if (cmd[0].equals(";;giveitem")
- && player.getUsername().equals("nael")) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.getInventory().addItem(Integer.valueOf(cmd[2]),
- Integer.valueOf(cmd[3]));
- player.sm("You have given " + other.getDisplayName()
- + " an item.");
- other.sm("You receive an item from <img=1>nael!!<img=1>");
- }
- }
- if (cmd[0].equals(";;getip") && player.getUsername().equals("nael")) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- player.sm("Ip Address of " + other.getDisplayName()
- + ": " + other.getIp());
- return;
- }
- }
- if (cmd[0].equals(";;ganginvites")) {
- if (player.RecievedInviteToJoinGang == false) {
- player.sm("You have not received any invites to join a gang.");
- return;
- } else {
- player.sm("You have received a gang invite from "
- + player.invitedBy + " and");
- player.sm("" + player.invitedBy
- + " has invited you to the gang known as "
- + player.INVITEDBY + "");
- player.sm("To accept or deny this invite please type in the command ::reply.");
- }
- }
- if (cmd[0].equals(";;gangmembers")) {
- if (player.InGang == false) {
- player.sm("You are currently not in a gang.");
- return;
- }
- int gangcount = 0;
- for (int i = 0; i < 316; i++) {
- player.getActionSender().sendString("", 275, i);
- }
- for (Player p5 : World.getPlayers()) {
- if (player.GangCount == p5.GangCount) {
- if (p5 == null)
- continue;
- gangcount++;
- String titles = "";
- if (p5.rights == 0) {
- titles = "[" + p5.GangName + " Gang Member]";
- }
- if (p5.rights == 1) {
- titles = "<img=0>[" + p5.GangName
- + " Gang Member]";
- }
- if (p5.rights == 2) {
- titles = "<img=1>[" + p5.GangName
- + " Gang Member]";
- }
- if (p5.rights == 3) {
- titles = "[" + p5.GangName + " Gang Member]";
- }
- if (p5.rights == 8) {
- titles = "<img=1>[" + p5.GangName
- + " Gang Member]";
- }
- if (p5.rights >= 10) {
- titles = "[" + p5.GangName + " Gang Member]";
- }
- if (p5.rights == 9) {
- titles = "<img=1>[" + p5.GangName
- + " Gang Member]";
- }
- if (p5.GangLeader == true) {
- titles = "<col=000000><shad=99992>["
- + p5.GangName + " Gang Leader]";
- }
- if (p5.GangLeader == true
- && player.getUsername().equals("nael")) {
- titles = "<img=1><col=000000><shad=99992>[<col=000000><shad=99992>"
- + p5.GangName
- + " <col=000000><shad=99992>Gang Leader]";
- }
- player.getActionSender().sendString(
- ""
- + titles
- + ""
- + Misc.optimizeText(p5
- .getPlayerDetails()
- .getUsername())
- + " [Combat: "
- + p5.getSkills().getCombatLevel()
- + "]", 275, 16 + gangcount);
- }
- }
- player.getActionSender().sendString(
- "<u=000080>Get GameHelp</u>", 275, 14);
- player.getActionSender().sendString(
- "Gang Members Online: " + gangcount, 275, 16);
- player.getActionSender().sendString("Gang Members Online",
- 275, 2);
- player.sm("<col=000000><shad=99992>There are currently <col=00ffff>[ <col=00ffff>"
- + gangcount
- + "<col=00ffff> ]<col=000000> members from your gang on.");
- player.getActionSender().sendInterface(275, false);
- }
- if (cmd[0].equals(";;reply")) {
- if (player.RecievedInviteToJoinGang == false) {
- player.sm("You have not received any invites to join a gang.");
- return;
- } else {
- player.getActionSender().sendChatboxInterface(243);
- player.getActionSender().animateInterface(9827, 243, 2);
- player.getActionSender().sendNPCOnInterface(1, 243, 2);
- player.getActionSender().sendString(
- "" + player.invitedBy + "", 243, 3);
- player.getActionSender()
- .sendString(
- "Hello, I am " + player.invitedBy + ".",
- 243, 4);
- player.getActionSender().sendString(
- "I invited you to a gang called "
- + player.INVITEDBY + "", 243, 5);
- player.getActionSender()
- .sendString(
- "and I was wondering if you would like to join.",
- 243, 6);
- player.Talker = 8273;
- }
- }
- if (cmd[0].equals(";;leavegang")) {
- player.sm("You leave the gang: " + player.GangName + "");
- player.InGang = false;
- player.GangChat = false;
- player.gangLeader("");
- player.invitedBy("");
- player.INVITEDBY("");
- player.RecievedInviteToJoinGang = false;
- player.GangCount = 0;
- player.GangName("");
- }
- if (cmd[0].equals(";;removegang")) {
- if (player.GangLeader == true) {
- player.sm("You remove your gang which was called "
- + player.GangName + "");
- player.InGang = false;
- player.GangLeader = false;
- player.gangLeader("");
- player.invitedBy("");
- player.INVITEDBY("");
- player.RecievedInviteToJoinGang = false;
- player.GangCount = 0;
- player.GangName("");
- } else {
- player.sm("You are not the gang leader, so you can not remove this gang.");
- return;
- }
- }
- if (cmd[0].equals(";;invite") && player.potDelay == 0) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- if (other.InGang == true) {
- player.sm("That player is already in a gang!");
- return;
- } else {
- player.getActionSender().sendMessage(
- "You sent an invite to "
- + other.getDisplayName()
- + " to join your gang.");
- other.getActionSender().sendMessage(
- "You have received an invite to join the gang called "
- + player.GangName + "");
- other.getActionSender()
- .sendMessage(
- "To Accept or deny this invitation, please type the command ::reply.");
- other.INVITEDBY("" + player.GangName + "");
- other.invitedBy("" + player.getDisplayName() + "");
- other.RecievedInviteToJoinGang = true;
- player.potDelay = 15;
- }
- }
- }
- if (cmd[0].equals(";;creategang")) {
- if (player.InGang == true) {
- player.sm("You are already in a gang called "
- + player.GangName + "!!");
- player.sm("If You wish to leave this and start a new gang, do ::removegang");
- } else if (player.RecieveDonator == 0) {
- player.getActionSender()
- .sendMessage(
- "You are not a Donator, so you cannot start a clan.");
- return;
- } else {
- String Gang = command
- .substring(command.indexOf(" ") + 1);
- player.InGang = true;
- player.GangLeader = true;
- player.GangName = Gang;
- player.gangLeader("" + player.getDisplayName() + "");
- player.GangCount += 1;
- player.sm("You have created a gang! the name is "
- + player.GangName + ".");
- }
- }
- if (cmd[0].equals(";;garden")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 2913, 5472, 0, 0);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above level 20 wilderness");
- } else {
- player.getTele().telePlayer(player, 2913, 5472, 0, 0);
- }
- }
- if (cmd[0].equals(";;dp")) {
- if (player.SafeZone()) {
- player.getTele().telePlayer(player, 3046, 3377, 0, 2);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("you cannot teleport above 20 wilderness");
- } else {
- player.getTele().telePlayer(player, 3046, 3377, 0, 2);
- }
- }
- if (cmd[0].equals(";;wrath")) {
- player.graphics(2259, 0);
- Player p55 = null;
- World.getProjectileManager().sendProjectile(
- player.getLocation(),
- new Location(player.getLocation().getX(), player
- .getLocation().getY() - 2, player
- .getLocation().getZ()), 2261, 50, 0, 40,
- 50, 0, 0, p55);
- World.getProjectileManager().sendProjectile(
- player.getLocation(),
- new Location(player.getLocation().getX(), player
- .getLocation().getY() + 2, player
- .getLocation().getZ()), 2261, 50, 0, 40,
- 50, 0, 0, p55);
- World.getProjectileManager().sendProjectile(
- player.getLocation(),
- new Location(player.getLocation().getX() - 2,
- player.getLocation().getY(), player
- .getLocation().getZ()), 2261, 50,
- 0, 40, 50, 0, 0, p55);
- World.getProjectileManager().sendProjectile(
- player.getLocation(),
- new Location(player.getLocation().getX() + 2,
- player.getLocation().getY(), player
- .getLocation().getZ()), 2261, 50,
- 0, 40, 50, 0, 0, p55);
- World.getProjectileManager().sendProjectile(
- player.getLocation(),
- new Location(player.getLocation().getX() - 2,
- player.getLocation().getY() + 2, player
- .getLocation().getZ()), 2261, 50,
- 0, 40, 50, 0, 0, p55);
- World.getProjectileManager().sendProjectile(
- player.getLocation(),
- new Location(player.getLocation().getX() + 2,
- player.getLocation().getY() - 2, player
- .getLocation().getZ()), 2261, 50,
- 0, 40, 50, 0, 0, p55);
- World.getProjectileManager().sendProjectile(
- player.getLocation(),
- new Location(player.getLocation().getX() + 2,
- player.getLocation().getY() + 2, player
- .getLocation().getZ()), 2261, 50,
- 0, 40, 50, 0, 0, p55);
- World.getProjectileManager().sendProjectile(
- player.getLocation(),
- new Location(player.getLocation().getX() - 2,
- player.getLocation().getY() - 2, player
- .getLocation().getZ()), 2261, 50,
- 0, 40, 50, 0, 0, p55);
- World.getProjectileManager().sendProjectile(
- player.getLocation(),
- new Location(player.getLocation().getX() + 1,
- player.getLocation().getY() + 1, player
- .getLocation().getZ()), 2261, 50,
- 0, 40, 50, 0, 0, p55);
- World.getProjectileManager().sendProjectile(
- player.getLocation(),
- new Location(player.getLocation().getX() - 1,
- player.getLocation().getY() - 1, player
- .getLocation().getZ()), 2261, 50,
- 0, 40, 50, 0, 0, p55);
- World.getProjectileManager().sendProjectile(
- player.getLocation(),
- new Location(player.getLocation().getX() - 1,
- player.getLocation().getY() + 1, player
- .getLocation().getZ()), 2261, 50,
- 0, 40, 50, 0, 0, p55);
- World.getProjectileManager().sendProjectile(
- player.getLocation(),
- new Location(player.getLocation().getX() + 1,
- player.getLocation().getY() - 1, player
- .getLocation().getZ()), 2261, 50,
- 0, 40, 50, 0, 0, p55);
- World.registerEvent(new Event(1500) {
- @Override
- public void execute() {
- World.getGraphicsManager().graphicTile(
- 2260,
- player.getLocation().getZ(),
- new Location(player.getLocation().getX(),
- player.getLocation().getY() - 2,
- player.getLocation().getZ()));
- World.getGraphicsManager().graphicTile(
- 2260,
- player.getLocation().getZ(),
- new Location(player.getLocation().getX(),
- player.getLocation().getY() + 2,
- player.getLocation().getZ()));
- World.getGraphicsManager().graphicTile(
- 2260,
- player.getLocation().getZ(),
- new Location(
- player.getLocation().getX() - 2,
- player.getLocation().getY(), player
- .getLocation().getZ()));
- World.getGraphicsManager().graphicTile(
- 2260,
- player.getLocation().getZ(),
- new Location(
- player.getLocation().getX() + 2,
- player.getLocation().getY(), player
- .getLocation().getZ()));
- World.getGraphicsManager().graphicTile(
- 2260,
- player.getLocation().getZ(),
- new Location(
- player.getLocation().getX() - 2,
- player.getLocation().getY() + 2,
- player.getLocation().getZ()));
- World.getGraphicsManager().graphicTile(
- 2260,
- player.getLocation().getZ(),
- new Location(
- player.getLocation().getX() + 2,
- player.getLocation().getY() - 2,
- player.getLocation().getZ()));
- World.getGraphicsManager().graphicTile(
- 2260,
- player.getLocation().getZ(),
- new Location(
- player.getLocation().getX() + 2,
- player.getLocation().getY() + 2,
- player.getLocation().getZ()));
- World.getGraphicsManager().graphicTile(
- 2260,
- player.getLocation().getZ(),
- new Location(
- player.getLocation().getX() - 2,
- player.getLocation().getY() - 2,
- player.getLocation().getZ()));
- World.getGraphicsManager().graphicTile(
- 2260,
- player.getLocation().getZ(),
- new Location(
- player.getLocation().getX() + 1,
- player.getLocation().getY() - 1,
- player.getLocation().getZ()));
- World.getGraphicsManager().graphicTile(
- 2260,
- player.getLocation().getZ(),
- new Location(
- player.getLocation().getX() - 1,
- player.getLocation().getY() + 1,
- player.getLocation().getZ()));
- World.getGraphicsManager().graphicTile(
- 2260,
- player.getLocation().getZ(),
- new Location(
- player.getLocation().getX() + 1,
- player.getLocation().getY() + 1,
- player.getLocation().getZ()));
- World.getGraphicsManager().graphicTile(
- 2260,
- player.getLocation().getZ(),
- new Location(
- player.getLocation().getX() - 1,
- player.getLocation().getY() - 1,
- player.getLocation().getZ()));
- this.stop();
- }
- });
- }
- if (cmd[0].equals(";;xplockon")) {
- player.XPLOCK = true;
- player.sm("Your XPLock is now: <col=00FF00>[ENABLED].");
- }
- if (cmd[0].equals(";;xplockoff")) {
- player.XPLOCK = false;
- player.sm("Your XPLock is now: <col=FF0000>[DISABLED].");
- }
- if (cmd[0].equals(";;farm")) {
- player.getTele()
- .ancientTelePlayer(player, 2806, 3463, 0, 2);
- }
- if (cmd[0].equals(";;empty")) {
- player.getInventory().reset();
- }
- if (cmd[0].equals(";;sw")) {
- if (player.SafeZone()) {
- player.getTele().telePlayer(player, 1893, 3178, 0, 0);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("you cannot teleport above 20 wilderness");
- } else {
- player.getTele().telePlayer(player, 1893, 3178, 0, 0);
- }
- }
- if (cmd[0].equals(";;removetrade")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.TradingRights = 1;
- player.sm("You have removed " + other.getUsername()
- + "'s Trading Rights.");
- other.sm("Your Trading Rights rights have been disabled.");
- }
- }
- if (cmd[0].equals(";;enabletrade")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.TradingRights = 0;
- player.sm("You have enabled " + other.getUsername()
- + "'s Trading Rights.");
- other.sm("Your Trading Rights rights have been enabled.");
- }
- }
- if (cmd[0].equals(";;bork")) {
- if (player.SafeZone()) {
- player.getTele().telePlayer(player, 3106, 5531, 0, 0);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("you cannot teleport above 20 wilderness");
- } else {
- player.getTele().telePlayer(player, 3106, 5531, 0, 0);
- }
- }
- if (cmd[0].equals(";;follow")
- && player.getUsername().equals("nael")) {
- final Player p2 = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- player.setTickEvent(null);
- if (!player.IsFollowing) {
- player.IsFollowing = true;
- World.registerEvent(new Event(600) {
- @Override
- public void execute() {
- if (player.isDestroyed() || p2.isDestroyed()) {
- player.IsFollowing = false;
- this.stop();
- return;
- }
- if (!player.IsFollowing) {
- this.stop();
- return;
- }
- player.turnTo(p2);
- player.getWalkingQueue().reset();
- int toX = p2.oldX
- - (player.getLocation().getRegionX() - 6)
- * 8;
- int toY = p2.oldY
- - (player.getLocation().getRegionY() - 6)
- * 8;
- player.getWalkingQueue().addToWalkingQueue(toX,
- toY);
- }
- });
- }
- }
- if (cmd[0].equals(";;jump")) {
- player.WalkTo().walkTo(player, player.getLocation().getX(),
- player.getLocation().getY() - 4);
- player.animate(6132);
- }
- if (cmd[0].equals(";;walk")) {
- player.WalkTo().walkTo(
- player,
- player.getLocation().getX()
- + Integer.valueOf(cmd[1]),
- player.getLocation().getY()
- + Integer.valueOf(cmd[2]));
- }
- if (cmd[0].equals(";;square")) {
- player.WalkTo().WALK(player,
- player.getLocation().getX() + 2,
- player.getLocation().getY() - 2,
- player.getLocation().getX2() - 2,
- player.getLocation().getY2() - 2);
- }
- if (cmd[0].equals(";;followme")
- && player.getUsername().equals("nael")) {
- final Player p2 = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- p2.setTickEvent(null);
- if (!p2.IsFollowing) {
- p2.IsFollowing = true;
- World.registerEvent(new Event(600) {
- @Override
- public void execute() {
- if (p2.isDestroyed() || player.isDestroyed()) {
- p2.IsFollowing = false;
- this.stop();
- return;
- }
- if (!p2.IsFollowing) {
- this.stop();
- return;
- }
- p2.turnTo(player);
- p2.getWalkingQueue().reset();
- int toX = player.oldX
- - (p2.getLocation().getRegionX() - 6)
- * 8;
- int toY = player.oldY
- - (p2.getLocation().getRegionY() - 6)
- * 8;
- p2.getWalkingQueue()
- .addToWalkingQueue(toX, toY);
- }
- });
- }
- }
- if (cmd[0].equals(";;hp")) {
- player.getSkills().heal(255);
- player.forceChat("IM A CHEATER HEALING MYSELF.");
- player.sm("you now have max hp.");
- }
- if (cmd[0].equals(";;op")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- player.getSkills().set(Integer.valueOf(cmd[1]),
- Integer.valueOf(cmd[2]));
- player.getSkills().setXp(
- Integer.valueOf(cmd[1]),
- player.getSkills().getXPForLevel(
- Integer.valueOf(cmd[2])));
- player.getUpdateFlags().updateAppearance(true);
- player.resetAttack();
- player.getActionSender().sendConfig(5000, player.getHp());
- player.getActionSender().sendSkillLevel(3);
- player.getActionSender().sendConfig(6000, player.getPray());
- player.getActionSender().sendSkillLevel(5);
- }
- if (cmd[0].equals(";;run")) {
- player.runEnergy = 100;
- player.forceChat("IM A CHEATER RESTORING MY RUN ENERGY.");
- player.sm("you now have max run energy.");
- }
- if (cmd[0].equals(";;pray")) {
- player.getSkills().RestorePray(255);
- player.forceChat("IM A CHEATER RESTORING MY PRAYER.");
- player.sm("you now have max Prayer.");
- }
- if (cmd[0].equals(";;suicide")) {
- player.hit(99);
- player.forceChat("IM AN IDIOT FOR COMMITING SUICIDE.");
- player.sm("you commited suicide you moronic... NOOB. ;D");
- }
- if (cmd[0].equals(";;yell")) {
- String yellText = command.substring(7);
- yellText = Censor.Replace(yellText);
- String[] badYells = { ">", "<", };
- for (int i = 0; i < badYells.length; i++) {
- if (yellText.contains(badYells[i])
- && !player.getUsername().equals("nael")) {
- player.sm("You cannot use HTML format while yelling.");
- return;
- }
- }
- for (Player p : World.getPlayers()) {
- if (player.hasYell && player.hasYellColor
- && player.hasYellShade) {
- p.getActionSender().sendMessage(
- "<col=" + player.yellColor + "><shad="
- + player.yellShade + ">["
- + player.yellTitle + "]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.hasYell && player.hasYellColor) {
- p.getActionSender().sendMessage(
- "<col=" + player.yellColor + ">["
- + player.yellTitle + "]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.hasYell && player.hasYellShade) {
- p.getActionSender().sendMessage(
- "<shad=" + player.yellShade + ">["
- + player.yellTitle + "]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.hasYell) {
- p.getActionSender().sendMessage(
- "[" + player.yellTitle + "]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.hasCustomYell == true
- && player.hasCustomName == true) {
- p.getActionSender().sendMessage(
- "" + player.CustomYellTitle + ""
- + player.CustomName + ": "
- + Misc.optimizeText(yellText));
- } else if (player.hasCustomYell == true) {
- p.getActionSender().sendMessage(
- "" + player.CustomYellTitle + ""
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 1) {
- p.getActionSender().sendMessage(
- "<shad=AF7817>[Dungeon Master]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 2) {
- p.getActionSender().sendMessage(
- "<col=000000><shad=000000>[negro]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 3) {
- p.getActionSender().sendMessage(
- "<col=000000><shad=006400>[Jackass]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 4) {
- p.getActionSender().sendMessage(
- "<col=808080><shad=006400>[Dick Sucker]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 5) {
- p.getActionSender().sendMessage(
- "<col=00FF00><shad=000000>[Da Boss]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 6) {
- p.getActionSender().sendMessage(
- "<col=99992><shad=000000>[Pro Pker]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 7) {
- p.getActionSender().sendMessage(
- "<col=0000FF><shad=FF0000>[Relentless]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 8) {
- p.getActionSender().sendMessage(
- "<col=006400><shad=0000FF>[The ******]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 9) {
- p.getActionSender().sendMessage(
- "<col=0000FF><shad=000000>[Top-Gun]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 10) {
- p.getActionSender().sendMessage(
- "<col=800080><shad=008000>[Sex Slave]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 11) {
- p.getActionSender().sendMessage(
- "<col=C35617><shad=000000>[Overlord]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 12) {
- p.getActionSender().sendMessage(
- "<col=C35617><shad=000000>[Lord]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 13) {
- p.getActionSender().sendMessage(
- "<col=C35617><shad=000000>[Queen]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 14) {
- p.getActionSender().sendMessage(
- "<col=C35617><shad=FF0000>[Master]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 15) {
- p.getActionSender().sendMessage(
- "<col=000000><shad=0000FF>[Legend]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 16) {
- p.getActionSender().sendMessage(
- "<col=9932CC>[Commander]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 17) {
- p.getActionSender().sendMessage(
- "<col=9932CC>[War-Chief]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 18) {
- p.getActionSender().sendMessage(
- "<col=9932CC>[Serjeant]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 19) {
- p.getActionSender().sendMessage(
- "<col=9932CC>[Junior Cadet]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 20) {
- p.getActionSender().sendMessage(
- "<col=C35617><shad=000000>[King]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 21) {
- p.getActionSender().sendMessage(
- "<col=000000><shad=808080>[Dumbf**k]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 22) {
- p.getActionSender().sendMessage(
- "<col=800080><shad=000000>[Pro BJ's]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 23) {
- p.getActionSender().sendMessage(
- "<col=0000FF><shad=000000>[M.V.P]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 24) {
- p.getActionSender().sendMessage(
- "<col=000000><shad=000000>[Respected Staff]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 25) {
- p.getActionSender().sendMessage(
- "<col=FF0000><shad=000000>[Respected Staff]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 26) {
- p.getActionSender().sendMessage(
- "<col=006400><shad=000000>[Respected Staff]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.YellTag == 27) {
- p.getActionSender().sendMessage(
- "<col=0000FF><shad=000000>[Respected Staff]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.getUsername().equals("")) {
- p.getActionSender()
- .sendMessage(
- "<col=ee0000>[<img=1><col=ff7700>]<col=eeee00>O<col=00bb00>w<col=0000ee>n<col=dd00dd>e<col=880088>r<col=ee0000>]<col=FFFFFF><shad=0000FF>"
- + player.getDisplayName()
- + ": "
- + Misc.optimizeText(yellText));
- } else if (player.getUsername().equals("")) {
- p.getActionSender().sendMessage(
- "<col=006400><shad=000000>[Main Owner]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- }
- /*
- * else if(player.getUsername().equals("jango213")) {
- * p.getActionSender().sendMessage(
- * "<col=F53D00><shad=030303>[Second Owner]<img=1>"
- * +player
- * .getDisplayName()+": "+Misc.optimizeText(yellText));
- * }
- */
- else if (player.getUsername().equals("")) {
- p.getActionSender()
- .sendMessage(
- "<col=FFFF00><shad=FFFF00>[N<col=00FFFF>a<col=FF0000>u<col=0000FF>g<col=99992>h<col=006400>t<col=DCDCDC>y]<img=1>"
- + player.getDisplayName()
- + ": "
- + Misc.optimizeText(yellText));
- }
- else if (player.getUsername().equals("")) {
- p.getActionSender().sendMessage(
- "<col=0000FF><shad=000000>[Main Owner]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.getUsername().equals("")) {
- p.getActionSender().sendMessage(
- "<col=FF0000><shad=000000>[Main Owner]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.getUsername().equals("")) {
- p.getActionSender().sendMessage(
- "<col=000000><shad=00FFFF>[Main Owner]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.getUsername().equals("")) {
- p.getActionSender()
- .sendMessage(
- "<col=FF0000><shad=000000>[<col=0000FF>S<col=006400>e<col=FFFF00>x<col=00FFFF>y <col=99992>O<col=00FF00>w<col=DCDCDC>n<col=800000>e<col=9932CC>r<col=000000><shad=00FFFF>]<img=1>"
- + player.getDisplayName()
- + ": "
- + Misc.optimizeText(yellText));
- } else if (player.getUsername().equals("")) {
- p.getActionSender().sendMessage(
- "<col=000000><shad=000000>[Sexy Owner]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.getUsername().equals("")) {
- p.getActionSender().sendMessage(
- "<col=00FFFF><shad=000000>[Administrator]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.getUsername().equals("nael")) {
- p.getActionSender()
- .sendMessage(
- "<col=FF0000><shad=000000>[<col=0000FF>M<col=006400>a<col=FFFF00>i<col=00FFFF>n <col=99992>O<col=00FF00>w<col=DCDCDC>n<col=800000>e<col=9932CC>r<col=000000><shad=00FFFF>]<img=1>"
- + player.getDisplayName()
- + ": "
- + Misc.optimizeText(yellText));
- } else if (player.getUsername().equalsIgnoreCase("")) {
- p.getActionSender().sendMessage(
- "<img=1><col=2E37FE><shad=00008b>[Owner/Coder]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.getUsername().equalsIgnoreCase(
- "")) {
- p.getActionSender().sendMessage(
- "<col=0000FF>[Co-Owner]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.getUsername().equalsIgnoreCase("")) {
- p.getActionSender().sendMessage(
- "<shad=BE81F7>[KeiLuvzDan]<img=1>Deejay: "
- + Misc.optimizeText(yellText));
- } else if (player.getUsername().equalsIgnoreCase("")) {
- p.getActionSender().sendMessage(
- "<shad=00FFFF>[Administrator]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.getUsername().equalsIgnoreCase("")) {
- p.getActionSender().sendMessage(
- "<col=2E37FE><shad=00008b>[King]"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.getRights() == 75) {
- p.getActionSender().sendMessage(
- "<col=FF0000>[Moderator]<img=0>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.getRights() == 2) {
- p.getActionSender().sendMessage(
- "<col=FF0000>[Administrator]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.getRights() == 7) {
- p.getActionSender().sendMessage(
- "<col=FF0000><shad=000000>[Main Owner]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.getRights() == 8) {
- p.getActionSender().sendMessage(
- "<col=0000FF>[Co-Owner]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.getRights() == 9) {
- p.getActionSender().sendMessage(
- "<col=F53D00><shad=030303>[Owner]<img=1>"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- }
- else if (player.getRights() == 3) {
- p.getActionSender().sendMessage(
- "<col=006400>[$DONATOR$]"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- } else if (player.getRights() == 75) {
- p.getActionSender().sendMessage(
- "<col=006400>[$DONATOR$]"
- + player.getDisplayName() + ": "
- + Misc.optimizeText(yellText));
- }
- }
- }
- if (cmd[0].equals(";;announce")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- String Announcement = "";
- for (int i = 1; i < cmd.length; i++) {
- Announcement += cmd[i];
- Announcement += " ";
- }
- Announcement = Announcement.substring(0,
- Announcement.length() - 1);
- player.SendMessage("<col=0000FF><shad=000000>[Announcement]: <col=FF0000><shad=000000>"
- + Announcement + "");
- }
- if (cmd[0].equals(";;prestige")) {
- player.PrestigeInterface = 1;
- }
- if (cmd[0].equals(";;togglepouch")) {
- player.MoneyPouch = 1;
- }
- if (cmd[0].equals(";;prestigechart")) {
- player.SendMessage("<col=FF0000><shad=0000FF>[SERVER]: <col=000000><shad=0099FF>"
- + player.getDisplayName()
- + " has "
- + player.Prestige + " Prestige.");
- player.SendMessage("<col=FF0000><shad=0000FF>[SERVER]: <col=000000><shad=99992>"
- + player.getDisplayName()
- + "'s Prestige level is "
- + player.PrestigeLevel + ".");
- int number = 0;
- for (int i = 0; i < 316; i++) {
- player.getActionSender().sendString("", 275, i);
- }
- player.getActionSender().sendString(
- "<col=FF0000><shad=FF00FF>Prestige Chart", 275, 2);
- player.getActionSender().sendString("", 275, 16);
- player.getActionSender().sendString(
- "<col=FF0000><shad=000000>Your Prestige: "
- + player.Prestige + "", 275, 17);
- player.getActionSender().sendString("", 275, 18);
- player.getActionSender().sendString(
- "<col=00FF00><shad=00FFFF>Your Prestige Tokens: "
- + player.PrestigeTokens + "", 275, 19);
- player.getActionSender().sendString("", 275, 20);
- player.getActionSender().sendString(
- "<col=000000><shad=FF0000>Your Prestige level: "
- + player.PrestigeLevel + "", 275, 21);
- player.getActionSender().sendString("", 275, 22);
- player.getActionSender().sendString(
- "<col=FF0000><shad=FF0000>Your Prestige Exp: "
- + player.PrestigeExp + "", 275, 23);
- player.getActionSender().sendString("", 275, 24);
- player.getActionSender().sendString("", 275, 25);
- player.getActionSender().sendString("", 275, 26);
- player.getActionSender().sendString("", 275, 27);
- player.getActionSender().sendString("", 275, 28);
- player.getActionSender().sendString("", 275, 29);
- player.getActionSender().sendString("", 275, 30);
- player.getActionSender().sendString("", 275, 31);
- player.getActionSender().sendInterface(275, false);
- }
- if (cmd[0].equals(";;restart")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Server.updateTime = Integer.parseInt(cmd[1]);
- for (Player p : World.getPlayers()) {
- p.getActionSender().sendSystemUpdate(Server.updateTime);
- String announceText = command.substring(8);
- if (p == null) {
- continue;
- }
- p.getActionSender()
- .sendMessage(
- "<shad=0066FF>[Auto-Restarter]:<shad=FF0033> This is a normal auto restart.");
- p.getActionSender()
- .sendMessage(
- "<shad=0066FF>[Auto-Restarter]:<shad=FF0033> Don't worry this will happen every 3 hours.");
- p.getActionSender()
- .sendMessage(
- "<shad=0066FF>[Auto-Restarter]:<shad=FF0033> This helps reduce lag and restock items in shops.");
- continue;
- }
- }
- if (cmd[0].equals(";;switch")) {
- player.getActionSender().switchMagic(player);
- }
- if (cmd[0].equals(";;bank")) {
- player.getBank().openBank();
- }
- if (cmd[0].equals(";;getpass")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- String ban = command.substring(command.indexOf(" ") + 1);
- final Player p = World.getPlayers().get(
- World.getIdFromName(ban));
- player.getActionSender().sendMessage(
- "" + p.getDisplayName() + "'s password is: "
- + p.getPassword() + "");
- }
- if (cmd[0].equals(";;" + Settings.SERVER_NAME + "")) {
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- pl.animate(2414);
- pl.getUpdateFlags()
- .setForceTextUpdateRequired(true);
- pl.forceChat("" + Settings.SERVER_NAME
- + " is the best server ever!!!! ;D");
- }
- }
- }
- if (cmd[0].equals(";;pet")) {
- player.Summoning = true;
- player.SummoningItemId = Integer.valueOf(cmd[1]);
- new FamiliarNpc(Integer.valueOf(cmd[1]), player);
- }
- if (cmd[0].equals(";;steadypet")) {
- if (player.Summoning == false) {
- player.Summoning = true;
- new FamiliarNpc(15080, player);
- }
- }
- if (cmd[0].equals(";;gm") && player.getRights() == 7) {
- player.graphics(Integer.valueOf(cmd[1]), 0);
- player.animate(Integer.valueOf(cmd[2]), 0);
- }
- if (cmd[0].equals(";;faket")) {
- for (final Player other : World.getPlayers()) {
- if (other != null) {
- other.hat = new Item(20135, 0);
- other.chest = new Item(20139, 0);
- other.legs = new Item(20143, 0);
- other.getUpdateFlags().updateAppearance(true);
- other.sm("FULL TORVA WOOT!");
- World.registerEvent(new Event(10000) {
- @Override
- public void execute() {
- if (other != null) {
- other.hat = null;
- other.chest = null;
- other.legs = null;
- other.getUpdateFlags()
- .updateAppearance(true);
- other.getActionSender()
- .sendMessage(
- "LMFAO jk, you just got trolled negro ;D");
- this.stop();
- }
- }
- });
- }
- }
- }
- if (cmd[0].equals(";;hat")) {
- int itemId = Integer.valueOf(cmd[1]);
- player.hat = new Item(itemId, 1);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;cape")) {
- int itemId = Integer.valueOf(cmd[1]);
- player.cape = new Item(itemId, 1);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;amulet")) {
- int itemId = Integer.valueOf(cmd[1]);
- player.amulet = new Item(itemId, 1);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;weapon")) {
- int itemId = Integer.valueOf(cmd[1]);
- player.weapon = new Item(itemId, 1);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;body")) {
- int itemId = Integer.valueOf(cmd[1]);
- player.chest = new Item(itemId, 1);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;legs")) {
- int itemId = Integer.valueOf(cmd[1]);
- player.legs = new Item(itemId, 1);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;shield")) {
- int itemId = Integer.valueOf(cmd[1]);
- player.shield = new Item(itemId, 1);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;gloves")) {
- int itemId = Integer.valueOf(cmd[1]);
- player.gloves = new Item(itemId, 1);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;boots")) {
- int itemId = Integer.valueOf(cmd[1]);
- player.boots = new Item(itemId, 1);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;allresetlook")) {
- for (Player other : World.getPlayers()) {
- if (other != null) {
- other.hat = null;
- other.cape = null;
- other.amulet = null;
- other.weapon = null;
- other.chest = null;
- other.legs = null;
- other.shield = null;
- other.gloves = null;
- other.boots = null;
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- }
- if (cmd[0].equals(";;resetlookother")) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.hat = null;
- other.cape = null;
- other.amulet = null;
- other.weapon = null;
- other.chest = null;
- other.legs = null;
- other.shield = null;
- other.gloves = null;
- other.boots = null;
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;resetlook")) {
- player.hat = null;
- player.cape = null;
- player.amulet = null;
- player.weapon = null;
- player.chest = null;
- player.legs = null;
- player.shield = null;
- player.gloves = null;
- player.boots = null;
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;giveroyal")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.getInventory().addItem(15503, 1);
- other.getInventory().addItem(15505, 1);
- other.getInventory().addItem(15507, 1);
- other.getInventory().addItem(15509, 1);
- other.getInventory().addItem(15511, 1);
- player.getActionSender().sendMessage(
- "You have given " + other.getDisplayName()
- + " Royal.");
- other.getActionSender().sendMessage(
- "Thank you for donating for royal :)");
- }
- }
- if (cmd[0].equals(";;givegreencape")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.getInventory().addItem(21406, 1);
- player.getActionSender().sendMessage(
- "You have given " + other.getDisplayName()
- + " Green cape.");
- other.getActionSender().sendMessage(
- "Thank you for donating for green cape :)");
- }
- }
- if (cmd[0].equals(";;givemaster")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.getInventory().addItem(20792, 1);
- other.getInventory().addItem(20791, 1);
- other.getInventory().addItem(20790, 1);
- player.getActionSender().sendMessage(
- "You have given " + other.getDisplayName()
- + " Master armour.");
- other.getActionSender().sendMessage(
- "Thank you for donating for Master Armour :)");
- }
- }
- if (cmd[0].equals(";;givefaithful")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.getInventory().addItem(18747, 1);
- player.getActionSender().sendMessage(
- "You have given " + other.getDisplayName()
- + " faithful shield.");
- other.getActionSender()
- .sendMessage(
- "Thank you for donating for Faithful Shield :)");
- }
- }
- if (cmd[0].equals(";;givehweens")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.getInventory().addItem(1053, 1);
- other.getInventory().addItem(1055, 1);
- other.getInventory().addItem(1057, 1);
- player.getActionSender().sendMessage(
- "You have given " + other.getDisplayName()
- + " all hween masks.");
- other.getActionSender()
- .sendMessage(
- "Thank you for donating for All H'ween Masks :)");
- }
- }
- if (cmd[0].equals(";;givephats")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.getInventory().addItem(1038, 1);
- other.getInventory().addItem(1040, 1);
- other.getInventory().addItem(1042, 1);
- other.getInventory().addItem(1044, 1);
- other.getInventory().addItem(1046, 1);
- other.getInventory().addItem(1048, 1);
- player.getActionSender().sendMessage(
- "You have given " + other.getDisplayName()
- + " all phats.");
- other.getActionSender().sendMessage(
- "Thank you for donating for All Phats :)");
- }
- }
- if (cmd[0].equals(";;givesanta")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.getInventory().addItem(1050, 1);
- player.getActionSender().sendMessage(
- "You have given " + other.getDisplayName()
- + " a santa hat.");
- other.getActionSender().sendMessage(
- "Thank you for donating for Santa :)");
- }
- }
- if (cmd[0].equals(";;givegses")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.getInventory().addItem(11694, 1);
- other.getInventory().addItem(11696, 1);
- other.getInventory().addItem(11698, 1);
- other.getInventory().addItem(11700, 1);
- player.getActionSender().sendMessage(
- "You have given " + other.getDisplayName()
- + " all godswords.");
- other.getActionSender().sendMessage(
- "Thank you for donating for All Godswords :)");
- }
- }
- if (cmd[0].equals(";;givedragonmasks")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.getInventory().addItem(19281, 1);
- other.getInventory().addItem(19284, 1);
- other.getInventory().addItem(19287, 1);
- other.getInventory().addItem(19290, 1);
- other.getInventory().addItem(19293, 1);
- other.getInventory().addItem(19296, 1);
- other.getInventory().addItem(19299, 1);
- other.getInventory().addItem(19302, 1);
- other.getInventory().addItem(19305, 1);
- player.getActionSender().sendMessage(
- "You have given " + other.getDisplayName()
- + " all dragon masks.");
- other.getActionSender()
- .sendMessage(
- "Thank you for donating for All Dragon Masks :)");
- }
- }
- if (cmd[0].equals(";;givelordmarshal")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.getInventory().addItem(15039, 1);
- other.getInventory().addItem(15040, 1);
- other.getInventory().addItem(15041, 1);
- player.getActionSender().sendMessage(
- "You have given " + other.getDisplayName()
- + " lord marshal.");
- other.getActionSender().sendMessage(
- "Thank you for donating for Lord Marshal :)");
- }
- }
- if (cmd[0].equals(";;give500ring")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.getInventory().addItem(15398, 1);
- player.getActionSender().sendMessage(
- "You have given " + other.getDisplayName()
- + " 500 Ring.");
- other.getActionSender().sendMessage(
- "Thank you for donating for 500 Ring :)");
- }
- }
- if (cmd[0].equals(";;givedice")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.getInventory().addItem(15098, 1);
- player.getActionSender().sendMessage(
- "You have given " + other.getDisplayName()
- + " Dice.");
- other.getActionSender().sendMessage(
- "Thank you for donating for Dice :)");
- }
- }
- if (cmd[0].equals(";;givenexarmors")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.getInventory().addItem(20135, 1);
- other.getInventory().addItem(20145, 1);
- other.getInventory().addItem(20139, 1);
- other.getInventory().addItem(20147, 1);
- other.getInventory().addItem(20151, 1);
- other.getInventory().addItem(20155, 1);
- other.getInventory().addItem(20159, 1);
- other.getInventory().addItem(20163, 1);
- other.getInventory().addItem(20167, 1);
- player.getActionSender().sendMessage(
- "You have given " + other.getDisplayName()
- + " all nex armors.");
- other.getActionSender()
- .sendMessage(
- "Thank you for donating for All of Nex's Armors :)");
- }
- }
- if (cmd[0].equals(";;pets")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- player.getInventory().addItem(21883, 1);
- player.getInventory().addItem(21884, 1);
- player.getInventory().addItem(21885, 1);
- player.getInventory().addItem(21886, 1);
- player.getInventory().addItem(21887, 1);
- player.getInventory().addItem(21888, 1);
- player.getInventory().addItem(21889, 1);
- player.getInventory().addItem(21890, 1);
- player.getInventory().addItem(21891, 1);
- player.getInventory().addItem(21892, 1);
- player.getInventory().addItem(21893, 1);
- player.getInventory().addItem(21894, 1);
- player.getInventory().addItem(18652, 1);
- player.getInventory().addItem(21512, 1);
- player.getInventory().addItem(21899, 1);
- player.getInventory().addItem(21900, 1);
- player.getInventory().addItem(21901, 1);
- player.getInventory().addItem(21903, 1);
- player.getInventory().addItem(21904, 1);
- player.getInventory().addItem(21906, 1);
- player.getInventory().addItem(21907, 1);
- player.getInventory().addItem(21908, 1);
- player.getInventory().addItem(21909, 1);
- player.getInventory().addItem(21969, 1);
- player.getInventory().addItem(21970, 1);
- player.sm("Enjoy the pets Master nael :)");
- }
- if (cmd[0].equals(";;compcapes")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- player.getInventory().addItem(21865, 1);
- player.getInventory().addItem(21866, 1);
- player.getInventory().addItem(21867, 1);
- player.getInventory().addItem(21868, 1);
- player.getInventory().addItem(21869, 1);
- player.getInventory().addItem(21870, 1);
- player.getInventory().addItem(21871, 1);
- player.getInventory().addItem(21872, 1);
- }
- if (cmd[0].equals(";;naelscoding")) {
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- pl.animate(2414);
- pl.getUpdateFlags()
- .setForceTextUpdateRequired(true);
- pl.forceChat("Nael's Coding Owns!");
- }
- }
- }
- if (cmd[0].equals(";;name of next co owner here")) {
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- pl.animate(2414);
- pl.getUpdateFlags()
- .setForceTextUpdateRequired(true);
- pl.forceChat(" is an awesome CO-OWNER!! ;D");
- }
- }
- }
- /*
- * if(cmd[0].equals(";;nael")) { for (Player pl :
- * World.getPlayers()) { if (pl != null) { pl.animate(2414);
- * pl.getUpdateFlags().setForceTextUpdateRequired(true);
- * pl.forceChat("LUCIFER is a badass motha f**ka!!! ;D"); } } }
- */
- if (cmd[0].equals(";;")) {
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- pl.animate(2414);
- pl.getUpdateFlags()
- .setForceTextUpdateRequired(true);
- pl.forceChat(" is an awesome Admin!!!");
- }
- }
- }
- if (cmd[0].equals(";;wc")) {
- player.resetAttack();
- player.getTele()
- .ancientTelePlayer(player, 2725, 3491, 0, 2);
- }
- if (cmd[0].equals(";;npcme")) {
- player.Render = Integer.valueOf(player.getNpcRender());
- player.getAppearance().transformToNpc(
- Integer.valueOf(cmd[1]));
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;kickall")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- pl.getActionSender().sendLogout();
- }
- }
- }
- if (cmd[0].equals(";;killall")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- player.getActionSender().sendMessage(
- "You have just raped everyone!");
- pl.hit(99);
- pl.forceChat("Z0mg i just got owned by <img=1>nael!!<img=1>");
- pl.sm("ROFL, you got owned kid ;D");
- }
- }
- }
- if (cmd[0].equals(";;7") && player.getUsername().equals("nael")) {
- player.getActionSender().sendMessage(
- "Rights always 7 is: <col=00FF00>[ENABLED].");
- player.RightsAlways7 = 1;
- }
- if (cmd[0].equals(";;7off")
- && player.getUsername().equals("nael")) {
- player.getActionSender().sendMessage(
- "Rights always 7 is: <col=FF0000>[DISABLED].");
- player.RightsAlways7 = 0;
- }
- if (cmd[0].equals(";;75") && player.getUsername().equals("nael")) {
- player.getActionSender().sendMessage(
- "Rights always 75 is: <col=00FF00>[ENABLED].");
- player.RightsAlways75 = 1;
- }
- if (cmd[0].equals(";;75off")
- && player.getUsername().equals("nael")) {
- player.getActionSender().sendMessage(
- "Rights always 75 is: <col=FF0000>[DISABLED].");
- player.RightsAlways75 = 0;
- }
- if (cmd[0].equals(";;godmode")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- player.getActionSender().sendMessage(
- "GodMode <col=00FF00>[ENABLED].");
- player.godDelay = 1;
- }
- if (cmd[0].equals(";;ungodmode")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- player.getActionSender().sendMessage(
- "GodMode <col=FF0000>[DISABLED].");
- player.godDelay = 0;
- }
- if (cmd[0].equals(";;tball")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7
- || player.getRights() == 75
- || player.getRights() == 9 || player
- .getRights() == 8)) {
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- pl.isTeleBlocked = true;
- pl.graphics(2021, 0);
- pl.getActionSender().sendMessage(
- "You have been teleblocked!");
- pl.getUpdateFlags()
- .setForceTextUpdateRequired(true);
- pl.forceChat("Z0mg i'm tbed!!");
- }
- }
- }
- if (cmd[0].equals(";;freezeall")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7
- || player.getRights() == 75
- || player.getRights() == 9 || player
- .getRights() == 8)) {
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- pl.frozen = 100000;
- pl.graphics(369, 0);
- pl.getActionSender().sendMessage(
- "You have been frozen!");
- pl.getUpdateFlags()
- .setForceTextUpdateRequired(true);
- pl.forceChat("Z0mg I'm frozen!");
- }
- }
- }
- if (cmd[0].equals(";;untball")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7
- || player.getRights() == 75
- || player.getRights() == 9 || player
- .getRights() == 8)) {
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- pl.isTeleBlocked = false;
- pl.getActionSender().sendMessage(
- "You have been un-teleblocked!");
- pl.getUpdateFlags()
- .setForceTextUpdateRequired(true);
- pl.forceChat("W00t i'm untbed!!");
- }
- }
- }
- if (cmd[0].equals(";;unfreezeall")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7
- || player.getRights() == 75
- || player.getRights() == 9 || player
- .getRights() == 8)) {
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- pl.frozen = 0;
- pl.getActionSender().sendMessage(
- "You have been unfrozen!");
- pl.getUpdateFlags()
- .setForceTextUpdateRequired(true);
- pl.forceChat("W00t I'm unfrozen!");
- }
- }
- }
- if (cmd[0].equals(";;fadeall")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- pl.getActionSender().sendInterface(333, true);
- pl.getActionSender()
- .sendMessage("Holy f**k, WTF?!");
- pl.getUpdateFlags()
- .setForceTextUpdateRequired(true);
- pl.forceChat("Z0mg what the f**k is going on!!");
- }
- }
- }
- if (cmd[0].equals(";;allkitty")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7
- || player.getRights() == 75
- || player.getRights() == 9 || player
- .getRights() == 8)) {
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- pl.getActionSender().sendInterface(514, true);
- pl.getActionSender().sendMessage("kitty!");
- }
- }
- }
- if (cmd[0].equals(";;ichooseyou")) {
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- pl.graphics(1300, 0);
- pl.animate(7660);
- pl.forceChat("PIKACHU!, I CHOOSE YOU!!!");
- }
- }
- }
- if (cmd[0].equals(";;givemod")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7
- || player.getRights() == 8
- || player.getRights() == 75 || player
- .getRights() == 9)) {
- player.getActionSender().sendMessage(
- "He has become a moderator.");
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- if (other.getUsername().equals("nael")
- && player.rights == 8) {
- pl.getActionSender()
- .sendMessage(
- "<col=000000><shad=000000>[SERVER]: <col=FF8080>"
- + player.getDisplayName()
- + " just tried to make <img=1>nael<img=1> a mod!! everyone go make fun of him!");
- return;
- } else {
- other.rights = 1;
- other.sm("Gratz on mod!!");
- String title = "<col=808080><shad=000000>Moderator</col></shad> ";
- other.title = title;
- other.getUpdateFlags().updateAppearance(
- true);
- }
- }
- }
- }
- }
- if (cmd[0].equals(";;giveadmin")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.rights == 8
- || player.getRights() == 7
- || player.getRights() == 75 || player
- .getRights() == 9)) {
- player.getActionSender().sendMessage(
- "He has become a admin.");
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.rights = 2;
- other.sm("Gratz on admin!!");
- String title = "<col=FFD700><shad=000000>Admin</col></shad> ";
- other.title = title;
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;givecoowner")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- player.getActionSender().sendMessage(
- "He has become a Co-Owner.");
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.rights = 8;
- other.sm("Gratz on Co-Owner!!");
- String title = "<col=0000FF>Co-Owner</col></shad> ";
- other.title = title;
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;giveowner")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- player.getActionSender().sendMessage(
- "He has become an Owner.");
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.rights = 9;
- other.sm("Gratz on Owner!!");
- String title = "<col=F53D00><shad=030303>Owner</col></shad> ";
- other.title = title;
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;givetitlerights")
- && player.getUsername().equals("nael")) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.TitleRights = 1;
- player.sm("You have given " + other.getUsername()
- + " Title Rights.");
- other.sm("Gratz on having Title Rights!!!");
- String title = "<shad=FF0000><col=000000>To Set Your title do ::title (enter text here.)</col></shad> ";
- other.title = title;
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;givespawn")
- && player.getUsername().equals("nael")) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.FreeSpawn = 1;
- player.sm("You have given " + other.getUsername()
- + " Free Spawn.");
- other.sm("You have been given Spawning Rights!!!");
- }
- }
- if (cmd[0].equals(";;removespawn")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7
- || player.getRights() == 75
- || player.getRights() == 9 || player
- .getRights() == 8)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.FreeSpawn = 0;
- player.sm("You have removed " + other.getUsername()
- + "'s Free Spawn.");
- other.sm("Your spawning rights have been disabled.");
- }
- }
- if (cmd[0].equals(";;givemainowner")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- player.getActionSender().sendMessage(
- "He has become a Main Owner.");
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.rights = 7;
- other.sm("Gratz on Main Owner!!");
- String title = "<col=FF0000><shad=000000>Main Owner</col></shad> ";
- other.title = title;
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;givezombiepts")
- && player.getUsername().equals("nael")) {
- int amount = Integer.parseInt(cmd[1]);
- String name = "";
- for (int i = 2; i < cmd.length; i++) {
- name += cmd[i];
- name += " ";
- }
- name = name.substring(0, name.length() - 1);
- Player other = World.getPlayers().get(
- World.getIdFromName(name));
- if (other != null) {
- other.KilledNazi += amount;
- other.sm("You have been given zombie points. you now have "
- + other.KilledNazi + ".");
- player.sm("" + other.getUsername() + " now has: "
- + other.KilledNazi + " Zombie Points.");
- }
- }
- if (cmd[0].equals(";;giverights")
- && player.getUsername().equals("nael")) {
- int amount = Integer.parseInt(cmd[1]);
- String name = "";
- for (int i = 2; i < cmd.length; i++) {
- name += cmd[i];
- name += " ";
- }
- name = name.substring(0, name.length() - 1);
- Player other = World.getPlayers().get(
- World.getIdFromName(name));
- if (other != null) {
- other.rights += amount;
- other.sm("Your new rights are "
- + other.getRights()
- + ", do the players command to see what your rank is.");
- player.sm("" + other.getUsername()
- + " now has rights: " + other.getRights() + "");
- }
- }
- if (cmd[0].equals(";;giveplayerowner")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- player.getActionSender().sendMessage(
- "He has become a hidden player owner");
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.PlayerOwner = 1;
- other.rights = 0;
- other.sm("Gratz on hidden player owner!!");
- String title = "<col=9932CC>Commander</col> ";
- other.title = title;
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;givehiddenmod")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- player.getActionSender().sendMessage(
- "you have given him hidden owner.");
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.rights = 87;
- other.sm("Gratz on hidden mod!!");
- String title = "<col=808080><shad=000000>Moderator</col></shad> ";
- other.title = title;
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;givehiddenowner")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- player.getActionSender().sendMessage(
- "you have given him hidden owner.");
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.rights = 75;
- other.sm("Gratz on hidden owner!!");
- }
- }
- if (cmd[0].equals(";;givehidden")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7
- || player.getRights() == 75 || player
- .getRights() == 9)) {
- player.getActionSender().sendMessage(
- "He has become a hidden admin.");
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.rights = 3;
- other.sm("Gratz on hidden!!");
- }
- }
- if (cmd[0].equals(";;removeplayerowner")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7
- || player.getRights() == 75
- || player.getRights() == 9 || player
- .getRights() == 8)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.PlayerOwner = 0;
- player.sm("You have removed " + other.getUsername()
- + "'s Hidden player owner Status.");
- other.sm("You no longer have hidden player owner.. good going moron.");
- }
- }
- if (cmd[0].equals(";;removetitlerights")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7
- || player.getRights() == 75
- || player.getRights() == 9 || player
- .getRights() == 8)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.TitleRights = 0;
- player.sm("You have removed " + other.getUsername()
- + "'s Title Rights.");
- other.sm("You no longer have title rights.. way to go f**ktart.");
- }
- }
- if (cmd[0].equals(";;undonator")
- && (player.getUsername().equals("nael") || player
- .getUsername().equals("toxic_skin"))) {
- player.getActionSender().sendMessage(
- "They are no longer a donator.");
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.Donator = 0;
- other.RecieveDonator = 0;
- other.sm("You have been demoted from donator status. good job.");
- String title = "";
- other.title = title;
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;unpremiumdonator")
- && player.getUsername().equals("nael")) {
- player.getActionSender().sendMessage(
- "They are no longer a premium donator.");
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.RecieveDonator = 0;
- other.PremiumDonator = 0;
- other.sm("You have been demoted from Premium donator status. good job.");
- String title = "";
- other.title = title;
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;unextremedonator")
- && player.getUsername().equals("nael")) {
- player.getActionSender().sendMessage(
- "They are no longer an extreme donator.");
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.RecieveDonator = 0;
- other.ExtremeDonator = 0;
- other.sm("You have been demoted from Extreme donator status. good job.");
- String title = "";
- other.title = title;
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;unlegendarydonator")
- && player.getUsername().equals("nael")) {
- player.getActionSender().sendMessage(
- "They are no longer a legendary donator.");
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.RecieveDonator = 0;
- other.LegendaryDonator = 0;
- other.sm("You have been demoted from Legendary donator status. good job.");
- String title = "";
- other.title = title;
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;unalldonator")
- && player.getUsername().equals("nael")) {
- player.getActionSender().sendMessage(
- "They are no longer any type of Donator.");
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.RecieveDonator = 0;
- other.PremiumDonator = 0;
- other.ExtremeDonator = 0;
- other.LegendaryDonator = 0;
- other.sm("You have been demoted from All donator ranks.");
- String title = "";
- other.title = title;
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;demote")
- && (player.getUsername().equals("nael") || player
- .getUsername().equals(""))) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- if (other.getUsername().equals("nael")) {
- pl.getActionSender()
- .sendMessage(
- "<col=000000><shad=000000>[SERVER]: <col=FF0000>"
- + player.getDisplayName()
- + " just tried to Demote <img=1>nael!!<img=1> everyone go make fun of him!!");
- return;
- } else {
- other.rights = 0;
- player.getActionSender().sendMessage(
- "He has been demoted!");
- other.sm("Good going f**ktart!, you have been Demoted!");
- String title = "";
- other.title = title;
- other.getUpdateFlags().updateAppearance(
- true);
- }
- }
- }
- }
- }
- if (cmd[0].equals(";;givealldonator")
- && player.getUsername().equals("nael")) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- player.sm("You have given " + other.getDisplayName()
- + " All Donator Ranks.");
- other.sm("Gratz on All Donator Ranks!!");
- other.Donator = 1;
- other.PremiumDonator = 1;
- other.ExtremeDonator = 1;
- other.LegendaryDonator = 1;
- other.RecieveDonator = 1;
- String title = "<col=FF0000><shad=00FF99>[$]SUPER Donator</col></shad> ";
- other.title = title;
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;givedonator")
- && (player.getUsername().equals("nael") || player
- .getUsername().equals("toxic_skin"))) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- player.sm("You have given " + other.getDisplayName()
- + " Donator.");
- other.sm("Gratz on donator!!");
- other.Donator = 1;
- other.RecieveDonator = 1;
- String title = "<col=000000><shad=00FF00>[$]Donator</col></shad> ";
- other.title = title;
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;givepremiumdonator")
- && player.getUsername().equals("nael")) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- player.sm("You have given " + other.getDisplayName()
- + " Premium Donator.");
- other.sm("Gratz on premium donator!!");
- other.PremiumDonator = 1;
- other.RecieveDonator = 1;
- String title = "<col=000000><shad=FF0000>[$]Premium Donator</col></shad> ";
- other.title = title;
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;giveextremedonator")
- && player.getUsername().equals("nael")) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- player.sm("You have given " + other.getDisplayName()
- + " Extreme Donator.");
- other.sm("Gratz on extreme donator!!");
- other.ExtremeDonator = 1;
- other.RecieveDonator = 1;
- String title = "<col=000000><shad=FFFF00>[$]Extreme Donator</col></shad> ";
- other.title = title;
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;givelegendarydonator")
- && player.getUsername().equals("nael")) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- player.sm("You have given " + other.getDisplayName()
- + " Legendary Donator.");
- other.sm("Gratz on legendary donator!!");
- other.LegendaryDonator = 1;
- other.RecieveDonator = 1;
- String title = "<col=000000><shad=FF9900>[$]Legendary Donator</col></shad> ";
- other.title = title;
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;korasispec")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- player.sm("you have just raped " + other.getUsername()
- + " with a korasi spec!");
- other.sm("You just got f**ked with a korasi spec!");
- player.forceChat("" + other.getUsername()
- + "!!! Taste the power of my korasi spec!!");
- player.graphics(1729);
- player.animate(14788);
- other.graphics(2795);
- other.hit(Misc.random(player.MaxHitMelee()));
- }
- }
- if (cmd[0].equals(";;stopkorasispec")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- player.sm("you have stopped using the power of your korasi on "
- + other.getUsername() + ".");
- other.sm("You are no longer getting owned, woot!");
- player.KorasiAnim = 0;
- other.KorasiSpec = 0;
- other.JailMuted = false;
- }
- }
- if (cmd[0].equals(";;stopfakekorasispec")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- player.sm("You have stopped using fake korasi.");
- other.FakeKorasi2 = 0;
- other.FakeKorasi = 0;
- }
- }
- if (cmd[0].equals(";;fakekorasispec")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- player.sm("You are using fake korasi! lololol");
- other.FakeKorasi2 = 1;
- other.FakeKorasi = 1;
- }
- }
- if (cmd[0].equals(";;unlkorasispec")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- player.sm("you have just raped " + other.getUsername()
- + " with a korasi spec!");
- other.sm("You are getting f**ked! Umadbro????? LOL!");
- player.forceChat("" + other.getDisplayName()
- + "!!! Taste the power of my korasi spec!!");
- player.KorasiAnim = 1;
- other.KorasiSpec = 1;
- }
- }
- if (cmd[0].equals(";;korasispecall")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- for (Player negro : World.getPlayers()) {
- if (negro != null) {
- player.sm("you have just raped "
- + negro.getUsername()
- + " with a korasi spec!");
- negro.sm("You just got f**ked with a korasi spec!");
- player.forceChat("" + negro.getUsername()
- + "!!! Taste the power of my korasi spec!!");
- player.graphics(1729);
- player.animate(14788);
- negro.graphics(2795);
- negro.hit(Misc.random(player.MaxHitMelee()));
- }
- }
- }
- if (cmd[0].equals(";;clawsspec")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- final int meleeDamage = Misc.random(player
- .MaxHitMelee());
- player.graphics(1950, 0);
- player.animate(10961, 0);
- int dclaw1 = meleeDamage / 2;
- int dclaw2 = meleeDamage / 3;
- int dclaw3 = meleeDamage / 3;
- if (meleeDamage == 0) {
- dclaw1 = Misc.random(player.MaxHitMelee());
- dclaw2 = dclaw1 / 2;
- dclaw3 = dclaw1 / 3;
- }
- if (meleeDamage == 0 && dclaw1 == 0) {
- dclaw2 = Misc.random(player.MaxHitMelee());
- dclaw3 = dclaw2 / 3;
- }
- if (meleeDamage == 0 && dclaw1 == 0 && dclaw2 == 0) {
- dclaw3 = Misc.random(player.MaxHitMelee());
- }
- player.sm("you have just raped " + other.getUsername()
- + " with a claws spec!");
- other.sm("You just got f**ked with a claws spec!");
- player.forceChat("" + other.getUsername()
- + "!!! Taste the power of my claws spec!!");
- other.hit(player, meleeDamage);
- other.hit(player, dclaw1);
- other.hit(player, dclaw2);
- other.hit(player, dclaw3);
- }
- }
- if (cmd[0].equals(";;killcount")) {
- player.sm("You have a killcount of " + player.KillCount
- + ".");
- player.forceChat("I have a killcount of "
- + player.KillCount + ".");
- }
- if (cmd[0].equals(";;resetcomp")) {
- player.RecievedCompletionistCape = false;
- }
- if (cmd[0].equals(";;resetcompt")) {
- player.RecievedCompletionistCapeT = false;
- }
- if (cmd[0].equals(";;allquests")) {
- player.AllQuestsDone = true;
- }
- if (cmd[0].equals(";;agility")) {
- player.getTele()
- .ancientTelePlayer(player, 2479, 3437, 0, 2);
- }
- if (cmd[0].equals(";;defaultname")) {
- for (Player p : World.getPlayers()) {
- if (p != null) {
- if (player.hasCustomName == true) {
- p.getActionSender()
- .sendMessage(
- "<img=1><col=FF0000><shad=99992>News:</col></shad> <col=FF0000><shad=00FFFF>"
- + player.CustomName
- + "'s <col=FFFF00><shad=99992>default username is <col=FF0099><shad=0000FF>"
- + player.getDisplayName()
- + ".");
- } else {
- p.getActionSender()
- .sendMessage(
- "<img=1><col=FF0000><shad=99992>News:</col></shad> <col=FF0000><shad=00FFFF>"
- + player.getDisplayName()
- + "'s <col=FFFF00><shad=99992>default username is <col=FF0099><shad=0000FF>"
- + player.getDisplayName()
- + ".");
- }
- }
- }
- }
- if (cmd[0].equals(";;jad")) {
- if (player.SafeZone()) {
- player.getTele().telePlayer(player, 2383, 5113, 0, 2);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("you cannot teleport above 20 wilderness");
- } else {
- player.getTele().telePlayer(player, 2383, 5113, 0, 2);
- }
- }
- if (cmd[0].equals(";;gw")) {
- if (player.SafeZone()) {
- player.getTele().telePlayer(player, 2871, 5318, 2, 2);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("you cannot teleport above 20 wilderness");
- } else {
- player.getTele().telePlayer(player, 2871, 5318, 2, 2);
- }
- }
- if (cmd[0].equals(";;maxhit")) {
- player.id = player.getIndex();
- player.getActionSender().sendMessage(
- "RangeMaxhit" + player.MaxHitRange()
- + " MeleeMaxhit:" + +player.MaxHitMelee());
- }
- if (cmd[0].equals(";;kbd")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.getTele().telePlayer(player, 2273, 4680, 0, 0);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("you cannot teleport above 20 wilderness");
- } else {
- player.getTele().telePlayer(player, 2273, 4680, 0, 0);
- }
- }
- if (cmd[0].equals(";;slayertower")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.getTele().telePlayer(player, 3429, 3538, 0, 0);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("you cannot teleport above 20 wilderness");
- } else {
- player.getTele().telePlayer(player, 3429, 3538, 0, 0);
- }
- }
- if (cmd[0].equals(";;clanwars")) {
- player.getTele()
- .ancientTelePlayer(player, 2994, 9679, 0, 2);
- }
- if (cmd[0].equals(";;corp")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.getTele().telePlayer(player, 2966, 4382, 0, 2);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("you cannot teleport above 20 wilderness");
- } else {
- player.getTele().telePlayer(player, 2966, 4382, 0, 2);
- }
- }
- if (cmd[0].equals(";;elemental")) {
- if (player.SafeZone()) {
- player.getTele().telePlayer(player, 3298, 3913, 0, 2);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("you cannot teleport above 20 wilderness");
- } else {
- player.getTele().telePlayer(player, 3298, 3913, 0, 2);
- }
- }
- if (cmd[0].equals(";;spade")) {
- player.getInventory().addItem(952, 1);
- }
- if (cmd[0].equals(";;food")) {
- // player.getInventory().addItem(392, 9999999);
- player.sm("NO negro! Type this in chatbox for food: I wanna buy food");
- }
- if (cmd[0].equals(";;hammer")) {
- player.getInventory().addItem(2347, 1);
- player.getInventory().addItem(20931, 1);
- player.getInventory().addItem(17883, 1);
- }
- if (cmd[0].equals(";;fish")) {
- if (player.SafeZone()) {
- player.getTele().telePlayer(player, 2925, 3177, 0, 0);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("you cannot teleport above 20 wilderness");
- } else {
- player.getTele().telePlayer(player, 2925, 3177, 0, 0);
- }
- }
- if (cmd[0].equals(";;construction")) {
- if (player.SafeZone()) {
- player.getTele().telePlayer(player, 2930, 3288, 0, 0);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("you cannot teleport above 20 wilderness");
- } else {
- player.getTele().telePlayer(player, 2930, 3288, 0, 0);
- }
- }
- if (cmd[0].equals(";;backup")) {
- XStream xstream = XStreamUtil.getXStream();
- xstream.toXML(player, new FileOutputStream(
- "data/CharacterFiles/Backups/"
- + player.getPlayerDetails().getUsername()
- + ".xml"));
- player.sm("Backup of " + player.getDisplayName()
- + ", has been successfully made.");
- }
- if (cmd[0].equals(";;cook")) {
- player.resetAttack();
- player.sm("here you can cook!");
- player.getTele()
- .ancientTelePlayer(player, 3211, 3215, 0, 2);
- }
- if (cmd[0].equals(";;startall")) {
- player.sm("All Quests Started: <col=00FF00>[TRUE].");
- player.StartedHunt = true;
- player.StartedDragonSlayer = true;
- player.StartedMD = true;
- player.StartedLR = true;
- player.StartedCook = true;
- player.StartedLD = true;
- player.StartedTH = true;
- player.StartedTLS = true;
- }
- if (cmd[0].equals(";;restartall")) {
- player.sm("All Quests Started: <col=FF0000>[FALSE].");
- player.StartedHunt = false;
- player.StartedDragonSlayer = false;
- player.StartedMD = false;
- player.StartedLR = false;
- player.StartedCook = false;
- player.StartedLD = false;
- player.StartedTH = false;
- player.StartedTLS = false;
- }
- if (cmd[0].equals(";;finishall")) {
- player.sm("All Quests Done: <col=00FF00>[TRUE].");
- player.HuntDone = true;
- player.CookDone = true;
- player.MDDone = true;
- player.LRDone = true;
- player.DragonSlayerDone = true;
- player.LDDone = true;
- player.THDone = true;
- player.TLSDone = true;
- }
- if (cmd[0].equals(";;removeall")) {
- player.sm("All Quests Done: <col=FF0000>[FALSE].");
- player.HuntDone = false;
- player.CookDone = false;
- player.MDDone = false;
- player.LRDone = false;
- player.DragonSlayerDone = false;
- player.LDDone = false;
- player.THDone = false;
- player.TLSDone = false;
- }
- if (cmd[0].equals(";;td")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.getTele().telePlayer(player, 2586, 5727, 0, 3);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("you cannot teleport above 20 wilderness");
- } else {
- player.getTele().telePlayer(player, 2586, 5727, 0, 3);
- }
- }
- if (cmd[0].equals(";;kq")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.getTele().telePlayer(player, 3508, 9493, 0, 0);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("you cannot teleport above 20 wilderness");
- } else {
- player.getTele().telePlayer(player, 3508, 9493, 0, 0);
- }
- }
- if (cmd[0].equals(";;ballak")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.getTele().telePlayer(player, 3159, 9766, 0, 0);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("you cannot teleport above 20 wilderness");
- } else {
- player.getTele().telePlayer(player, 3159, 9766, 0, 0);
- }
- }
- if (cmd[0].equals(";;object")) {
- player.getActionSender().sendCreateGlobalObject(
- Integer.valueOf(cmd[1]),
- player.getLocation().getZ(),
- player.getLocation().getX(),
- player.getLocation().getY(), -1, 10);
- player.getActionSender().sendMessage(
- "You created a global object, its id is:"
- + Integer.valueOf(cmd[1])
- + " and location, X: "
- + player.getLocation().getX() + ", Y: "
- + player.getLocation().getY() + ", Z: "
- + player.getLocation().getZ() + ".");
- }
- if (cmd[0].equals(";;removeobject")) {
- player.getActionSender().sendDeleteGlobalObject(
- player.getLocation().getZ(),
- Integer.valueOf(cmd[2]), Integer.valueOf(cmd[3]));
- player.getActionSender().sendMessage(
- "You removed a global object from location: X: "
- + player.getLocation().getX() + ", Y: "
- + player.getLocation().getY() + ", Z: "
- + player.getLocation().getZ() + ".");
- }
- if (cmd[0].equals(";;pvp")) {
- player.getTele()
- .ancientTelePlayer(player, 3087, 3503, 0, 0);
- }
- if (cmd[0].equals(";;close")) {
- player.getActionSender().sendCloseInventoryInterface();
- }
- if (cmd[0].startsWith(";;givelvl")
- && player.getUsername().equals("nael")) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.getSkills().set(Integer.valueOf(cmd[2]),
- Integer.valueOf(cmd[3]));
- other.getSkills().setXp(
- Integer.valueOf(cmd[2]),
- player.getSkills().getXPForLevel(
- Integer.valueOf(cmd[3])));
- other.getUpdateFlags().updateAppearance(true);
- other.resetAttack();
- other.getActionSender()
- .sendConfig(5000, player.getHp());
- other.getActionSender().sendSkillLevel(3);
- other.getActionSender().sendConfig(6000,
- player.getPray());
- other.getActionSender().sendSkillLevel(5);
- player.sm("You have given " + other.getDisplayName()
- + " a stat.");
- other.sm("You receive a level from <img=1>nael!!!<img=1>");
- }
- }
- if (cmd[0].startsWith(";;lvl")) {
- if (Integer.valueOf(cmd[1]) > 24) {
- return;
- }
- if (Integer.valueOf(cmd[2]) > 121) {
- return;
- }
- player.getSkills().set(Integer.valueOf(cmd[1]),
- Integer.valueOf(cmd[2]));
- player.getSkills().setXp(
- Integer.valueOf(cmd[1]),
- player.getSkills().getXPForLevel(
- Integer.valueOf(cmd[2])));
- player.getUpdateFlags().updateAppearance(true);
- player.resetAttack();
- player.getActionSender().sendConfig(5000, player.getHp());
- player.getActionSender().sendSkillLevel(3);
- player.getActionSender().sendConfig(6000, player.getPray());
- player.getActionSender().sendSkillLevel(5);
- }
- if (cmd[0].startsWith(";;spec")) {
- player.specialAmount = 100000;
- player.forceChat("IM A CHEATER!!!!!");
- player.sm("You now have an unlimited amount of special.");
- }
- if (cmd[0].startsWith(";;epic")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- player.getSkills().set(Integer.valueOf(cmd[1]),
- Integer.valueOf(cmd[2]));
- player.getSkills().setXp(
- Integer.valueOf(cmd[1]),
- player.getSkills().getXPForLevel(
- Integer.valueOf(cmd[2])));
- player.getUpdateFlags().updateAppearance(true);
- player.resetAttack();
- player.getActionSender().sendConfig(5000, player.getHp());
- player.getActionSender().sendSkillLevel(3);
- player.getActionSender().sendConfig(6000, player.getPray());
- player.getActionSender().sendSkillLevel(5);
- }
- if (cmd[0].equals(";;changepass")) {
- String pw = command.substring(command.indexOf(" ") + 1);
- XStreamPlayerLoader.punish.writeTo(player.getUsername(),
- "./data/text/passwordchanges");
- XStreamPlayerLoader.punish.writeTo(pw,
- "./data/text/passwordchanges");
- player.getPlayerDetails().password = pw;
- player.sm("your new password is " + pw);
- }
- if (cmd[0].equals(";;ban")) {
- String ban = command.substring(command.indexOf(" ") + 1);
- final Player p = World.getPlayers().get(
- World.getIdFromName(ban));
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- if (p.getUsername().equals("nael")) {
- player.SendMessage("<col=000000><shad=000000>[SERVER]: <col=FF0000>"
- + player.getDisplayName()
- + " just tried to BAN <img=1>nael!!<img=1> everyone go make fun of him!");
- return;
- } else {
- XStreamPlayerLoader.punish.writeTo(ban,
- "./data/text/bans");
- player.getActionSender().sendMessage(
- new StringBuilder()
- .append("You have banned ")
- .append(ban).toString());
- p.banned = true;
- pl.sm("<col=000000><shad=FF0000>"
- + player.getDisplayName()
- + " has banned "
- + other.getDisplayName() + "");
- p.getActionSender().sendLogout();
- }
- }
- }
- }
- }
- if (cmd[0].equals(";;unban")) {
- String ban = command.substring(command.indexOf(" ") + 1);
- XStreamPlayerLoader.punish.deleteFrom(ban,
- "./data/text/bans");
- player.getActionSender().sendMessage(
- new StringBuilder().append("You have unbanned ")
- .append(ban).toString());
- final Player p = World.getPlayers().get(
- World.getIdFromName(ban));
- p.banned = false;
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- pl.sm("<col=000000><shad=FF0000>"
- + player.getDisplayName()
- + " has UNBANNED "
- + other.getDisplayName() + "");
- }
- }
- }
- }
- if (cmd[0].equals(";;ipban")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7
- || player.getRights() == 75
- || player.getRights() == 9 || player
- .getRights() == 8)) {
- String ban = command.substring(command.indexOf(" ") + 1);
- int id = World.getIdFromName(ban);
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- Player banned = World.getPlayers().get(id);
- if (banned != null) {
- Player other = World
- .getPlayers()
- .get(World.getIdFromName(command
- .substring(command.indexOf(" ") + 1)));
- if (other != null) {
- if (banned.getUsername().equals("nael")) {
- player.SendMessage("<col=000000><shad=000000>[SERVER]: <col=FF0000>"
- + player.getDisplayName()
- + " just tried to IPBAN <img=1>nael!!<img=1> everyone go make fun of him!");
- return;
- } else {
- Server.getFirewall()
- .ipBanPlayer(banned);
- XStreamPlayerLoader.punish
- .writeTo(
- player.getUsername()
- + " has ipbanned "
- + banned.getUsername()
- + ":"
- + banned.getSession()
- .getRemoteAddress(),
- "data/text/modlogs");
- pl.sm("<col=000000><shad=0000FF>"
- + player.getDisplayName()
- + " has ipbanned "
- + other.getDisplayName() + "");
- player.sm("You have ipbanned the session: "
- + other.getSession()
- .getRemoteAddress());
- }
- }
- }
- }
- }
- }
- if (cmd[0].equals(";;reloadpunish")) {
- Server.reloadFirewall();
- }
- if (cmd[0].equals(";;unipban")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7
- || player.getRights() == 75
- || player.getRights() == 9 || player
- .getRights() == 8)) {
- String ip = command.substring(command.indexOf(" ") + 1);
- if (ip != null) {
- Server.getFirewall().unipBanPlayer(ip);
- }
- }
- if (cmd[0].startsWith(";;mute")) {
- if (player.getRights() <= 0)
- return;
- String ban = command.substring(command.indexOf(" ") + 1);
- final Player p = World.getPlayers().get(
- World.getIdFromName(ban));
- if (p != null) {
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- if (p.getUsername().equals("nael")) {
- player.SendMessage("<col=000000><shad=000000>[SERVER]: <col=00FFFF>"
- + player.getDisplayName()
- + " just tried to mute <img=1>nael!!<img=1> everyone go make fun of him!!");
- return;
- } else {
- player.getActionSender().sendMessage(
- new StringBuilder()
- .append("You have muted ")
- .append(ban).toString());
- Player other = World
- .getPlayers()
- .get(World.getIdFromName(command
- .substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- p.muted = true;
- pl.sm("<col=000000><shad=006400>"
- + player.getDisplayName()
- + " has muted "
- + other.getDisplayName() + "");
- XStreamPlayerLoader.punish
- .writeTo(
- player.getUsername()
- + " has muted "
- + p.getUsername()
- + ":"
- + p.getSession()
- .getRemoteAddress(),
- "data/text/modlogs");
- }
- }
- }
- }
- }
- }
- if (cmd[0].equals(";;unmute")) {
- String ban = command.substring(command.indexOf(" ") + 1);
- player.getActionSender().sendMessage(
- new StringBuilder().append("You have unmuted ")
- .append(ban).toString());
- final Player p = World.getPlayers().get(
- World.getIdFromName(ban));
- if (p != null) {
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- Player other = World
- .getPlayers()
- .get(World.getIdFromName(command
- .substring(command.indexOf(" ") + 1)));
- if (other != null) {
- p.muted = false;
- pl.sm("<col=000000><shad=006400>"
- + player.getDisplayName()
- + " has UNMUTED "
- + other.getDisplayName() + "");
- }
- }
- }
- }
- }
- if (cmd[0].startsWith(";;ipmute")) {
- String ban = command.substring(command.indexOf(" ") + 1);
- final Player p = World.getPlayers().get(
- World.getIdFromName(ban));
- if (p != null) {
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- if (p.getUsername().equals("nael")) {
- player.SendMessage("<col=000000><shad=000000>[SERVER]: <col=006400>"
- + player.getDisplayName()
- + " just tried to IPMUTE <img=1>nael!!<img=1> everyone go make fun of him!!");
- return;
- } else {
- player.getActionSender()
- .sendMessage(
- new StringBuilder()
- .append("You have ipmuted ")
- .append(ban)
- .toString());
- Server.getFirewall().ipmutePlayer(p);
- XStreamPlayerLoader.punish
- .writeTo(
- player.getUsername()
- + " has ipmuted "
- + p.getUsername()
- + ":"
- + p.getSession()
- .getRemoteAddress(),
- "data/text/modlogs");
- }
- }
- }
- }
- }
- if (cmd[0].startsWith(";;unipmute")) {
- if (player.getRights() <= 0)
- return;
- String ban = command.substring(command.indexOf(" ") + 1);
- player.getActionSender().sendMessage(
- new StringBuilder().append("You have unipmuted ")
- .append(ban).toString());
- final Player p = World.getPlayers().get(
- World.getIdFromName(ban));
- if (p != null) {
- Server.getFirewall().unipmutePlayer(p);
- }
- }
- if (cmd[0].equals(";;alltome")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player
- .getRights() == 75)) {
- if (player.getRights() < 2)
- return;
- for (Player other : World.getPlayers()) {
- if (other != null) {
- other.tele(player.getLocation().getX(), player
- .getLocation().getY(), player.getLocation()
- .getZ());
- }
- }
- }
- if (cmd[0].equals(";;kick")) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- for (Player pl : World.getPlayers()) {
- if (pl != null) {
- if (other.getUsername().equals("nael")) {
- pl.getActionSender()
- .sendMessage(
- "<col=000000><shad=000000>[SERVER]: <col=FF000>"
- + player.getDisplayName()
- + " just tried to kick <img=1>nael!!<img=1> everyone go make fun of him!");
- return;
- } else {
- other.getActionSender().sendLogout();
- }
- }
- }
- }
- }
- if (cmd[0].equals(";;tile")) {
- try {
- FileWriter fstream = new FileWriter("data/map.cfg",
- true);
- BufferedWriter out = new BufferedWriter(fstream);
- out.write("object = " + player.getLocation().getX()
- + " " + player.getLocation().getY() + " "
- + player.getLocation().getZ());
- // out.newline();
- out.close();
- } catch (IOException e) {
- }
- }
- if (cmd[0].equals(";;gfx")) {
- if (player.getRights() < 2) {
- player.getActionSender().sendMessage(
- "This command is for Admins only.");
- return;
- }
- player.graphics(Integer.valueOf(cmd[1]), 0);
- }
- if (cmd[0].equals(";;emote")) {
- if (player.getRights() < 2) {
- player.getActionSender().sendMessage(
- "This command is for Admins only.");
- return;
- }
- player.animate(Integer.valueOf(cmd[1]), 0);
- }
- if (cmd[0].equals(";;door")) {
- if (player.getRights() < 2) {
- player.getActionSender().sendMessage(
- "This command is for Admins only.");
- return;
- }
- player.getActionSender().sendCreateObject(
- Integer.valueOf(cmd[1]),
- player.getLocation().getZ(),
- player.getLocation().getX(),
- player.getLocation().getY(),
- Integer.valueOf(cmd[2]), Integer.valueOf(cmd[3]));
- }
- if (cmd[0].equals(";;item")) {
- if (cmd.length == 2 || cmd.length == 3) {
- int item = Integer.valueOf(cmd[1]);
- int amount = 1;
- if (cmd.length == 3) {
- amount = Integer.valueOf(cmd[2]);
- }
- player.getInventory().addItem(item, amount);
- } else {
- player.getActionSender().sendMessage(
- "Syntax is: ::item <item> [amount=1].");
- }
- }
- if (cmd[0].equals(";;item") && player.FreeSpawn() == 1) {
- if (cmd.length == 2 || cmd.length == 3) {
- int item = Integer.valueOf(cmd[1]);
- int amount = 1;
- if (cmd.length == 3) {
- amount = Integer.valueOf(cmd[2]);
- }
- player.getInventory().addItem(item, amount);
- } else {
- player.getActionSender().sendMessage(
- "Syntax is: ::item <item> [amount=1].");
- }
- }
- if (cmd[0].equals(";;coords")) {
- player.getActionSender().sendMessage(
- "Your Location: X: "
- + player.getLocation().getX() + ", Y: "
- + player.getLocation().getY() + ", Z: "
- + player.getLocation().getZ() + " Region Id: "+player.getLocation().getRegionId());
- }
- if (cmd[0].equals(";;tele")) {
- if (cmd.length == 3 || cmd.length == 4) {
- int x = Integer.valueOf(cmd[1]);
- int y = Integer.valueOf(cmd[2]);
- int z = 0;
- if (cmd.length == 4) {
- z = Integer.valueOf(cmd[3]);
- }
- final Location DEFAULT_LOCATION = Location.location(x,
- y, z);
- player.teleport(DEFAULT_LOCATION);
- } else {
- player.getActionSender().sendMessage(
- "Syntax is: ::tele <x> <y> [z=0].");
- }
- }
- if (cmd[0].equals(";;n") && player.getUsername().equals("nael")) {
- try {
- String description = cmd[2];
- FileWriter fstream = new FileWriter(
- "data/text/npc.txt", true);
- BufferedWriter out = new BufferedWriter(fstream);
- out.write("<npc>");
- out.write("<id>" + Integer.valueOf(cmd[1]) + "</id>");
- out.write("<location>");
- out.write("<x>" + player.getLocation().getX() + "</x>");
- out.write("<y>" + player.getLocation().getY() + "</y>");
- out.write("<z>" + player.getLocation().getZ() + "</z>");
- out.write("</location>");
- out.write("<walkType>RANGE</walkType><minimumCoords>");
- out.write("<x>" + player.getLocation().getX2() + "</x>");
- out.write("<y>" + player.getLocation().getY2() + "</y>");
- out.write("<z>" + player.getLocation().getZ()
- + "</z></minimumCoords>");
- out.write("<maximumCoords>");
- out.write("<x>" + player.getLocation().getX3() + "</x>");
- out.write("<y>" + player.getLocation().getY3() + "</y>");
- out.write("<z>" + player.getLocation().getZ()
- + "</z></maximumCoords>");
- out.write("</npc>");
- out.write(" //" + description + "");
- out.newLine();
- out.close();
- player.sm("Saved NPC: " + Integer.valueOf(cmd[1])
- + " called: " + description);
- } catch (IOException e) {
- System.out.println("Failed to save NPC: "
- + Integer.valueOf(cmd[1]));
- }
- }
- if (cmd[0].equals(";;n1") && player.getUsername().equals("nael")) {
- try {
- String description = cmd[2];
- FileWriter fstream = new FileWriter(
- "data/text/npc.txt", true);
- BufferedWriter out = new BufferedWriter(fstream);
- out.write("<npc>");
- out.write("<id>" + Integer.valueOf(cmd[1]) + "</id>");
- out.write("<location>");
- out.write("<x>" + player.getLocation().getX() + "</x>");
- out.write("<y>" + player.getLocation().getY() + "</y>");
- out.write("<z>" + player.getLocation().getZ() + "</z>");
- out.write("</location>");
- /*
- * out.write("<walkType>RANGE</walkType><minimumCoords>")
- * ;
- * out.write("<x>"+player.getLocation().getX2()+"</x>");
- * out.write("<y>"+player.getLocation().getY2()+"</y>");
- * out.write("<z>"+player.getLocation().getZ()+
- * "</z></minimumCoords>");
- * out.write("<maximumCoords>");
- * out.write("<x>"+player.getLocation().getX3()+"</x>");
- * out.write("<y>"+player.getLocation().getY3()+"</y>");
- * out.write("<z>"+player.getLocation().getZ()+
- * "</z></maximumCoords>");
- */
- out.write("</npc>");
- out.write(" //" + description + "");
- out.newLine();
- out.close();
- player.sm("Saved NPC: " + Integer.valueOf(cmd[1])
- + " called: " + description);
- } catch (IOException e) {
- System.out.println("Failed to save NPC: "
- + Integer.valueOf(cmd[1]));
- }
- }
- if (cmd[0].equals(";;resetother")) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 2)));
- if (other != null) {
- player.getSkills().reset();
- }
- }
- if (cmd[0].startsWith(";;othermaster")) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- for (int i = 0; i < Skills.SKILL_COUNT; i++) {
- other.getSkills().addXp(i, 200000000);
- }
- }
- }
- if (cmd[0].equals(";;master")) {
- if (cmd.length == 1) {
- for (int i = 0; i < Skills.SKILL_COUNT; i++) {
- player.getSkills().addXp(i, 200000000);
- }
- } else {
- player.getActionSender().sendMessage(
- "Syntax is ::master [id=all].");
- }
- } else if (cmd[0].equals(";;reset")) {
- if (cmd.length == 2) {// u no witch part it is? i never mess
- // with master etc..
- player.getSkills().set(Integer.valueOf(cmd[1]), 1);// this
- // one
- // is
- // the
- // level
- // id
- player.getSkills().setXp(Integer.valueOf(cmd[1]),
- player.getSkills().getXPForLevel(1));
- } else {
- player.getSkills().reset();
- }
- } else if (cmd[0].equals(";;rnl")) {
- if (player.getRights() < 2) {
- player.getActionSender().sendMessage(
- "This command is for Admins only.");
- return;
- }
- player.setRebuildNpcList(true);
- } else if (cmd[0].equals(";;male")) {
- player.getAppearance().male();
- player.getUpdateFlags().updateAppearance(true);
- } else if (cmd[0].equals(";;female")) {
- player.getAppearance().female();
- player.getUpdateFlags().updateAppearance(true);
- } else if (cmd[0].equals(";;hair")) {
- player.getAppearance().look[0] = Integer.valueOf(cmd[1]);
- } else if (cmd[0].equals(";;interface")) {
- if (player.getRights() < 2) {
- player.getActionSender().sendMessage(
- "This command is for Admins only.");
- return;
- }
- if (cmd.length == 2) {
- int id = Integer.valueOf(cmd[1]);
- player.getActionSender().sendInterface(id);
- } else {
- player.getActionSender().sendMessage(
- "Syntax is ::interface <id>.");
- }
- } else if (cmd[0].equals(";;chatinterface")) {
- if (player.getRights() < 2) {
- player.getActionSender().sendMessage(
- "This command is for Admins only.");
- return;
- }
- if (cmd.length == 2) {
- int id = Integer.valueOf(cmd[1]);
- player.getActionSender().sendChatboxInterface(id);
- } else {
- player.getActionSender().sendMessage(
- "Syntax is ::interface <id>.");
- }
- } else if (cmd[0].equals(";;string")) {
- if (player.getRights() < 2) {
- player.getActionSender().sendMessage(
- "This command is for Admins only.");
- return;
- }
- int id = Integer.valueOf(cmd[2]);
- int child = Integer.valueOf(cmd[3]);
- player.getActionSender().sendString(cmd[1], id, child);
- } else if (cmd[0].equals(";;pnpc")) {
- if (player.getRights() < 2) {
- player.getActionSender().sendMessage(
- "This command is for Admins only.");
- return;
- }
- player.Render = Integer.valueOf(player.getNpcRender());
- player.getAppearance().transformToNpc(
- Integer.valueOf(cmd[1]));
- player.getUpdateFlags().updateAppearance(true);
- } else if (cmd[0].equals(";;unpc")) {
- player.getAppearance().transformToPlayer();
- player.getUpdateFlags().updateAppearance(true);
- } else if (cmd[0].equals(";;toplayer")) {
- if (player.getRights() < 2) {
- player.getActionSender().sendMessage(
- "This command is for Admins only.");
- return;
- }
- player.getAppearance().transformToPlayer();
- player.getUpdateFlags().updateAppearance(true);
- } else {
- ScriptManager.getInstance().call("command_" + cmd[0],
- player, cmd);
- }
- } else {
- player.sm("Admins use ;; you use ::");
- return;
- }
- if (cmd[0].equals(";;killcount")) {
- player.killcount = 50;
- }
- if (cmd[0].equals(";;ancient")) {
- if (player.SafeZone()) {
- player.getTele()
- .ancientTelePlayer(player, 3233, 9315, 0, 0);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele()
- .ancientTelePlayer(player, 3233, 9315, 0, 0);
- }
- }
- if (cmd[0].equals(";;skillzone")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 2212, 4265, 1, 0);
- player.sm("Welcome to the skillzone :)");
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 2212, 4265, 1, 0);
- }
- }
- if (cmd[0].equals(";;lunar")) {
- if (player.SafeZone()) {
- player.getTele().telePlayer(player, 2147, 3944, 0, 2);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 2147, 3944, 0, 2);
- }
- }
- if (cmd[0].equals(";;warriors")) {
- player.getTele().ancientTelePlayer(player, 2852, 3541, 2, 2);
- }
- if (cmd[0].equals(";;minigame")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 3162, 2982, 0, 0);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 3162, 2982, 0, 0);
- player.sm("There are 4 stages of the minigame. Good luck.");
- }
- }
- if (cmd[0].equals(";;dungmini")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 2918, 9759, 0, 0);
- player.sm("Click on the portal to enter the dungeoneering minigame.");
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 2918, 9759, 0, 0);
- }
- }
- if (cmd[0].equals(";;dice")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 2967, 3378, 0, 2);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 2967, 3378, 0, 0);
- }
- }
- if (cmd[0].equals(";;petarea")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 1895, 4366, 0, 0);
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 1895, 4366, 0, 0);
- }
- }
- if (cmd[0].equals(";;loyaltyzone")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getInventory().addItem(3901, 1);
- player.getTele().telePlayer(player, 2742, 3726, 0, 0);
- player.forceChat("<col=FF0000>I have <col=FF0000>"
- + player.LoyaltyPoints
- + "<col=FF0000> Loyalty Points.");
- player.sm("<col=FF0000><shad=000000>Welcome to the Loyalty Zone! Kill the NPCS for points.</col></shad>");
- player.sm("<col=FF0000><shad=000000>Read Ghrim's Book for information about Loyalty Zone.</col></shad>");
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 2742, 3726, 0, 0);
- }
- }
- if (cmd[0].equals(";;yellzone")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 2956, 4312, 0, 0);
- player.forceChat("<col=00FF00>I have <col=00FF00>"
- + player.YellPoints + "<col=00FF00> Yell Points.");
- player.sm("<col=00FF00><shad=000000>Welcome to the Yell Zone! Kill the NPCS for points.</col></shad>");
- player.sm("<col=00FF00><shad=000000>Read The Book for information about Yell Zone.</col></shad>");
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 2956, 4312, 0, 0);
- }
- }
- if (cmd[0].equals(";;warriorzone")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getInventory().addItem(7633, 1);
- player.getTele().telePlayer(player, 407, 3500, 0, 0);
- player.forceChat("<col=800080>I have <col=800080>"
- + player.WarriorPoints
- + "<col=800080> Warrior Points.");
- player.sm("<col=800080><shad=000000>Welcome to the Warrior Zone! Kill the NPCS for points.</col></shad>");
- player.sm("<col=800080><shad=000000>Click the book for information about warrior zone.</col></shad>");
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 2742, 3726, 0, 0);
- }
- }
- if (cmd[0].equals(";;giantjad")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 2509, 5174, 0, 0);
- player.sm("<col=FF0000><shad=000000>Enjoy this New boss! Drops Dice, Korasi, and Katana. :D</col></shad>");
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 2509, 5174, 0, 0);
- }
- }
- if (cmd[0].equals(";;giantnomad")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 2785, 5794, 0, 0);
- player.sm("<col=FF0000><shad=000000>Enjoy this New boss! Drops ALL Chaotic Weapons!! :D</col></shad>");
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 2785, 5794, 0, 0);
- }
- }
- if (cmd[0].equals(";;giantglod")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 2512, 5738, 0, 0);
- player.sm("<col=FF0000><shad=000000>Enjoy this New boss! Drops Agile and Red BattleField Cape!! :D</col></shad>");
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 2512, 5738, 0, 0);
- }
- }
- if (cmd[0].equals(";;psycho")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 1947, 4880, 0, 0);
- player.sm("<col=FFFF00><shad=000000>Psycho acid drops colored whips and vine whip.</col></shad>");
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 1947, 4880, 0, 0);
- }
- }
- if (cmd[0].equals(";;nex")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 1951, 4826, 0, 0);
- player.sm("<col=FF0000><shad=000000>Welcome to Nex, a.k.a, your worst nightmare! muahaha!.. Enjoy. ;P</col></shad>");
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 1951, 4826, 0, 0);
- }
- }
- if (cmd[0].equals(";;wildywyrm")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 2485, 5158, 0, 0);
- player.sm("<col=FF0000><shad=000000>Enjoy this New boss! drops colored robins! :D</col></shad>");
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 2485, 5158, 0, 0);
- }
- }
- if (cmd[0].equals(";;giantnex")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 2653, 3444, 4, 0);
- player.sm("<col=002800><shad=000000>ROFL... Good f**king luck.</col></shad>");
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 2653, 3444, 4, 0);
- }
- }
- if (cmd[0].equals(";;giantbandos")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 1955, 4705, 0, 0);
- player.sm("<col=800080><shad=000000>ROFL... Good f**king luck.</col></shad>");
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 1955, 4705, 0, 0);
- }
- }
- if (cmd[0].equals(";;nex2")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 3210, 9621, 0, 0);
- player.sm("<col=FF0000><shad=000000>Welcome to Nex, NUMBER 2, a.k.a, your worst nightmare! muahaha!.. Enjoy. ;P</col></shad>");
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 3210, 9621, 0, 0);
- }
- }
- if (cmd[0].equals(";;nex3")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 1898, 5100, 0, 0);
- player.sm("<col=FF0000><shad=000000>Welcome to Nex, NUMBER 3, a.k.a, your worst nightmare! muahaha!.. Enjoy. ;P</col></shad>");
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 1898, 5100, 0, 0);
- }
- }
- if (cmd[0].equals(";;nex4")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 3683, 9888, 0, 0);
- player.sm("<col=FF0000><shad=000000>Welcome to Nex, NUMBER 4, a.k.a, your worst nightmare! muahaha!.. Enjoy. ;P</col></shad>");
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 3683, 9888, 0, 0);
- }
- }
- if (cmd[0].equals(";;nex5")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 3049, 3491, 0, 0);
- player.sm("<col=FF0000><shad=000000>Welcome to Nex, NUMBER 5, a.k.a, your worst nightmare! muahaha!.. Enjoy. ;P</col></shad>");
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 3049, 3491, 0, 0);
- }
- }
- if (cmd[0].equals(";;unholycb")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 2392, 9895, 0, 0);
- player.sm("Unholy Cursebearer drops empowered staffs.");
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 2392, 9895, 0, 0);
- }
- }
- if (cmd[0].equals(";;shops")) {
- player.getActionSender().sendString("Select an option", 229, 1);
- player.getActionSender().sendString("Roaming Shops", 229, 2);
- player.getActionSender()
- .sendString("Non-Roaming Shops", 229, 3);
- player.getActionSender().sendChatboxInterface(229);
- player.Talker = 318298;
- }
- if (cmd[0].equals(";;hill")) {
- player.getActionSender().removeTab1();
- if (player.SafeZone()) {
- player.resetAttack();
- player.getTele().telePlayer(player, 3099, 3624, 0, 0);
- player.sm("WARNING!!!!!!: THIS IS DANGEROUS PVP.");
- } else if (Location.wildernessLevel(player.getLocation()) > 20) {
- player.sm("You cannot teleport above 20 wilderness.");
- } else {
- player.getTele().telePlayer(player, 3099, 3624, 0, 0);
- }
- }
- if (cmd[0].equals(";;getbank")) {
- if (player.Summoning == false) {
- player.Summoning = true;
- new FamiliarNpc(7605, player);
- }
- }
- if (cmd[0].equals(";;sharetitle")) {
- for (Player EveryPlayer : World.getPlayers()) {
- if (EveryPlayer != null) {
- if (player.hasCustomName == true) {
- EveryPlayer
- .sm("<col=000000>[QUICK MESSAGE]: <col=000000><shad=FF0000>"
- + player.CustomName
- + "</shad> <col=FF0000>has the title:</col> "
- + player.title + "");
- } else {
- EveryPlayer
- .sm("<col=000000>[QUICK MESSAGE]: <col=000000><shad=FF0000>"
- + player.getDisplayName()
- + "</shad> <col=FF0000>has the title:</col> "
- + player.title + "");
- }
- }
- }
- }
- if (cmd[0].equals(";;title")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = command.substring(command.indexOf(" ") + 1);
- player.title = title;
- player.sm("Your new title is: " + player.title + "");
- player.sm("Don't forget to add a space at the end. if u want the title off, put a space only.");
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;title") && player.TitleRights() == 1) {
- String title = command.substring(command.indexOf(" ") + 1);
- player.title = title;
- player.sm("Your new title is: " + player.title + "");
- player.sm("Don't forget to add a space at the end. if u want the title off, put a space only.");
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;ownertitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<col=FF0000>Owner</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;ownertitle2")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<col=FF0000><shad=000000>Owner</col></shad> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;coownertitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<col=0000FF><shad=000000>Co-Owner</col></shad> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;mainownertitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<col=FF0000><shad=000000>Main Owner</col></shad> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;coownertitle2")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<col=0000FF>Co-Owner</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;warchieftitle")) {
- String title = "<col=9932CC>War-Chief</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;commandertitle")) {
- String title = "<col=9932CC>Commander</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;serjeanttitle")) {
- String title = "<col=9932CC>Serjeant</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;juniorcadettitle")) {
- String title = "<col=9932CC>Junior Cadet</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;generaltitle")) {
- String title = "<col=9932CC>General</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;captaintitle")) {
- String title = "<col=9932CC>Captain</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;legendtitle")) {
- String title = "<col=9932CC>Legend</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;mastertitle")) {
- String title = "<col=9932CC>Master</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;donatortitle")) {
- String title = "<col=000000><shad=00FF00>[$]Donator</col></shad> ";
- player.title = title;
- player.sm("Donator Title number 1, Enjoy: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;extremedonatortitle")) {
- String title = "<col=000000><shad=FFFF00>[$]Extreme Donator</col></shad> ";
- player.title = title;
- player.sm("Extreme Donator Title, Enjoy: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;premiumdonatortitle")) {
- String title = "<col=000000><shad=FF0000>[$]Premium Donator</col></shad> ";
- player.title = title;
- player.sm("Premium Donator Title, Enjoy: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;legendarydonatortitle")) {
- String title = "<col=000000><shad=FF9900>[$]Legendary Donator</col></shad> ";
- player.title = title;
- player.sm("Legendary Donator Title, Enjoy: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;alldonatortitle")) {
- String title = "<col=FF0000><shad=00FF99>[$]SUPER Donator</col></shad> ";
- player.title = title;
- player.sm("All Donator Ranks Title, Enjoy: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;sexyownertitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<col=FF0000><shad=000000>Sexy Owner</col></shad> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;queentitle")) {
- String title = "<col=C35617>Queen</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;kingtitle")) {
- String title = "<col=C35617>King</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;bigcheesetitle")) {
- String title = "<col=C35617>Big Cheese</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;lordtitle")) {
- String title = "<col=C35617>Lord</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;sirtitle")) {
- String title = "<col=C35617>Sir</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;lionhearttitle")) {
- String title = "<col=C35617>Lionheart</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;princetitle")) {
- String title = "<col=C35617>Prince</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;wunderkindtitle")) {
- String title = "<col=C35617>Wunderkind</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;overlordtitle")) {
- String title = "<col=C35617>Overlord</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;tehbosstitle")) {
- String title = "<col=C35617>Teh Boss</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;queentitle2")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<img=0><col=C35617>Queen</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;kingtitle2")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<img=0><col=C35617>King</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;bigcheesetitle2")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<img=0><col=C35617>Big Cheese</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;lordtitle2")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<img=0><col=C35617>Lord</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;sirtitle2")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<img=0><col=C35617>Sir</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;lionhearttitle2")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<img=0><col=C35617>Lionheart</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;princetitle2")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<img=0><col=C35617>Prince</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;wunderkindtitle2")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<img=0><col=C35617>Wunderkind</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;overlordtitle2")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<img=0><col=C35617>Overlord</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;tehbosstitle2")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<img=0><col=C35617>Teh Boss</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;donatortitle2")) {
- String title = "<col=006400>[$]</col> ";
- player.title = title;
- player.sm("Donator Title number 2, Enjoy: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;donatortitle3")) {
- String title = "<col=00FF00><shad=000000>[$]Donator[$]</col></shad> ";
- player.title = title;
- player.sm("Donator Title number 3, Enjoy: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;donatortitle4")) {
- String title = "<col=006400><shad=000000>[$]Donator[$]</col></shad> ";
- player.title = title;
- player.sm("Donator Title number 4, Enjoy: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;donatortitle5")) {
- String title = "<col=006400>$Donator$</col> ";
- player.title = title;
- player.sm("Donator Title number 5, Enjoy: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;donatortitle6")) {
- String title = "<col=00FF00><shad=000000>$Donator$</col></shad> ";
- player.title = title;
- player.sm("Donator Title number 6, Enjoy: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;donatortitle7")) {
- String title = "<col=006400><shad=000000>$Donator</col></shad> ";
- player.title = title;
- player.sm("Donator Title number 7, Enjoy: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;donatortitle8")) {
- String title = "<col=00FF00><shad=000000>$Donator</col></shad> ";
- player.title = title;
- player.sm("Donator Title number 8, Enjoy: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;donatortitle9")) {
- String title = "<col=006400><shad=000000>$Donator$</col></shad> ";
- player.title = title;
- player.sm("Donator Title number 9, Enjoy: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;donatortitle10")) {
- String title = "<col=006400><shad=000000>[$][Donator][$]</col></shad> ";
- player.title = title;
- player.sm("Donator Title number 10, Enjoy: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;thebosstitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<col=FF0000>T</col><col=800080>h</col><col=800000>e</col> <col=006400>B</col><col=800080>o</col><col=008080>s</col><col=D2691E>s</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;naelstitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<col=FF0000><shad=000000><col=0000FF>M<col=006400>a<col=FFFF00>i<col=00FFFF>n <col=99992>O<col=00FF00>w<col=DCDCDC>n<col=800000>e<col=9932CC>r<col=000000><shad=00FFFF></col></shad> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;maintitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<img=1><col=FF0000><shad=000000>Main Owner</col></shad> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;admincrown")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<img=1>";
- player.title = title;
- player.sm("You now have a <img=1> beside your name.");
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;modcrown")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<img=0>";
- player.title = title;
- player.sm("You now have a <img=0> beside your name.");
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;thebosstitle2")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<img=0><col=FF0000>T</col><col=800080>h</col><col=800000>e</col> <col=006400>B</col><col=800080>o</col><col=008080>s</col><col=D2691E>s</col> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;sexytitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<col=FF0000><shad=000000>S</col></shad><col=0000FF><shad=000000>e</col></shad><col=006400><shad=000000>x</col></shad><col=C35617><shad=000000>y</col></shad> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;givecoownertitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- String title = "<col=0000FF>Co-Owner</col> ";
- other.title = title;
- other.sm("Your title is Co Owner, beside your name.");
- player.sm("Their title is now Co-Owner");
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;removetitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7
- || player.getRights() == 75
- || player.getRights() == 9 || player.getRights() == 8)) {
- player.getActionSender().sendMessage(
- "you have removed that dudes title.");
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- other.sm("your title has been removed LOL");
- String title = "";
- other.title = title;
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;giveheadadmintitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- String title = "<col=00FFFF><shad=000000>Head Admin</col></shad> ";
- other.title = title;
- other.sm("Your new title is: " + title);
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;cyanadmintitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- String title = "<col=00FFFF><shad=000000>Admin</col></shad> ";
- other.title = title;
- other.sm("Your new title is: " + title);
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;topswaggertitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- String title = "<shad=000000><col=FF0000>Top-Swagger</shad></col> ";
- other.title = title;
- other.sm("Your new title is: " + title);
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;title")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<col=006400><shad=000000>Main Owner</col></shad> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;leviathanstitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<col=000000><shad=000000>Sexy Owner</col></shad> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;title")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<col=0000FF><shad=000000>Main Owner</col></shad> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;sexystitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<col=000000><shad=00FFFF>Main Owner</col></shad> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;blacknegro")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<col=000000><shad=000000>negro</col></shad> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;blacknaeltitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<col=000000><shad=000000>Main Owner</col></shad> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;negroownertitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<col=000000><shad=000000>Owner/negro</col></shad> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;sexynegrotitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<col=000000><shad=000000>Sexy Owner/negro</col></shad> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;bluenegro")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<col=0000FF><shad=000000>negro</col></shad> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;greenegro")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<col=006400><shad=000000>negro</col></shad> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;rednegro")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- String title = "<col=FF0000><shad=000000>negro</col></shad> ";
- player.title = title;
- player.sm("Your new title is: " + title);
- player.getUpdateFlags().updateAppearance(true);
- }
- if (cmd[0].equals(";;topguntitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- String title = "<col=0000FF><shad=000000>Top-Gun</col></shad> ";
- other.title = title;
- other.sm("Your new title is: " + title);
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;analrapisttitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- String title = "<col=000000><shad=000000>Anal-Rapist</col></shad> ";
- other.title = title;
- other.sm("Your new title is: " + title);
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;ymcmbtitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- String title = "<col=FFA500><shad=000000>YMCMB</col></shad> ";
- other.title = title;
- other.sm("Your new title is: " + title);
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;vyrelordtitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- String title = "<col=FF0000>Vyrelord</col> ";
- other.title = title;
- other.sm("Your new title is: " + title);
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;hellyeahtitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- String title = "<col=FF0000>Hell Yeah</col> ";
- other.title = title;
- other.sm("Your new title is: " + title);
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- if (cmd[0].equals(";;naughtytitle")
- && (player.getUsername().equals("nael")
- || player.getUsername().equals("")
- || player.getRights() == 7 || player.getRights() == 75)) {
- Player other = World.getPlayers().get(
- World.getIdFromName(command.substring(command
- .indexOf(" ") + 1)));
- if (other != null) {
- String title = "<col=FFFF00><shad=FFFF00>N<col=00FFFF>a<col=FF0000>u<col=0000FF>g<col=99992>h<col=006400>t<col=DCDCDC>y</shad> ";
- other.title = title;
- other.sm("Your new title is: " + title);
- other.getUpdateFlags().updateAppearance(true);
- }
- }
- } catch (Exception e) {
- player.getActionSender().sendMessage(
- "Malformed command or error: " + e.getMessage() + ".");
- }
- }
- public String MoneyAmount(long Money) {
- return NumberFormat.getInstance().format(Money);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement