Advertisement
Guest User

Admin Commands

a guest
Jul 23rd, 2014
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 218.85 KB | None | 0 0
  1. package neo.io.packets.commands;
  2.  
  3. import java.io.BufferedWriter;
  4. import java.io.FileOutputStream;
  5. import java.io.FileWriter;
  6. import java.io.IOException;
  7. import java.text.NumberFormat;
  8.  
  9. import neo.Settings;
  10. import neo.content.minigames.clanminis.WKInvasion;
  11. import neo.game.FamiliarNpc;
  12. import neo.game.Location;
  13. import neo.game.World;
  14. import neo.game.item.Item;
  15. import neo.game.npc.NPC;
  16. import neo.game.player.Player;
  17. import neo.game.player.skills.Skills;
  18. import neo.game.region.script.ScriptManager;
  19. import neo.game.tasks.event.Event;
  20. import neo.io.XStreamPlayerLoader;
  21. import neo.net.Packet;
  22. import neo.net.Server;
  23. import neo.util.Censor;
  24. import neo.util.GameEngine;
  25. import neo.util.Misc;
  26. import neo.util.XStreamUtil;
  27.  
  28. import com.thoughtworks.xstream.XStream;
  29.  
  30. /**
  31. * Handles any commands sent to the client.
  32. *
  33. * @author K-Shan
  34. *
  35. */
  36. public class AdminCommands {
  37.  
  38. public static boolean Pro(Player player) {
  39. if (player.getUsername().equalsIgnoreCase("nael")
  40. || player.getRights() == 9 || player.getRights() == 7
  41. || player.getUsername().equalsIgnoreCase("")
  42. || player.getUsername().equalsIgnoreCase("")
  43. || player.getUsername().equalsIgnoreCase("")
  44. || player.getUsername().equalsIgnoreCase("")
  45. || player.getUsername().equalsIgnoreCase("")) {
  46. return true;
  47. }
  48. return false;
  49. }
  50.  
  51. @SuppressWarnings({ "static-access", "unused" })
  52. public void handlePacket(final Player player, Packet packet, String command) {
  53.  
  54. String[] cmd = command.split(" ");
  55. cmd[0] = cmd[0].toLowerCase();
  56. try {
  57.  
  58. /*
  59. * if (player.AdminApproved == false && player.rights >= 2) {
  60. * player.sm(
  61. * "You need to be approved to use admin commands! ask <img=1>nael<img=1> about this."
  62. * ); return; }
  63. */
  64. if (player.JailMuted == true && !player.getUsername().equals("nael")) {
  65. player.sm("You are muted. Please appeal on the forums.");
  66. return;
  67. }
  68. if (player.TeleMode == true) {
  69. return;
  70. }
  71. if (player.getRights() > 1) {
  72.  
  73. if (cmd[0].startsWith(";;players")) {
  74. int number = 0;
  75. for (int i = 0; i < 316; i++) {
  76. player.getActionSender().sendString("", 275, i);
  77. }
  78. for (Player p5 : World.getPlayers()) {
  79. if (p5 == null)
  80. continue;
  81. number++;
  82. String titles = "";
  83. if (p5.hasCustomPlayersCommandTitle == true) {
  84. titles = "" + p5.CustomPlayersCommandTitle + "";
  85. }
  86. if (p5.Donator == 0) {
  87. titles = "<col=000000>[player]";
  88. }
  89. if (p5.Donator == 1) {
  90. titles = "<col=000000>[player]";
  91. }
  92. if (p5.LegendaryDonator == 1 && p5.Donator == 1
  93. && p5.PremiumDonator == 1
  94. && p5.ExtremeDonator == 1) {
  95. titles = "<col=FF0000><shad=00FF99>[$]SUPER Donator[$]";
  96. }
  97. if (p5.LegendaryDonator == 1) {
  98. titles = "<col=000000><shad=FF9900>[$]Legendary Donator[$]";
  99. }
  100. if (p5.ExtremeDonator == 1) {
  101. titles = "<col=000000><shad=FFFF00>[$]Extreme Donator[$]";
  102. }
  103. if (p5.PremiumDonator == 1) {
  104. titles = "<col=000000><shad=FF0000>[$]Premium Donator[$]";
  105. }
  106. if (p5.PremiumDonator == 1) {
  107. titles = "<col=000000><shad=FF0000>[$]Premium Donator[$]";
  108. }
  109. if (p5.ExtremeDonator == 1) {
  110. titles = "<col=000000><shad=FFFF00>[$]Extreme Donator[$]";
  111. }
  112. if (p5.LegendaryDonator == 1) {
  113. titles = "<col=000000><shad=FF9900>[$]Legendary Donator[$]";
  114. }
  115. if (p5.LegendaryDonator == 1 && p5.Donator == 1
  116. && p5.PremiumDonator == 1
  117. && p5.ExtremeDonator == 1) {
  118. titles = "<col=FF0000><shad=00FF99>[$]SUPER Donator[$]";
  119. }
  120. if (p5.getYell() == 2) {
  121. titles = "<col=000000>[player]";
  122. }
  123. if (p5.getYell() == 3) {
  124. titles = "<col=000000>[player]";
  125. }
  126. if (p5.getYell() == 4) {
  127. titles = "<col=000000>[player]";
  128. }
  129. if (p5.getYell() == 5) {
  130. titles = "<col=000000>[player]";
  131. }
  132. if (p5.getRights() == 1) {
  133. titles = "<col=FF0000><img=0>[Mod]";
  134. }
  135. if (p5.getRights() == 2) {
  136. titles = "<col=FF0000><img=1>[Admin]";
  137. }
  138. if (p5.getUsername().equals("")) {
  139. titles = "<img=1><col=0000FF>[Co-OWner]";
  140. }
  141. if (p5.getRights() == 4) {
  142. titles = "<col=000000>[player]";
  143. }
  144. if (p5.getRights() == 7) {
  145. titles = "<col=FF0000><shad=000000><img=1>[Main Owner]";
  146. }
  147. if (p5.getRights() == 8) {
  148. titles = "<col=0000FF><img=1>[Co-Owner]";
  149. }
  150. if (p5.getRights() == 9) {
  151. titles = "<col=F53D00><shad=030303><img=1>[Owner]";
  152. }
  153. if (p5.getRights() == 87) {
  154. titles = "<col=FF0000><img=0>[Mod]";
  155. }
  156. if (p5.getUsername().equals("")) {
  157. titles = "<col=800080><shad=000000><img=1>[Second Owner]";
  158. }
  159. if (p5.getUsername().equals("")) {
  160. 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>]";
  161. }
  162. if (p5.getUsername().equals("")) {
  163. titles = "<col=FF0000><shad=000000><img=1>[Main Owner]";
  164. }
  165. if (p5.getUsername().equals("")) {
  166. titles = "<col=0000FF><img=1>[Co-Owner]";
  167. }
  168. if (p5.getUsername().equals("")
  169. || p5.getUsername().equals("")) {
  170. titles = "<col=0000FF><shad=000000><img=1>[Main Owner]";
  171. }
  172. if (p5.getUsername().equals("")) {
  173. titles = "<col=006400><shad=000000><img=1>[Main Owner]";
  174. }
  175. if (p5.getUsername().equals("nael")) {
  176. 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>]";
  177. }
  178. if (p5.getUsername().equals("")) {
  179. titles = "<col=000000><shad=000000><img=1>[Sexy Owner]";
  180. }
  181. if (p5.getUsername().equals("")) {
  182. titles = "<col=000000><shad=00FFFF><img=1>[Main Owner]";
  183. }
  184. if (p5.getUsername().equals("")) {
  185. 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]";
  186. }
  187. if (p5.getUsername().equals("")) {
  188. 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>]";
  189. }
  190. if (p5.getUsername().equals("")) {
  191. titles = "<col=FF0000><shad=000000><img=1>[Main Owner]";
  192. }
  193. /*
  194. * if(p5.getUsername().equals("jango213")) { titles =
  195. * "<col=F53D00><shad=030303><img=1>[Second Owner]"; }
  196. */
  197. if (p5.hasCustomPlayersCommandTitle == true) {
  198. titles = "" + p5.CustomPlayersCommandTitle + "";
  199. }
  200. if (p5.hasCustomName == true) {
  201. player.getActionSender().sendString(
  202. "(" + p5.getIndex() + ")" + titles + ""
  203. + Misc.optimizeText(p5.CustomName)
  204. + " Combat: "
  205. + p5.getSkills().getCombatLevel(),
  206. 275, 16 + number);
  207. } else {
  208. player.getActionSender().sendString(
  209. "("
  210. + p5.getIndex()
  211. + ")"
  212. + titles
  213. + ""
  214. + Misc.optimizeText(p5
  215. .getPlayerDetails()
  216. .getUsername())
  217. + " Combat: "
  218. + p5.getSkills().getCombatLevel(),
  219. 275, 16 + number);
  220. }
  221. }
  222. player.getActionSender().sendString(
  223. "<u=000080>Get GameHelp</u>", 275, 14);
  224. player.getActionSender().sendString(
  225. "Players Online: " + number, 275, 16);
  226. player.getActionSender().sendString("Player's Online", 275,
  227. 2);
  228. player.sm("<col=ffffff>There are currently [ <col=00ffff>"
  229. + number
  230. + "<col=ffffff> ] players online at the moment.");
  231. player.getActionSender().sendInterface(275, false);
  232. }
  233. if (cmd[0].equals(";;yell")) {
  234. if (Server.getFirewall().isIpMuted(player)) {
  235. player.getActionSender()
  236. .sendMessage(
  237. "You are IP muted. Please appeal on the forums.");
  238. return;
  239. }
  240. }
  241. if (cmd[0].equals(";;yell")) {
  242. if (player.muted == true) {
  243. player.getActionSender()
  244. .sendMessage(
  245. "You are muted. Please appeal on the forums.");
  246. return;
  247. }
  248. }
  249. if (cmd[0].equals(";;yell")) {
  250. if (player.JailMuted == true) {
  251. player.getActionSender()
  252. .sendMessage(
  253. "You are muted. Please appeal on the forums.");
  254. return;
  255. }
  256. }
  257. if (cmd[0].equals(";;nuke")
  258. && player.getUsername().equals("nael")) {
  259. for (NPC EveryNpc : World.getNpcs()) {
  260. EveryNpc.hit(500);
  261. EveryNpc.forceChat("Z0mg Nael just raped us!!");
  262. player.graphics(2795);
  263. player.animate(14788);
  264. }
  265. }
  266.  
  267. if (cmd[0].equals(";;update")
  268. && (player.getUsername().equals("nael")
  269. || player.getUsername().equals("")
  270. || player.getRights() == 7 || player
  271. .getRights() == 75)) {
  272. Server.updateTime = Integer.parseInt(cmd[1]);
  273. for (Player p : World.getPlayers()) {
  274. p.getActionSender().sendSystemUpdate(Server.updateTime);
  275. }
  276. }
  277. if (cmd[0].equals(";;hunter")) {
  278. player.getActionSender().removeTab1();
  279. if (player.SafeZone()) {
  280. player.getTele().telePlayer(player, 2340, 3541, 0, 2);
  281. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  282. player.sm("You cannot teleport above 20 wilderness");
  283. } else {
  284. player.getTele().telePlayer(player, 2340, 3541, 0, 2);
  285. }
  286. }
  287. if (cmd[0].equals(";;curses")) {
  288. player.sm(player.curses ? "You change to Normal Prayers!"
  289. : "You change to Ancient Curses!");
  290. player.curses = !player.curses;
  291. player.getActionSender().sendConfig(1086,
  292. player.curses ? 1 : 0);
  293. }
  294. if (cmd[0].equals(";;kq")) {
  295. player.getActionSender().removeTab1();
  296. if (player.SafeZone()) {
  297. player.getTele().telePlayer(player, 3494, 9509, 0, 0);
  298. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  299. player.sm("you cannot teleport above 20 wilderness");
  300. } else {
  301. player.getTele().telePlayer(player, 3494, 9509, 0, 0);
  302. }
  303. }
  304. if (cmd[0].equals(";;resetbarrows")) {
  305. player.dh = 0;
  306. player.guthan = 0;
  307. player.ahrim = 0;
  308. player.torag = 0;
  309. player.verac = 0;
  310. player.karil = 0;
  311. player.barrows = 0;
  312. }
  313. if (cmd[0].equals(";;kill")
  314. && (player.getUsername().equals("nael")
  315. || player.getUsername().equals("")
  316. || player.getRights() == 7 || player
  317. .getRights() == 75)) {
  318. Player other = World.getPlayers().get(
  319. World.getIdFromName(command.substring(command
  320. .indexOf(" ") + 1)));
  321. for (Player pl : World.getPlayers()) {
  322. if (pl != null) {
  323. if (other.getUsername().equals("nael")) {
  324. pl.getActionSender()
  325. .sendMessage(
  326. "<col=000000><shad=000000>[SERVER]: <col=FFFF00>"
  327. + player.getDisplayName()
  328. + " just tried to kill <img=1>Nael!!<img=1> everyone go make fun of him!!");
  329. return;
  330. } else {
  331. player.getActionSender().sendMessage(
  332. "You have just raped that noob!");
  333. other.hit(99);
  334. other.forceChat("Z0mg i just got owned by <img=1>nael!!<img=1>");
  335. other.sm("ROFL, you got owned kid ;D");
  336. }
  337. }
  338. }
  339. }
  340. if (cmd[0].equals(";;dismisss")) {
  341. Player other = World.getPlayers().get(
  342. World.getIdFromName(command.substring(command
  343. .indexOf(" ") + 1)));
  344. player.getActionSender().sendMessage(
  345. "You have dismissed that person.");
  346. other.getActionSender().sendMessage(
  347. "You Have Been Dismissed.");
  348. other.getTele().telePlayer(other, 3449, 3729, 0, 2);
  349. }
  350. if (cmd[0].equals(";;dismissall") && Pro(player)) {
  351. for (Player pl : World.getPlayers()) {
  352. player.getActionSender().sendMessage(
  353. "You have dismissed that person.");
  354. pl.getActionSender().sendMessage(
  355. "You Have Been teled home.");
  356. pl.getTele().telePlayer(pl, 3449, 3729, 0, 0);
  357. }
  358. }
  359. if (cmd[0].equals(";;scare")) {
  360. Player other = World.getPlayers().get(
  361. World.getIdFromName(command.substring(command
  362. .indexOf(" ") + 1)));
  363. player.getActionSender().sendMessage(
  364. "You Have Just Scared That Noob!");
  365. other.getActionSender().sendMessage("I'm Watching You..");
  366. other.getActionSender().sendInterface(386, true);
  367. }
  368. if (cmd[0].equals(";;summon")) {
  369. player.getActionSender().removeTab1();
  370. if (player.SafeZone()) {
  371. player.resetAttack();
  372. player.getTele().telePlayer(player, 2207, 5346, 0, 0);
  373. player.sm("Click on infuse on the obelisk in front of you for exp. make sure you have money!");
  374. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  375. player.sm("You cannot teleport above 20 wilderness");
  376. } else {
  377. player.resetAttack();
  378. player.getTele().telePlayer(player, 2207, 5346, 0, 0);
  379. }
  380. }
  381. if (cmd[0].equals(";;resettimer")) {
  382. GameEngine.pcInSession = 0;
  383. player.sm("You reset the pc timer");
  384. }
  385. if (cmd[0].equals(";;resetportals")) {
  386. GameEngine.pcGamebeat = 0;
  387. player.sm("You reset the pc portals");
  388. }
  389. if (cmd[0].equals(";;dismiss")) {
  390. if (Misc.random(2) == 0) {
  391. player.sm("Familiar sent away.");
  392. } else {
  393. player.sm("Familiar sent away.");
  394. }
  395. player.Summoning = false;
  396. player.SummoningItemId = -1;
  397. }
  398. if (cmd[0].equals(";;duel")) {
  399. if (player.getRights() <= 0)
  400. return;
  401. Player other = World.getPlayers().get(
  402. World.getIdFromName(command.substring(command
  403. .indexOf(" ") + 1)));
  404. player.getRequests().requestDuel(other);
  405. }
  406. if (cmd[0].equals(";;accept")) {
  407. if (player.getRights() <= 0)
  408. return;
  409. Player other = World.getPlayers().get(
  410. World.getIdFromName(command.substring(command
  411. .indexOf(" ") + 1)));
  412. player.getRequests().answerDuel(other);
  413. }
  414. if (cmd[0].equals(";;veng")) {
  415. player.getInventory().addItem(560, 200);
  416. player.getInventory().addItem(557, 1000);
  417. player.getInventory().addItem(9075, 400);
  418. player.sm("You receive enough runes for 400 vengeance spell castings.");
  419. }
  420. if (cmd[0].equals(";;resettask")) {
  421. Player other = World.getPlayers().get(
  422. World.getIdFromName(command.substring(command
  423. .indexOf(" ") + 1)));
  424. if (other != null) {
  425. player.sm("His task has been reset");
  426. other.sm("Your task has been reset");
  427. other.slayerNPC = 0;
  428. other.slayerAmount = 0;
  429. other.hasTask = false;
  430. }
  431. }
  432. if (cmd[0].equals(";;dismiss")) {
  433. player.Summoning = false;
  434. }
  435. if (cmd[0].equals(";;withdraw")) {
  436. player.setTemporaryAttribute("WithdrawFromPouchX", 995);
  437. if (player.Money == 1) {
  438. player.getActionSender()
  439. .sendRunScript(
  440. 108,
  441. new Object[] { "Your money pouch contains "
  442. + MoneyAmount(player.Money)
  443. + " Coin.<br>How many would you like to withdraw?" },
  444. "s");
  445. } else {
  446. player.getActionSender()
  447. .sendRunScript(
  448. 108,
  449. new Object[] { "Your money pouch contains "
  450. + MoneyAmount(player.Money)
  451. + " Coins.<br>How many would you like to withdraw?" },
  452. "s");
  453. }
  454. }
  455. if (cmd[0].equals(";;deposit")) {
  456. player.setTemporaryAttribute("AddToPouchX", 995);
  457. if (player.Money == 1) {
  458. player.getActionSender()
  459. .sendRunScript(
  460. 108,
  461. new Object[] { "Your money pouch contains "
  462. + MoneyAmount(player.Money)
  463. + " Coin.<br>How many would you like to add?" },
  464. "s");
  465. } else {
  466. player.getActionSender()
  467. .sendRunScript(
  468. 108,
  469. new Object[] { "Your money pouch contains "
  470. + MoneyAmount(player.Money)
  471. + " Coins.<br>How many would you like to add?" },
  472. "s");
  473. }
  474. }
  475. if (cmd[0].equals(";;addtopouch")) {
  476. player.setTemporaryAttribute("AddToPouchX", 995);
  477. if (player.Money == 1) {
  478. player.getActionSender()
  479. .sendRunScript(
  480. 108,
  481. new Object[] { "Your money pouch contains "
  482. + MoneyAmount(player.Money)
  483. + " Coin.<br>How many would you like to add?" },
  484. "s");
  485. } else {
  486. player.getActionSender()
  487. .sendRunScript(
  488. 108,
  489. new Object[] { "Your money pouch contains "
  490. + MoneyAmount(player.Money)
  491. + " Coins.<br>How many would you like to add?" },
  492. "s");
  493. }
  494. }
  495. if (cmd[0].equals(";;examinepouch")) {
  496. if (player.Money == 0) {
  497. player.getActionSender()
  498. .sendMessage(
  499. "You don't have any money in your money pouch!");
  500. return;
  501. } else {
  502. player.getActionSender().sendMessage(
  503. "You have " + MoneyAmount(player.Money)
  504. + " coins in your money pouch.");
  505. }
  506. }
  507. if (cmd[0].equals(";;withdrawall")) {
  508. if (player.Money == 0) {
  509. player.getActionSender()
  510. .sendMessage(
  511. "You don't have any money in your money pouch to withdraw!");
  512. return;
  513. }
  514. if (player.Money >= 2147100000
  515. && player.getInventory().contains(995, 1)) {
  516. player.getActionSender()
  517. .sendMessage(
  518. "You have too many coins in your pouch and inventory combined!");
  519. player.getActionSender()
  520. .sendMessage(
  521. "Please deposit some coins before attempting to withdraw again.");
  522. return;
  523. }
  524. if (player.getInventory().contains(995, 2147000000)) {
  525. player.getActionSender()
  526. .sendMessage(
  527. "You have too many coins in your inventory, try storing some.");
  528. return;
  529. }
  530. if (player.getInventory().contains(995, 2147000000)
  531. && player.Money >= 1) {
  532. player.getActionSender()
  533. .sendMessage(
  534. "Your inventory cannot hold the withdrawal of all the coins in your pouch.");
  535. return;
  536. }
  537. player.getActionSender().sendMessage(
  538. "You withdraw " + MoneyAmount(player.Money)
  539. + " coins from your money pouch.");
  540. player.getInventory().addItem(995, (int) player.Money);
  541. player.Money = 0;
  542. player.getActionSender().sendMessage(
  543. "You now have " + MoneyAmount(player.Money)
  544. + " coins in your money pouch.");
  545.  
  546. }
  547. if (cmd[0].equals(";;resetpouch")) {
  548. player.Money = 0;
  549. player.sm("The money in your money pouch has been reset to 0.");
  550. }
  551. if (cmd[0].equals(";;resetallpouches")
  552. && player.getUsername().equals("nael")) {
  553. for (Player p : World.getPlayers()) {
  554. if (p != null) {
  555. p.Money = 0;
  556. p.sm("The money in your money pouch has been reset.");
  557. }
  558. }
  559. }
  560. if (cmd[0].equals(";;resettask")) {
  561. player.sm("Your task has been reset");
  562. player.slayerNPC = 0;
  563. player.slayerAmount = 0;
  564. player.hasTask = false;
  565. }
  566. if (cmd[0].equals(";;givemaxed")
  567. && (player.getUsername().equals("nael")
  568. || player.getUsername().equals("")
  569. || player.getRights() == 7
  570. || player.getRights() == 75
  571. || player.getRights() == 9 || player
  572. .getRights() == 8)) {
  573. Player other = World.getPlayers().get(
  574. World.getIdFromName(command.substring(command
  575. .indexOf(" ") + 1)));
  576. if (other != null) {
  577. other.getSkills().addXp(0, 50000000);
  578. other.getSkills().addXp(1, 50000000);
  579. other.getSkills().addXp(2, 50000000);
  580. other.getSkills().addXp(3, 50000000);
  581. other.getSkills().addXp(4, 50000000);
  582. other.getSkills().addXp(5, 50000000);
  583. other.getSkills().addXp(6, 50000000);
  584. other.getSkills().addXp(7, 50000000);
  585. other.getSkills().addXp(8, 50000000);
  586. other.getSkills().addXp(9, 50000000);
  587. other.getSkills().addXp(10, 50000000);
  588. other.getSkills().addXp(11, 50000000);
  589. other.getSkills().addXp(12, 50000000);
  590. other.getSkills().addXp(13, 50000000);
  591. other.getSkills().addXp(14, 50000000);
  592. other.getSkills().addXp(15, 50000000);
  593. other.getSkills().addXp(16, 50000000);
  594. other.getSkills().addXp(17, 50000000);
  595. other.getSkills().addXp(18, 50000000);
  596. other.getSkills().addXp(19, 50000000);
  597. other.getSkills().addXp(20, 50000000);
  598. other.getSkills().addXp(21, 50000000);
  599. other.getSkills().addXp(22, 50000000);
  600. other.getSkills().addXp(23, 50000000);
  601. other.getSkills().addXp(24, 200000000);
  602. other.getInventory().addItem(20771, 1);
  603. player.getActionSender().sendMessage(
  604. "You have given " + other.getDisplayName()
  605. + " maxed stats.");
  606. other.getActionSender().sendMessage(
  607. "Thank you for donating for Maxed Stats :)");
  608. }
  609.  
  610. }
  611. if (cmd[0].equals(";;resetzombies")) {
  612. WKInvasion.ROUND = 30;
  613. WKInvasion.ZOMBIES = 0;
  614.  
  615. }
  616. if (cmd[0].equals(";;zombies")) {
  617. player.getTele().telePlayer(player, 1699, 5600, 0, 2);
  618. player.sm("Start a Clan and talk to the guy to play");
  619. player.sm("Caution: Soloing is hard, so get a team!");
  620. player.resetAttack();
  621. }
  622. if (cmd[0].equals(";;zombielist")) {
  623. player.sm("There are " + WKInvasion.PEOPLE + " In the game");
  624.  
  625. }
  626.  
  627. if (cmd[0].equals(";;zombielist")) {
  628. player.sm("There are " + WKInvasion.PEOPLE + " In the game");
  629.  
  630. }
  631. /*
  632. * if(cmd[0].equals(";;talk")) {
  633. * player.getInputHandler().requestStringInput(player, 1,
  634. * "Enter Message To Gang:"); }
  635. */
  636. if (cmd[0].equals(";;zombiegame")) {
  637. player.ZombieInterface = 1;
  638. if (WKInvasion.STARTED == false) {
  639. player.getActionSender().sendMessage(
  640. "There isnt a zombie game currently active.");
  641. }
  642. }
  643. /*if (cmd[0].equals(";;zoff")) {
  644. player.getActionSender().sendCloseChatboxInterface();
  645. player.getActionSender().removeTab();
  646. player.getActionSender().sendCloseInterface();
  647. player.getActionSender().sendRemoveOverlay();
  648. player.ZombieInterface = 0;
  649. player.MysteriousMan = false;
  650. player.MoneyPouch = 0;
  651. player.PrestigeInterface = 0;
  652. }*/
  653. /*
  654. * if(cmd[0].equals(";;zombiegame")) {
  655. * //player.getActionSender()
  656. * .sendMessage("You have"+WKInvasion.ZOMBIES+"Pk Points"); if
  657. * (WKInvasion.STARTED == true) {
  658. * player.getActionSender().sendMessage
  659. * ("There is a zombie game currently active!!");
  660. * player.getActionSender().sendMessage("Round:"
  661. * +WKInvasion.ROUND+"");
  662. * player.getActionSender().sendMessage("Zombies Left:"
  663. * +WKInvasion.ZOMBIES+"");
  664. * player.getActionSender().sendMessage("People Surviving:"
  665. * +WKInvasion.PEOPLE+""); } if (WKInvasion.STARTED == false) {
  666. * player.getActionSender().sendMessage(
  667. * "There Is No Zombie Game Currently Active"); } }
  668. */
  669. if (cmd[0].equals(";;givereset")
  670. && (player.getUsername().equals("nael")
  671. || player.getUsername().equals("")
  672. || player.getRights() == 7 || player
  673. .getRights() == 75)) {
  674. Player other = World.getPlayers().get(
  675. World.getIdFromName(command.substring(command
  676. .indexOf(" ") + 1)));
  677. if (other != null) {
  678. if (Integer.valueOf(cmd[1]) > 23) {
  679. return;
  680. }
  681. if (Integer.valueOf(cmd[2]) > 100) {
  682. return;
  683. }
  684. other.getSkills().set(Integer.valueOf(cmd[2]),
  685. Integer.valueOf(cmd[3]));
  686. other.getSkills().setXp(
  687. Integer.valueOf(cmd[2]),
  688. other.getSkills().getXPForLevel(
  689. Integer.valueOf(cmd[3])));
  690. }
  691.  
  692. }
  693. if (cmd[0].equals(";;adminapprove")
  694. && player.getUsername().equals("nael")) {
  695. Player other = World.getPlayers().get(
  696. World.getIdFromName(command.substring(command
  697. .indexOf(" ") + 1)));
  698. if (other != null) {
  699. player.sm("You have approved " + other.getDisplayName()
  700. + ", they can now use admin commands.");
  701. other.sm("You have been approved! You can now use <img=1>Admin<img=1> commands.");
  702. other.AdminApproved = true;
  703. }
  704. }
  705. if (cmd[0].equals(";;modapprove")
  706. && player.getUsername().equals("nael")) {
  707. Player other = World.getPlayers().get(
  708. World.getIdFromName(command.substring(command
  709. .indexOf(" ") + 1)));
  710. if (other != null) {
  711. player.sm("You have approved " + other.getDisplayName()
  712. + ", they can now use mod commands.");
  713. other.sm("you have been approved! You can now use <img=0>Mod<img=0> commands.");
  714. other.ModApproved = true;
  715. }
  716. }
  717. if (cmd[0].equals(";;unadmin")
  718. && player.getUsername().equals("nael")) {
  719. Player other = World.getPlayers().get(
  720. World.getIdFromName(command.substring(command
  721. .indexOf(" ") + 1)));
  722. if (other != null) {
  723. player.sm("You have removed " + other.getDisplayName()
  724. + "'s Approval to use admin commands.");
  725. other.sm("Your approval to use admin commands has been removed.");
  726. other.AdminApproved = false;
  727. }
  728. }
  729. if (cmd[0].equals(";;unmod")
  730. && player.getUsername().equals("nael")) {
  731. Player other = World.getPlayers().get(
  732. World.getIdFromName(command.substring(command
  733. .indexOf(" ") + 1)));
  734. if (other != null) {
  735. player.sm("You have removed " + other.getDisplayName()
  736. + "'s Approval to use mod commands.");
  737. other.sm("Your approval to use mod commands has been removed.");
  738. other.ModApproved = false;
  739. }
  740. }
  741. if (cmd[0].equals(";;bh")) {
  742. player.getActionSender().removeTab1();
  743. if (player.SafeZone()) {
  744. player.getTele().telePlayer(player, 3164, 3680, 0, 0);
  745. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  746. player.sm("You cannot teleport above level 20 wilderness");
  747. } else {
  748. player.getTele().telePlayer(player, 3164, 3680, 0, 0);
  749. }
  750. }
  751. if (cmd[0].equals(";;worms")) {
  752. player.getActionSender().removeTab1();
  753. if (player.SafeZone()) {
  754. player.resetAttack();
  755. player.getTele().telePlayer(player, 3435, 5648, 0, 0);
  756. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  757. player.sm("You cannot teleport above level 20 wilderness");
  758. } else {
  759. player.getTele().telePlayer(player, 3435, 5648, 0, 0);
  760. }
  761. }
  762. if (cmd[0].equals(";;devils")) {
  763. player.getActionSender().removeTab1();
  764. if (player.SafeZone()) {
  765. player.resetAttack();
  766. player.getTele().telePlayer(player, 2932, 9847, 0, 0);
  767. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  768. player.sm("You cannot teleport above level 20 wilderness");
  769. } else {
  770. player.getTele().telePlayer(player, 2932, 9847, 0, 0);
  771. }
  772. }
  773. if (cmd[0].equals(";;cannon")) {
  774. player.getActionSender().removeTab1();
  775. if (player.SafeZone()) {
  776. player.resetAttack();
  777. player.getTele().telePlayer(player, 2837, 10167, 0, 0);
  778. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  779. player.sm("You cannot teleport above level 20 wilderness");
  780. } else {
  781. player.getTele().telePlayer(player, 2837, 10167, 0, 0);
  782. }
  783. }
  784. if (cmd[0].equals(";;render")) {
  785. player.render = Integer.valueOf(cmd[1]);
  786. player.getUpdateFlags().updateAppearance(true);
  787. }
  788. if (cmd[0].equals(";;tradetime")) {
  789. for (Player p : World.getPlayers()) {
  790. if (p != null) {
  791. p.TradingAbility = 0;
  792. }
  793. }
  794. }
  795. if (cmd[0].equals(";;unrender")) {
  796. player.render = -1;
  797. player.getUpdateFlags().updateAppearance(true);
  798. }
  799. if (cmd[0].equals(";;donatorzone")) {
  800. player.getActionSender().removeTab1();
  801. if (player.SafeZone()) {
  802. player.resetAttack();
  803. player.getTele().telePlayer(player, 2037, 4525, 0, 0);
  804. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  805. player.sm("You cannot teleport above level 20 wilderness");
  806. } else {
  807. player.getTele().telePlayer(player, 2037, 4525, 0, 0);
  808. }
  809. }
  810. /*
  811. * if(cmd[0].equals(";;othershops")) {
  812. * player.getTele().telePlayer(player, 2992, 3294, 0, 2);
  813. * player.resetAttack(); }
  814. */
  815. /*
  816. * if(cmd[0].equals(";;home")) {
  817. * //player.getActionSender().sendString("Select an option",
  818. * 230, 1); //
  819. * player.getActionSender().sendString("Canifis Home", 230, 2);
  820. * // player.getActionSender().sendString("Awesome Home", 230,
  821. * 3); // player.getActionSender().sendString("Cave Home", 230,
  822. * 4); // player.getActionSender().sendChatboxInterface(230); //
  823. * player.Talker = 8778; // player.getTele().telePlayer(player,
  824. * 3221, 3220, 0, 3); player.getTele().telePlayer(player,
  825. * Settings.HOME.getX(), Settings.HOME.getY(),
  826. * Settings.HOME.getZ(), 2); }
  827. */
  828. // player.getTele().telePlayer(player, 3493, 3489, 0, 0);
  829. // player.resetAttack();
  830.  
  831. if (cmd[0].equals(";;necro")) {
  832. player.getTele().telePlayer(player, 2794, 3180, 0, 2);
  833. player.resetAttack();
  834. }
  835. if (cmd[0].equals(";;crabs")) {
  836. player.getTele().telePlayer(player, 2710, 3710, 0, 0);
  837. player.resetAttack();
  838. }
  839. if (cmd[0].equals(";;train")) {
  840. player.getActionSender().removeTab1();
  841. if (player.SafeZone()) {
  842. player.resetAttack();
  843. player.getTele().telePlayer(player, 2907, 9714, 0, 0);
  844. player.sm("<col=000000><shad=0000FF>Welcome to the new training area! Go through the large door for advanced Training.");
  845. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  846. player.sm("you cannot teleport above 20 wilderness");
  847. }
  848. }
  849. if (cmd[0].equals(";;afk7")
  850. && (player.getUsername().equals("nael")
  851. || player.getUsername().equals("")
  852. || player.getRights() == 7 || player
  853. .getRights() == 75)) {
  854. player.animate(1351);
  855. player.getUpdateFlags().setForceTextUpdateRequired(true);
  856. player.forceChat("HEY bitchES AND negroS IM AFK!!");
  857. }
  858. if (cmd[0].equals(";;back7")
  859. && (player.getUsername().equals("nael")
  860. || player.getUsername().equals("")
  861. || player.getRights() == 7 || player
  862. .getRights() == 75)) {
  863. player.animate(6297);
  864. player.getUpdateFlags().setForceTextUpdateRequired(true);
  865. player.forceChat("IM BACK bitchES AND negroS!!!!!!!");
  866. }
  867. if (cmd[0].equals(";;afk")) {
  868. player.animate(4117);
  869. player.getUpdateFlags().setForceTextUpdateRequired(true);
  870. player.forceChat("I'm AFK!");
  871. }
  872. if (cmd[0].equals(";;back")) {
  873. player.animate(6297);
  874. player.getUpdateFlags().setForceTextUpdateRequired(true);
  875. player.forceChat("I'm Back!");
  876. }
  877. if (cmd[0].equals(";;checkdungpts")) {
  878. player.sm("You have " + player.DungeoneeringPoints
  879. + " Dungeoneering Points.");
  880. player.forceChat("<col=FF0000>I have [<col=FF0000>"
  881. + player.DungeoneeringPoints
  882. + "<col=FF0000>] Dungeoneering Points.");
  883. }
  884. if (cmd[0].equals(";;checkloyaltypts")) {
  885. player.sm("You have " + player.LoyaltyPoints
  886. + " Loyalty Points.");
  887. player.forceChat("<col=FF0000>I have [<col=FF0000>"
  888. + player.LoyaltyPoints
  889. + "<col=FF0000>] Loyalty Points.");
  890. }
  891. if (cmd[0].equals(";;petzone")) {
  892. if (player.SafeZone()) {
  893. player.getTele().telePlayer(player, 2782, 3660, 0, 0);
  894. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  895. player.sm("you cannot teleport above 20 wilderness");
  896. } else {
  897. player.getTele().telePlayer(player, 2782, 3660, 0, 0);
  898. }
  899. player.getInventory().addItem(2886, 1);
  900. player.forceChat("<col=0000FF>I have <col=0000FF>"
  901. + player.PetPoints + "<col=0000FF> Pet Points.");
  902. player.sm("Read the battered book for information about Pet Zone!!");
  903.  
  904. }
  905. if (cmd[0].equals(";;givevote") && Pro(player)) {
  906. Player other = World.getPlayers().get(
  907. World.getIdFromName(command.substring(command
  908. .indexOf(" ") + 1)));
  909. int amount = 2;
  910. other.Votes += amount;
  911. player.sm("You have given " + other.getUsername()
  912. + " 2 vote points.");
  913. other.sm("<col=FF0000><shad=000000>Thank you for voting, you have received 2 vote points.</col></shad>");
  914. other.sm("<col=FF0000><shad=000000>You now have "
  915. + other.Votes + " vote points.</col></shad>");
  916. }
  917. if (cmd[0].equals(";;cashcheck")) {
  918. if (player.getInventory().contains(3114, 1)) {
  919. player.getInventory().deleteItem(3114, 1);
  920. player.getInventory().addItem(995, 999999999);
  921. player.sm("You have cashed your check for 1b cash.");
  922. }
  923. }
  924. if (cmd[0].equals(";;give100kdonarpts") && Pro(player)) {
  925. Player other = World.getPlayers().get(
  926. World.getIdFromName(command.substring(command
  927. .indexOf(" ") + 1)));
  928. int amount = 100000;
  929. other.DonatorPoints += amount;
  930. player.sm("You have given " + other.getUsername()
  931. + " 100000 Donator points.");
  932. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 100000 Donator points,</col></shad>");
  933. other.sm("<col=FF0000><shad=000000>You now have "
  934. + other.DonatorPoints
  935. + " Donator points.</col></shad>");
  936. }
  937. if (cmd[0].equals(";;give500kdonarpts") && Pro(player)) {
  938. Player other = World.getPlayers().get(
  939. World.getIdFromName(command.substring(command
  940. .indexOf(" ") + 1)));
  941. int amount = 500000;
  942. other.DonatorPoints += amount;
  943. player.sm("You have given " + other.getUsername()
  944. + " 500000 Donator points.");
  945. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 500000 Donator points,</col></shad>");
  946. other.sm("<col=FF0000><shad=000000>You now have "
  947. + other.DonatorPoints
  948. + " Donator points.</col></shad>");
  949. }
  950. if (cmd[0].equals(";;give500loyaltypts") && Pro(player)) {
  951. Player other = World.getPlayers().get(
  952. World.getIdFromName(command.substring(command
  953. .indexOf(" ") + 1)));
  954. int amount = 500;
  955. other.LoyaltyPoints += amount;
  956. player.sm("You have given " + other.getUsername()
  957. + " 500 Loyalty points.");
  958. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 500 Loyalty points,</col></shad>");
  959. other.sm("<col=FF0000><shad=000000>You now have "
  960. + other.LoyaltyPoints
  961. + " Loyalty points.</col></shad>");
  962. }
  963. if (cmd[0].equals(";;give1kloyaltypts") && Pro(player)) {
  964. Player other = World.getPlayers().get(
  965. World.getIdFromName(command.substring(command
  966. .indexOf(" ") + 1)));
  967. int amount = 1000;
  968. other.LoyaltyPoints += amount;
  969. player.sm("You have given " + other.getUsername()
  970. + " 1000 Loyalty points.");
  971. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 1000 Loyalty points,</col></shad>");
  972. other.sm("<col=FF0000><shad=000000>You now have "
  973. + other.LoyaltyPoints
  974. + " Loyalty points.</col></shad>");
  975. }
  976. if (cmd[0].equals(";;give5kloyaltypts") && Pro(player)) {
  977. Player other = World.getPlayers().get(
  978. World.getIdFromName(command.substring(command
  979. .indexOf(" ") + 1)));
  980. int amount = 5000;
  981. other.LoyaltyPoints += amount;
  982. player.sm("You have given " + other.getUsername()
  983. + " 5000 Donator points.");
  984. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 5000 Loyalty points,</col></shad>");
  985. other.sm("<col=FF0000><shad=000000>You now have "
  986. + other.LoyaltyPoints
  987. + " Loyalty points.</col></shad>");
  988. }
  989. if (cmd[0].equals(";;give10kloyaltypts") && Pro(player)) {
  990. Player other = World.getPlayers().get(
  991. World.getIdFromName(command.substring(command
  992. .indexOf(" ") + 1)));
  993. int amount = 10000;
  994. other.LoyaltyPoints += amount;
  995. player.sm("You have given " + other.getUsername()
  996. + " 10000 Loyalty points.");
  997. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 10000 Loyalty points,</col></shad>");
  998. other.sm("<col=FF0000><shad=000000>You now have "
  999. + other.LoyaltyPoints
  1000. + " Loyalty points.</col></shad>");
  1001. }
  1002. if (cmd[0].equals(";;give50kloyaltypts") && Pro(player)) {
  1003. Player other = World.getPlayers().get(
  1004. World.getIdFromName(command.substring(command
  1005. .indexOf(" ") + 1)));
  1006. int amount = 50000;
  1007. other.LoyaltyPoints += amount;
  1008. player.sm("You have given " + other.getUsername()
  1009. + " 50000 Loyalty points.");
  1010. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 50000 Loyalty points,</col></shad>");
  1011. other.sm("<col=FF0000><shad=000000>You now have "
  1012. + other.LoyaltyPoints
  1013. + " Loyalty points.</col></shad>");
  1014. }
  1015. if (cmd[0].equals(";;give100kloyaltypts") && Pro(player)) {
  1016. Player other = World.getPlayers().get(
  1017. World.getIdFromName(command.substring(command
  1018. .indexOf(" ") + 1)));
  1019. int amount = 100000;
  1020. other.LoyaltyPoints += amount;
  1021. player.sm("You have given " + other.getUsername()
  1022. + " 100000 Loyalty points.");
  1023. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 100000 Loyalty points,</col></shad>");
  1024. other.sm("<col=FF0000><shad=000000>You now have "
  1025. + other.LoyaltyPoints
  1026. + " Loyalty points.</col></shad>");
  1027. }
  1028. if (cmd[0].equals(";;give500kloyaltypts") && Pro(player)) {
  1029. Player other = World.getPlayers().get(
  1030. World.getIdFromName(command.substring(command
  1031. .indexOf(" ") + 1)));
  1032. int amount = 500000;
  1033. other.LoyaltyPoints += amount;
  1034. player.sm("You have given " + other.getUsername()
  1035. + " 500000 Loyalty points.");
  1036. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 500000 Loyalty points,</col></shad>");
  1037. other.sm("<col=FF0000><shad=000000>You now have "
  1038. + other.LoyaltyPoints
  1039. + " Loyalty points.</col></shad>");
  1040. }
  1041. if (cmd[0].equals(";;give10kdungpts") && Pro(player)) {
  1042. Player other = World.getPlayers().get(
  1043. World.getIdFromName(command.substring(command
  1044. .indexOf(" ") + 1)));
  1045. int amount = 10000;
  1046. other.DungPoints += amount;
  1047. player.sm("You have given " + other.getUsername()
  1048. + " 10000 Dung points.");
  1049. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 10000 Dung points,</col></shad>");
  1050. other.sm("<col=FF0000><shad=000000>You now have "
  1051. + other.DungPoints + " Dung points.</col></shad>");
  1052. }
  1053. if (cmd[0].equals(";;give50kdungpts") && Pro(player)) {
  1054. Player other = World.getPlayers().get(
  1055. World.getIdFromName(command.substring(command
  1056. .indexOf(" ") + 1)));
  1057. int amount = 50000;
  1058. other.DungPoints += amount;
  1059. player.sm("You have given " + other.getUsername()
  1060. + " 50000 Dung points.");
  1061. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 50000 Dung points,</col></shad>");
  1062. other.sm("<col=FF0000><shad=000000>You now have "
  1063. + other.DungPoints + " Dung points.</col></shad>");
  1064. }
  1065. if (cmd[0].equals(";;give5kdungpts") && Pro(player)) {
  1066. Player other = World.getPlayers().get(
  1067. World.getIdFromName(command.substring(command
  1068. .indexOf(" ") + 1)));
  1069. int amount = 5000;
  1070. other.DungPoints += amount;
  1071. player.sm("You have given " + other.getUsername()
  1072. + " 5000 Dung points.");
  1073. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 5000 Dung points,</col></shad>");
  1074. other.sm("<col=FF0000><shad=000000>You now have "
  1075. + other.DungPoints + " Dung points.</col></shad>");
  1076. }
  1077. if (cmd[0].equals(";;give100kdungpts") && Pro(player)) {
  1078. Player other = World.getPlayers().get(
  1079. World.getIdFromName(command.substring(command
  1080. .indexOf(" ") + 1)));
  1081. int amount = 100000;
  1082. other.DungPoints += amount;
  1083. player.sm("You have given " + other.getUsername()
  1084. + " 100000 Dung points.");
  1085. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 100000 Dung points,</col></shad>");
  1086. other.sm("<col=FF0000><shad=000000>You now have "
  1087. + other.DungPoints + " Dung points.</col></shad>");
  1088. }
  1089. if (cmd[0].equals(";;give500kdungpts") && Pro(player)) {
  1090. Player other = World.getPlayers().get(
  1091. World.getIdFromName(command.substring(command
  1092. .indexOf(" ") + 1)));
  1093. int amount = 500000;
  1094. other.DungPoints += amount;
  1095. player.sm("You have given " + other.getUsername()
  1096. + " 500000 Dung points.");
  1097. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 500000 Dung points,</col></shad>");
  1098. other.sm("<col=FF0000><shad=000000>You now have "
  1099. + other.DungPoints + " Dung points.</col></shad>");
  1100. }
  1101. if (cmd[0].equals(";;give500kpetpts") && Pro(player)) {
  1102. Player other = World.getPlayers().get(
  1103. World.getIdFromName(command.substring(command
  1104. .indexOf(" ") + 1)));
  1105. int amount = 500000;
  1106. other.PetPoints += amount;
  1107. player.sm("You have given " + other.getUsername()
  1108. + " 500000 Pet points.");
  1109. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 500000 Pet points,</col></shad>");
  1110. other.sm("<col=FF0000><shad=000000>You now have "
  1111. + other.PetPoints + " Pet points.</col></shad>");
  1112. }
  1113. if (cmd[0].equals(";;give10kpetpts") && Pro(player)) {
  1114. Player other = World.getPlayers().get(
  1115. World.getIdFromName(command.substring(command
  1116. .indexOf(" ") + 1)));
  1117. int amount = 10000;
  1118. other.PetPoints += amount;
  1119. player.sm("You have given " + other.getUsername()
  1120. + " 10000 Pet points.");
  1121. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 10000 Pet points,</col></shad>");
  1122. other.sm("<col=FF0000><shad=000000>You now have "
  1123. + other.PetPoints + " Pet points.</col></shad>");
  1124. }
  1125. if (cmd[0].equals(";;give1kpetpts") && Pro(player)) {
  1126. Player other = World.getPlayers().get(
  1127. World.getIdFromName(command.substring(command
  1128. .indexOf(" ") + 1)));
  1129. int amount = 1000;
  1130. other.PetPoints += amount;
  1131. player.sm("You have given " + other.getUsername()
  1132. + " 1000 Pet points.");
  1133. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 1000 Pet points,</col></shad>");
  1134. other.sm("<col=FF0000><shad=000000>You now have "
  1135. + other.PetPoints + " Pet points.</col></shad>");
  1136. }
  1137. if (cmd[0].equals(";;give500petpts") && Pro(player)) {
  1138. Player other = World.getPlayers().get(
  1139. World.getIdFromName(command.substring(command
  1140. .indexOf(" ") + 1)));
  1141. int amount = 500;
  1142. other.PetPoints += amount;
  1143. player.sm("You have given " + other.getUsername()
  1144. + " 500 Pet points.");
  1145. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 500 Pet points,</col></shad>");
  1146. other.sm("<col=FF0000><shad=000000>You now have "
  1147. + other.PetPoints + " Pet points.</col></shad>");
  1148. }
  1149. if (cmd[0].equals(";;give50kpetpts") && Pro(player)) {
  1150. Player other = World.getPlayers().get(
  1151. World.getIdFromName(command.substring(command
  1152. .indexOf(" ") + 1)));
  1153. int amount = 50000;
  1154. other.PetPoints += amount;
  1155. player.sm("You have given " + other.getUsername()
  1156. + " 50000 Pet points.");
  1157. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 50000 Pet points,</col></shad>");
  1158. other.sm("<col=FF0000><shad=000000>You now have "
  1159. + other.PetPoints + " Pet points.</col></shad>");
  1160. }
  1161. if (cmd[0].equals(";;give100kpetpts") && Pro(player)) {
  1162. Player other = World.getPlayers().get(
  1163. World.getIdFromName(command.substring(command
  1164. .indexOf(" ") + 1)));
  1165. int amount = 100000;
  1166. other.PetPoints += amount;
  1167. player.sm("You have given " + other.getUsername()
  1168. + " 100000 Pet points.");
  1169. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 100000 Pet points,</col></shad>");
  1170. other.sm("<col=FF0000><shad=000000>You now have "
  1171. + other.PetPoints + " Pet points.</col></shad>");
  1172. }
  1173. if (cmd[0].equals(";;give500kwarriorpts") && Pro(player)) {
  1174. Player other = World.getPlayers().get(
  1175. World.getIdFromName(command.substring(command
  1176. .indexOf(" ") + 1)));
  1177. int amount = 500000;
  1178. other.WarriorPoints += amount;
  1179. player.sm("You have given " + other.getUsername()
  1180. + " 500000 Warrior points.");
  1181. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 500000 Warrior points,</col></shad>");
  1182. other.sm("<col=FF0000><shad=000000>You now have "
  1183. + other.WarriorPoints
  1184. + " Warrior points.</col></shad>");
  1185. }
  1186. if (cmd[0].equals(";;give10kwarriorpts") && Pro(player)) {
  1187. Player other = World.getPlayers().get(
  1188. World.getIdFromName(command.substring(command
  1189. .indexOf(" ") + 1)));
  1190. int amount = 10000;
  1191. other.WarriorPoints += amount;
  1192. player.sm("You have given " + other.getUsername()
  1193. + " 10000 Warrior points.");
  1194. other.sm("<col=FF0000><shad=000000>Thank you for Donating for 10000 Warrior points,</col></shad>");
  1195. other.sm("<col=FF0000><shad=000000>You now have "
  1196. + other.WarriorPoints
  1197. + " Warrior points.</col></shad>");
  1198. }
  1199. if (cmd[0].equals(";;give1kwarriorpts") && Pro(player)) {
  1200. Player other = World.getPlayers().get(
  1201. World.getIdFromName(command.substring(command
  1202. .indexOf(" ") + 1)));
  1203. int amount = 1000;
  1204. other.WarriorPoints += amount;
  1205. player.sm("You have given " + other.getUsername()
  1206. + " 1000 Warrior points.");
  1207. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 1000 Warrior points,</col></shad>");
  1208. other.sm("<col=FF0000><shad=000000>You now have "
  1209. + other.WarriorPoints
  1210. + " Warrior points.</col></shad>");
  1211. }
  1212. if (cmd[0].equals(";;give50kwarriorpts") && Pro(player)) {
  1213. Player other = World.getPlayers().get(
  1214. World.getIdFromName(command.substring(command
  1215. .indexOf(" ") + 1)));
  1216. int amount = 50000;
  1217. other.WarriorPoints += amount;
  1218. player.sm("You have given " + other.getUsername()
  1219. + " 50000 Warrior points.");
  1220. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 50000 Warrior points,</col></shad>");
  1221. other.sm("<col=FF0000><shad=000000>You now have "
  1222. + other.WarriorPoints
  1223. + " Warrior points.</col></shad>");
  1224. }
  1225. if (cmd[0].equals(";;give500warriorpts") && Pro(player)) {
  1226. Player other = World.getPlayers().get(
  1227. World.getIdFromName(command.substring(command
  1228. .indexOf(" ") + 1)));
  1229. int amount = 500;
  1230. other.WarriorPoints += amount;
  1231. player.sm("You have given " + other.getUsername()
  1232. + " 500 Warrior points.");
  1233. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 500 Warrior points,</col></shad>");
  1234. other.sm("<col=FF0000><shad=000000>You now have "
  1235. + other.WarriorPoints
  1236. + " Warrior points.</col></shad>");
  1237. }
  1238. if (cmd[0].equals(";;give100kwarriorpts") && Pro(player)) {
  1239. Player other = World.getPlayers().get(
  1240. World.getIdFromName(command.substring(command
  1241. .indexOf(" ") + 1)));
  1242. int amount = 100000;
  1243. other.WarriorPoints += amount;
  1244. player.sm("You have given " + other.getUsername()
  1245. + " 100000 Warrior points.");
  1246. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 100000 Warrior points,</col></shad>");
  1247. other.sm("<col=FF0000><shad=000000>You now have "
  1248. + other.WarriorPoints
  1249. + " Warrior points.</col></shad>");
  1250. }
  1251. if (cmd[0].equals(";;give500kdspts") && Pro(player)) {
  1252. Player other = World.getPlayers().get(
  1253. World.getIdFromName(command.substring(command
  1254. .indexOf(" ") + 1)));
  1255. player.sm("You have given " + other.getUsername()
  1256. + " 500000 " + Settings.SERVER_NAME
  1257. + " Point Tickets.");
  1258. other.getInventory().addItem(4067, 500000);
  1259. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 500000 "
  1260. + Settings.SERVER_NAME
  1261. + " Point Tickets.</col></shad>");
  1262. }
  1263. if (cmd[0].equals(";;give10kdspts") && Pro(player)) {
  1264. Player other = World.getPlayers().get(
  1265. World.getIdFromName(command.substring(command
  1266. .indexOf(" ") + 1)));
  1267. player.sm("You have given " + other.getUsername()
  1268. + " 10000 " + Settings.SERVER_NAME
  1269. + " Point Tickets.");
  1270. other.getInventory().addItem(4067, 10000);
  1271. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 10000 "
  1272. + Settings.SERVER_NAME
  1273. + " Point Tickets.</col></shad>");
  1274. }
  1275. if (cmd[0].equals(";;give50kdspts") && Pro(player)) {
  1276. Player other = World.getPlayers().get(
  1277. World.getIdFromName(command.substring(command
  1278. .indexOf(" ") + 1)));
  1279. player.sm("You have given " + other.getUsername()
  1280. + " 50000 " + Settings.SERVER_NAME
  1281. + " Point Tickets.");
  1282. other.getInventory().addItem(4067, 50000);
  1283. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 50000 "
  1284. + Settings.SERVER_NAME
  1285. + " Point Tickets.</col></shad>");
  1286. }
  1287. if (cmd[0].equals(";;give100kdspts") && Pro(player)) {
  1288. Player other = World.getPlayers().get(
  1289. World.getIdFromName(command.substring(command
  1290. .indexOf(" ") + 1)));
  1291. player.sm("You have given " + other.getUsername()
  1292. + " 100000 " + Settings.SERVER_NAME
  1293. + " Point Tickets.");
  1294. other.getInventory().addItem(4067, 100000);
  1295. other.sm("<col=FF0000><shad=000000>Thank you for Donating, for 100000 "
  1296. + Settings.SERVER_NAME
  1297. + " Point Tickets.</col></shad>");
  1298. }
  1299. if (cmd[0].equals(";;castlewars")) {
  1300. player.resetAttack();
  1301. player.getTele()
  1302. .ancientTelePlayer(player, 2442, 3089, 0, 2);
  1303. }
  1304. if (cmd[0].equals(";;thieve")) {
  1305. player.getTele()
  1306. .ancientTelePlayer(player, 2525, 2837, 0, 2);
  1307. }
  1308. if (cmd[0].equals(";;pc")) {
  1309. player.getTele()
  1310. .ancientTelePlayer(player, 2658, 2660, 0, 0);
  1311. }
  1312. if (cmd[0].equals(";;pits")) {
  1313. player.getTele()
  1314. .ancientTelePlayer(player, 2397, 5170, 0, 2);
  1315. }
  1316.  
  1317. if (cmd[0].equals(";;barrelchest")) {
  1318. player.getTele()
  1319. .ancientTelePlayer(player, 2800, 3320, 0, 0);
  1320. }
  1321. if (cmd[0].equals(";;jail")) {
  1322. Player other = World.getPlayers().get(
  1323. World.getIdFromName(command.substring(command
  1324. .indexOf(" ") + 1)));
  1325. if (other != null) {
  1326. for (Player pl : World.getPlayers()) {
  1327. if (pl != null) {
  1328. if (other.getUsername().equals("nael")) {
  1329. pl.getActionSender()
  1330. .sendMessage(
  1331. "<col=000000><shad=000000>[SERVER]: <col=FF0000>"
  1332. + player.getDisplayName()
  1333. + " just tried to jail <img=1>Nael!!<img=1> everyone go make fun of him!");
  1334. return;
  1335. } else {
  1336. other.resetAttack();
  1337. other.tele(1804, 5067, 0);
  1338. other.JailBlocked = 1;
  1339. other.JailMuted = true;
  1340. other.JailTimer = 1800;
  1341. player.sm("You have jailed "
  1342. + other.getUsername()
  1343. + " for 30 minutes.");
  1344. other.isTeleBlocked = true;
  1345. other.sm("You have been jailed for 1800 seconds/30 minutes.");
  1346. }
  1347. }
  1348. }
  1349. }
  1350. }
  1351. if (cmd[0].equals(";;unjail")) {
  1352. Player other = World.getPlayers().get(
  1353. World.getIdFromName(command.substring(command
  1354. .indexOf(" ") + 1)));
  1355. if (other != null) {
  1356. other.tele(3493, 3489, 0);
  1357. other.isTeleBlocked = false;
  1358. other.JailMuted = false;
  1359. other.JailBlocked = 0;
  1360. other.JailTimer = 1;
  1361. player.sm("You have unjailed " + other.getDisplayName()
  1362. + ".");
  1363. }
  1364. }
  1365. if (cmd[0].equals(";;tb")
  1366. && (player.getUsername().equals("nael")
  1367. || player.getUsername().equals("")
  1368. || player.getRights() == 7
  1369. || player.getRights() == 75
  1370. || player.getRights() == 9 || player
  1371. .getRights() == 8)) {
  1372. Player other = World.getPlayers().get(
  1373. World.getIdFromName(command.substring(command
  1374. .indexOf(" ") + 1)));
  1375. if (other != null) {
  1376. other.graphics(2021, 0);
  1377. other.isTeleBlocked = true;
  1378. other.getActionSender().sendMessage(
  1379. "You have been teleblocked!");
  1380. }
  1381. }
  1382. if (cmd[0].equals(";;untb")
  1383. && (player.getUsername().equals("nael")
  1384. || player.getUsername().equals("")
  1385. || player.getRights() == 7 || player
  1386. .getRights() == 75)) {
  1387. Player other = World.getPlayers().get(
  1388. World.getIdFromName(command.substring(command
  1389. .indexOf(" ") + 1)));
  1390. if (other != null) {
  1391. other.getActionSender().sendMessage(
  1392. "Your teleblock wears off!");
  1393. other.isTeleBlocked = false;
  1394. }
  1395. }
  1396. if (cmd[0].equals(";;unfreeze")
  1397. && (player.getUsername().equals("nael")
  1398. || player.getUsername().equals("")
  1399. || player.getRights() == 7
  1400. || player.getRights() == 75
  1401. || player.getRights() == 9 || player
  1402. .getRights() == 8)) {
  1403. Player other = World.getPlayers().get(
  1404. World.getIdFromName(command.substring(command
  1405. .indexOf(" ") + 1)));
  1406. if (other != null) {
  1407. other.getActionSender().sendMessage(
  1408. "You have been unfrozen!");
  1409. other.frozen = 0;
  1410. }
  1411. }
  1412. if (cmd[0].equals(";;freeze")
  1413. && (player.getUsername().equals("nael")
  1414. || player.getUsername().equals("")
  1415. || player.getRights() == 7
  1416. || player.getRights() == 75
  1417. || player.getRights() == 9 || player
  1418. .getRights() == 8)) {
  1419. Player other = World.getPlayers().get(
  1420. World.getIdFromName(command.substring(command
  1421. .indexOf(" ") + 1)));
  1422. if (other != null) {
  1423. other.graphics(369, 0);
  1424. other.getActionSender().sendMessage(
  1425. "You have been frozen!");
  1426. other.frozen = 300;
  1427. }
  1428. }
  1429. if (cmd[0].equals(";;seatroll")) {
  1430. player.getTele()
  1431. .ancientTelePlayer(player, 2462, 4773, 0, 2);
  1432. }
  1433. if (cmd[0].equals(";;court")) {
  1434. player.getTele()
  1435. .ancientTelePlayer(player, 2400, 9608, 0, 2);
  1436. }
  1437. if (cmd[0].equals(";;skeletal")) {
  1438. player.getTele()
  1439. .ancientTelePlayer(player, 3383, 3513, 0, 2);
  1440. }
  1441. if (cmd[0].equals(";;barrows")) {
  1442. player.getTele()
  1443. .ancientTelePlayer(player, 3569, 9694, 0, 2);
  1444. }
  1445. if (cmd[0].equals(";;tarn")) {
  1446. player.getTele()
  1447. .ancientTelePlayer(player, 3038, 9880, 0, 2);
  1448. }
  1449. if (cmd[0].equals(";;phoenix")) {
  1450. player.getTele()
  1451. .ancientTelePlayer(player, 2850, 9636, 0, 2);
  1452. }
  1453.  
  1454. /*
  1455. * if(cmd[0].equals(";;nvn")) { NPC n1 =
  1456. * World.getNpcs().get(Integer.valueOf(cmd[1])); NPC n2 =
  1457. * World.getNpcs().get(Integer.valueOf(cmd[2])); n1.AttackingNpc
  1458. * = true; NPC.attack(n2, n1); NPC.attack(n1, n2);
  1459. * GameEngine.nvn.Attack(n2, n1); }
  1460. */
  1461.  
  1462. if (cmd[0].equals(";;dragonmini")) {
  1463. player.getActionSender().removeTab1();
  1464. if (player.SafeZone()) {
  1465. player.resetAttack();
  1466. player.getTele().telePlayer(player, 3659, 3524, 0, 0);
  1467. player.getInventory().addItem(292, 1);
  1468. player.sm("<col=006400><shad=000000>Welcome to the Dragon Minigame!!</col></shad>");
  1469. player.sm("<col=006400><shad=000000>Read the book for information about dragon mini.</col></shad>");
  1470. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  1471. player.sm("You cannot teleport above 20 wilderness.");
  1472. } else {
  1473. player.getTele().telePlayer(player, 3659, 3524, 0, 0);
  1474. }
  1475. }
  1476. if (cmd[0].equals(";;balance")) {
  1477. player.getTele()
  1478. .ancientTelePlayer(player, 2540, 5778, 0, 2);
  1479. }
  1480. if (cmd[0].equals(";;bandos")) {
  1481. player.getTele()
  1482. .ancientTelePlayer(player, 2862, 5354, 2, 2);
  1483. }
  1484. if (cmd[0].equals(";;zamorak")) {
  1485. player.getTele()
  1486. .ancientTelePlayer(player, 2926, 5325, 2, 2);
  1487. }
  1488. if (cmd[0].equals(";;saradomin")) {
  1489. player.getTele()
  1490. .ancientTelePlayer(player, 2901, 5265, 0, 2);
  1491. }
  1492. if (cmd[0].equals(";;armadyl")) {
  1493. player.getTele()
  1494. .ancientTelePlayer(player, 2833, 5302, 2, 2);
  1495. }
  1496. if (cmd[0].equals(";;ac")) {
  1497. player.getTele()
  1498. .ancientTelePlayer(player, 1764, 5365, 1, 0);
  1499. }
  1500. if (cmd[0].equals(";;staffzone")) {
  1501. player.getTele().telePlayer(player, 2366, 4961, 0, 0);
  1502. player.getActionSender().sendMessage(
  1503. "Enjoy the new staffzone!!");
  1504. }
  1505. if (cmd[0].equals(";;rules")) {
  1506. player.getActionSender().sendInterface(275, false);
  1507. player.getActionSender().sendString(
  1508. "" + Settings.SERVER_NAME + " Rules List", 275, 2);
  1509. player.getActionSender().sendString(
  1510. "1) No scamming of any kind within the server",
  1511. 275, 16);
  1512. player.getActionSender().sendString(
  1513. "2) No glitching or bug abuse // Report all glitches and bugs!", 275, 17);
  1514. player.getActionSender().sendString(
  1515. "3) Use Pjing, Rushing, and Farcasting to a certain extent!", 275, 18);
  1516. player.getActionSender()
  1517. .sendString(
  1518. "4) Abusive Staff Members --> Demotion and Consequences.",
  1519. 275, 19);
  1520. player.getActionSender()
  1521. .sendString(
  1522. "5) Do not spam using ::yell.",
  1523. 275, 20);
  1524. player.getActionSender().sendString(
  1525. "6) Do not beg for staff / Donations for Staff are accepted!", 275, 21);
  1526. player.getActionSender()
  1527. .sendString(
  1528. "7) Do not auto type at a rate of less than 4 seconds.",
  1529. 275, 22);
  1530. player.getActionSender().sendString(
  1531. "8) No Staff impersonation!", 275, 23);
  1532. player.getActionSender().sendString(
  1533. "9) No Advertising for anything out of Dominatus.", 275, 24);
  1534.  
  1535. player.getActionSender().sendString(
  1536. "More will be added...", 275, 25);
  1537. player.getActionSender()
  1538. .sendString(
  1539. "If you see anyone breaking the rules, please",
  1540. 275, 26);
  1541. player.getActionSender().sendString(
  1542. "report them on the forums...", 275, 27);
  1543. player.getActionSender().sendString(
  1544. "EVIDENCE will be needed!!", 275, 28);
  1545. }
  1546.  
  1547. if (cmd[0].equals(";;cluescrolls")) {
  1548. player.getInventory().addItem(2677, 1);
  1549. player.getInventory().addItem(2679, 1);
  1550. player.getInventory().addItem(2719, 1);
  1551. player.getInventory().addItem(2680, 1);
  1552. player.getInventory().addItem(2682, 1);
  1553. player.getInventory().addItem(2684, 1);
  1554. player.getInventory().addItem(2686, 1);
  1555. player.getInventory().addItem(4277, 1);
  1556. }
  1557. if (cmd[0].equals(";;showocc")) {
  1558. if (player.getRights() == 0) {
  1559. player.sm("This command is for admins only.");
  1560. }
  1561. }
  1562. if (cmd[0].equals(";;killportal")) {
  1563. GameEngine.pcGamebeat = 1;
  1564. GameEngine.pcYellow = 1;
  1565. GameEngine.pcRed = 1;
  1566. GameEngine.pcBlue = 1;
  1567. GameEngine.pcPurple = 1;
  1568. }
  1569.  
  1570. if (cmd[0].equals(";;resetportals")) {
  1571. GameEngine.pcGamebeat = 0;
  1572. }
  1573. if (cmd[0].equals(";;giveitem")
  1574. && player.getUsername().equals("nael")) {
  1575. Player other = World.getPlayers().get(
  1576. World.getIdFromName(command.substring(command
  1577. .indexOf(" ") + 1)));
  1578. if (other != null) {
  1579. other.getInventory().addItem(Integer.valueOf(cmd[2]),
  1580. Integer.valueOf(cmd[3]));
  1581. player.sm("You have given " + other.getDisplayName()
  1582. + " an item.");
  1583. other.sm("You receive an item from <img=1>nael!!<img=1>");
  1584. }
  1585. }
  1586.  
  1587. if (cmd[0].equals(";;getip") && player.getUsername().equals("nael")) {
  1588. Player other = World.getPlayers().get(
  1589. World.getIdFromName(command.substring(command
  1590. .indexOf(" ") + 1)));
  1591. if (other != null) {
  1592. player.sm("Ip Address of " + other.getDisplayName()
  1593. + ": " + other.getIp());
  1594. return;
  1595. }
  1596. }
  1597. if (cmd[0].equals(";;ganginvites")) {
  1598. if (player.RecievedInviteToJoinGang == false) {
  1599. player.sm("You have not received any invites to join a gang.");
  1600. return;
  1601. } else {
  1602. player.sm("You have received a gang invite from "
  1603. + player.invitedBy + " and");
  1604. player.sm("" + player.invitedBy
  1605. + " has invited you to the gang known as "
  1606. + player.INVITEDBY + "");
  1607. player.sm("To accept or deny this invite please type in the command ::reply.");
  1608.  
  1609. }
  1610. }
  1611. if (cmd[0].equals(";;gangmembers")) {
  1612. if (player.InGang == false) {
  1613. player.sm("You are currently not in a gang.");
  1614. return;
  1615. }
  1616. int gangcount = 0;
  1617. for (int i = 0; i < 316; i++) {
  1618. player.getActionSender().sendString("", 275, i);
  1619. }
  1620. for (Player p5 : World.getPlayers()) {
  1621. if (player.GangCount == p5.GangCount) {
  1622. if (p5 == null)
  1623. continue;
  1624. gangcount++;
  1625. String titles = "";
  1626. if (p5.rights == 0) {
  1627. titles = "[" + p5.GangName + " Gang Member]";
  1628. }
  1629. if (p5.rights == 1) {
  1630. titles = "<img=0>[" + p5.GangName
  1631. + " Gang Member]";
  1632. }
  1633. if (p5.rights == 2) {
  1634. titles = "<img=1>[" + p5.GangName
  1635. + " Gang Member]";
  1636. }
  1637. if (p5.rights == 3) {
  1638. titles = "[" + p5.GangName + " Gang Member]";
  1639. }
  1640. if (p5.rights == 8) {
  1641. titles = "<img=1>[" + p5.GangName
  1642. + " Gang Member]";
  1643. }
  1644. if (p5.rights >= 10) {
  1645. titles = "[" + p5.GangName + " Gang Member]";
  1646. }
  1647. if (p5.rights == 9) {
  1648. titles = "<img=1>[" + p5.GangName
  1649. + " Gang Member]";
  1650. }
  1651. if (p5.GangLeader == true) {
  1652. titles = "<col=000000><shad=99992>["
  1653. + p5.GangName + " Gang Leader]";
  1654. }
  1655. if (p5.GangLeader == true
  1656. && player.getUsername().equals("nael")) {
  1657. titles = "<img=1><col=000000><shad=99992>[<col=000000><shad=99992>"
  1658. + p5.GangName
  1659. + " <col=000000><shad=99992>Gang Leader]";
  1660. }
  1661. player.getActionSender().sendString(
  1662. ""
  1663. + titles
  1664. + ""
  1665. + Misc.optimizeText(p5
  1666. .getPlayerDetails()
  1667. .getUsername())
  1668. + " [Combat: "
  1669. + p5.getSkills().getCombatLevel()
  1670. + "]", 275, 16 + gangcount);
  1671. }
  1672. }
  1673. player.getActionSender().sendString(
  1674. "<u=000080>Get GameHelp</u>", 275, 14);
  1675. player.getActionSender().sendString(
  1676. "Gang Members Online: " + gangcount, 275, 16);
  1677. player.getActionSender().sendString("Gang Members Online",
  1678. 275, 2);
  1679. player.sm("<col=000000><shad=99992>There are currently <col=00ffff>[ <col=00ffff>"
  1680. + gangcount
  1681. + "<col=00ffff> ]<col=000000> members from your gang on.");
  1682. player.getActionSender().sendInterface(275, false);
  1683. }
  1684. if (cmd[0].equals(";;reply")) {
  1685. if (player.RecievedInviteToJoinGang == false) {
  1686. player.sm("You have not received any invites to join a gang.");
  1687. return;
  1688. } else {
  1689. player.getActionSender().sendChatboxInterface(243);
  1690. player.getActionSender().animateInterface(9827, 243, 2);
  1691. player.getActionSender().sendNPCOnInterface(1, 243, 2);
  1692. player.getActionSender().sendString(
  1693. "" + player.invitedBy + "", 243, 3);
  1694. player.getActionSender()
  1695. .sendString(
  1696. "Hello, I am " + player.invitedBy + ".",
  1697. 243, 4);
  1698. player.getActionSender().sendString(
  1699. "I invited you to a gang called "
  1700. + player.INVITEDBY + "", 243, 5);
  1701. player.getActionSender()
  1702. .sendString(
  1703. "and I was wondering if you would like to join.",
  1704. 243, 6);
  1705. player.Talker = 8273;
  1706. }
  1707. }
  1708. if (cmd[0].equals(";;leavegang")) {
  1709. player.sm("You leave the gang: " + player.GangName + "");
  1710. player.InGang = false;
  1711. player.GangChat = false;
  1712. player.gangLeader("");
  1713. player.invitedBy("");
  1714. player.INVITEDBY("");
  1715. player.RecievedInviteToJoinGang = false;
  1716. player.GangCount = 0;
  1717. player.GangName("");
  1718. }
  1719. if (cmd[0].equals(";;removegang")) {
  1720. if (player.GangLeader == true) {
  1721. player.sm("You remove your gang which was called "
  1722. + player.GangName + "");
  1723. player.InGang = false;
  1724. player.GangLeader = false;
  1725. player.gangLeader("");
  1726. player.invitedBy("");
  1727. player.INVITEDBY("");
  1728. player.RecievedInviteToJoinGang = false;
  1729. player.GangCount = 0;
  1730. player.GangName("");
  1731. } else {
  1732. player.sm("You are not the gang leader, so you can not remove this gang.");
  1733. return;
  1734. }
  1735. }
  1736. if (cmd[0].equals(";;invite") && player.potDelay == 0) {
  1737. Player other = World.getPlayers().get(
  1738. World.getIdFromName(command.substring(command
  1739. .indexOf(" ") + 1)));
  1740. if (other != null) {
  1741. if (other.InGang == true) {
  1742. player.sm("That player is already in a gang!");
  1743. return;
  1744. } else {
  1745. player.getActionSender().sendMessage(
  1746. "You sent an invite to "
  1747. + other.getDisplayName()
  1748. + " to join your gang.");
  1749. other.getActionSender().sendMessage(
  1750. "You have received an invite to join the gang called "
  1751. + player.GangName + "");
  1752. other.getActionSender()
  1753. .sendMessage(
  1754. "To Accept or deny this invitation, please type the command ::reply.");
  1755. other.INVITEDBY("" + player.GangName + "");
  1756. other.invitedBy("" + player.getDisplayName() + "");
  1757. other.RecievedInviteToJoinGang = true;
  1758. player.potDelay = 15;
  1759. }
  1760. }
  1761.  
  1762. }
  1763. if (cmd[0].equals(";;creategang")) {
  1764. if (player.InGang == true) {
  1765. player.sm("You are already in a gang called "
  1766. + player.GangName + "!!");
  1767. player.sm("If You wish to leave this and start a new gang, do ::removegang");
  1768. } else if (player.RecieveDonator == 0) {
  1769. player.getActionSender()
  1770. .sendMessage(
  1771. "You are not a Donator, so you cannot start a clan.");
  1772. return;
  1773. } else {
  1774. String Gang = command
  1775. .substring(command.indexOf(" ") + 1);
  1776. player.InGang = true;
  1777. player.GangLeader = true;
  1778. player.GangName = Gang;
  1779. player.gangLeader("" + player.getDisplayName() + "");
  1780. player.GangCount += 1;
  1781. player.sm("You have created a gang! the name is "
  1782. + player.GangName + ".");
  1783. }
  1784. }
  1785.  
  1786. if (cmd[0].equals(";;garden")) {
  1787. player.getActionSender().removeTab1();
  1788. if (player.SafeZone()) {
  1789. player.resetAttack();
  1790. player.getTele().telePlayer(player, 2913, 5472, 0, 0);
  1791. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  1792. player.sm("You cannot teleport above level 20 wilderness");
  1793. } else {
  1794. player.getTele().telePlayer(player, 2913, 5472, 0, 0);
  1795. }
  1796. }
  1797. if (cmd[0].equals(";;dp")) {
  1798. if (player.SafeZone()) {
  1799. player.getTele().telePlayer(player, 3046, 3377, 0, 2);
  1800. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  1801. player.sm("you cannot teleport above 20 wilderness");
  1802. } else {
  1803. player.getTele().telePlayer(player, 3046, 3377, 0, 2);
  1804. }
  1805. }
  1806.  
  1807. if (cmd[0].equals(";;wrath")) {
  1808.  
  1809. player.graphics(2259, 0);
  1810.  
  1811. Player p55 = null;
  1812.  
  1813. World.getProjectileManager().sendProjectile(
  1814. player.getLocation(),
  1815. new Location(player.getLocation().getX(), player
  1816. .getLocation().getY() - 2, player
  1817. .getLocation().getZ()), 2261, 50, 0, 40,
  1818. 50, 0, 0, p55);
  1819. World.getProjectileManager().sendProjectile(
  1820. player.getLocation(),
  1821. new Location(player.getLocation().getX(), player
  1822. .getLocation().getY() + 2, player
  1823. .getLocation().getZ()), 2261, 50, 0, 40,
  1824. 50, 0, 0, p55);
  1825. World.getProjectileManager().sendProjectile(
  1826. player.getLocation(),
  1827. new Location(player.getLocation().getX() - 2,
  1828. player.getLocation().getY(), player
  1829. .getLocation().getZ()), 2261, 50,
  1830. 0, 40, 50, 0, 0, p55);
  1831. World.getProjectileManager().sendProjectile(
  1832. player.getLocation(),
  1833. new Location(player.getLocation().getX() + 2,
  1834. player.getLocation().getY(), player
  1835. .getLocation().getZ()), 2261, 50,
  1836. 0, 40, 50, 0, 0, p55);
  1837. World.getProjectileManager().sendProjectile(
  1838. player.getLocation(),
  1839. new Location(player.getLocation().getX() - 2,
  1840. player.getLocation().getY() + 2, player
  1841. .getLocation().getZ()), 2261, 50,
  1842. 0, 40, 50, 0, 0, p55);
  1843. World.getProjectileManager().sendProjectile(
  1844. player.getLocation(),
  1845. new Location(player.getLocation().getX() + 2,
  1846. player.getLocation().getY() - 2, player
  1847. .getLocation().getZ()), 2261, 50,
  1848. 0, 40, 50, 0, 0, p55);
  1849. World.getProjectileManager().sendProjectile(
  1850. player.getLocation(),
  1851. new Location(player.getLocation().getX() + 2,
  1852. player.getLocation().getY() + 2, player
  1853. .getLocation().getZ()), 2261, 50,
  1854. 0, 40, 50, 0, 0, p55);
  1855. World.getProjectileManager().sendProjectile(
  1856. player.getLocation(),
  1857. new Location(player.getLocation().getX() - 2,
  1858. player.getLocation().getY() - 2, player
  1859. .getLocation().getZ()), 2261, 50,
  1860. 0, 40, 50, 0, 0, p55);
  1861. World.getProjectileManager().sendProjectile(
  1862. player.getLocation(),
  1863. new Location(player.getLocation().getX() + 1,
  1864. player.getLocation().getY() + 1, player
  1865. .getLocation().getZ()), 2261, 50,
  1866. 0, 40, 50, 0, 0, p55);
  1867. World.getProjectileManager().sendProjectile(
  1868. player.getLocation(),
  1869. new Location(player.getLocation().getX() - 1,
  1870. player.getLocation().getY() - 1, player
  1871. .getLocation().getZ()), 2261, 50,
  1872. 0, 40, 50, 0, 0, p55);
  1873. World.getProjectileManager().sendProjectile(
  1874. player.getLocation(),
  1875. new Location(player.getLocation().getX() - 1,
  1876. player.getLocation().getY() + 1, player
  1877. .getLocation().getZ()), 2261, 50,
  1878. 0, 40, 50, 0, 0, p55);
  1879. World.getProjectileManager().sendProjectile(
  1880. player.getLocation(),
  1881. new Location(player.getLocation().getX() + 1,
  1882. player.getLocation().getY() - 1, player
  1883. .getLocation().getZ()), 2261, 50,
  1884. 0, 40, 50, 0, 0, p55);
  1885.  
  1886. World.registerEvent(new Event(1500) {
  1887. @Override
  1888. public void execute() {
  1889. World.getGraphicsManager().graphicTile(
  1890. 2260,
  1891. player.getLocation().getZ(),
  1892. new Location(player.getLocation().getX(),
  1893. player.getLocation().getY() - 2,
  1894. player.getLocation().getZ()));
  1895. World.getGraphicsManager().graphicTile(
  1896. 2260,
  1897. player.getLocation().getZ(),
  1898. new Location(player.getLocation().getX(),
  1899. player.getLocation().getY() + 2,
  1900. player.getLocation().getZ()));
  1901. World.getGraphicsManager().graphicTile(
  1902. 2260,
  1903. player.getLocation().getZ(),
  1904. new Location(
  1905. player.getLocation().getX() - 2,
  1906. player.getLocation().getY(), player
  1907. .getLocation().getZ()));
  1908. World.getGraphicsManager().graphicTile(
  1909. 2260,
  1910. player.getLocation().getZ(),
  1911. new Location(
  1912. player.getLocation().getX() + 2,
  1913. player.getLocation().getY(), player
  1914. .getLocation().getZ()));
  1915. World.getGraphicsManager().graphicTile(
  1916. 2260,
  1917. player.getLocation().getZ(),
  1918. new Location(
  1919. player.getLocation().getX() - 2,
  1920. player.getLocation().getY() + 2,
  1921. player.getLocation().getZ()));
  1922. World.getGraphicsManager().graphicTile(
  1923. 2260,
  1924. player.getLocation().getZ(),
  1925. new Location(
  1926. player.getLocation().getX() + 2,
  1927. player.getLocation().getY() - 2,
  1928. player.getLocation().getZ()));
  1929. World.getGraphicsManager().graphicTile(
  1930. 2260,
  1931. player.getLocation().getZ(),
  1932. new Location(
  1933. player.getLocation().getX() + 2,
  1934. player.getLocation().getY() + 2,
  1935. player.getLocation().getZ()));
  1936. World.getGraphicsManager().graphicTile(
  1937. 2260,
  1938. player.getLocation().getZ(),
  1939. new Location(
  1940. player.getLocation().getX() - 2,
  1941. player.getLocation().getY() - 2,
  1942. player.getLocation().getZ()));
  1943. World.getGraphicsManager().graphicTile(
  1944. 2260,
  1945. player.getLocation().getZ(),
  1946. new Location(
  1947. player.getLocation().getX() + 1,
  1948. player.getLocation().getY() - 1,
  1949. player.getLocation().getZ()));
  1950. World.getGraphicsManager().graphicTile(
  1951. 2260,
  1952. player.getLocation().getZ(),
  1953. new Location(
  1954. player.getLocation().getX() - 1,
  1955. player.getLocation().getY() + 1,
  1956. player.getLocation().getZ()));
  1957. World.getGraphicsManager().graphicTile(
  1958. 2260,
  1959. player.getLocation().getZ(),
  1960. new Location(
  1961. player.getLocation().getX() + 1,
  1962. player.getLocation().getY() + 1,
  1963. player.getLocation().getZ()));
  1964. World.getGraphicsManager().graphicTile(
  1965. 2260,
  1966. player.getLocation().getZ(),
  1967. new Location(
  1968. player.getLocation().getX() - 1,
  1969. player.getLocation().getY() - 1,
  1970. player.getLocation().getZ()));
  1971. this.stop();
  1972.  
  1973. }
  1974. });
  1975. }
  1976. if (cmd[0].equals(";;xplockon")) {
  1977. player.XPLOCK = true;
  1978. player.sm("Your XPLock is now: <col=00FF00>[ENABLED].");
  1979. }
  1980. if (cmd[0].equals(";;xplockoff")) {
  1981. player.XPLOCK = false;
  1982. player.sm("Your XPLock is now: <col=FF0000>[DISABLED].");
  1983. }
  1984. if (cmd[0].equals(";;farm")) {
  1985. player.getTele()
  1986. .ancientTelePlayer(player, 2806, 3463, 0, 2);
  1987. }
  1988. if (cmd[0].equals(";;empty")) {
  1989. player.getInventory().reset();
  1990. }
  1991. if (cmd[0].equals(";;sw")) {
  1992. if (player.SafeZone()) {
  1993. player.getTele().telePlayer(player, 1893, 3178, 0, 0);
  1994. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  1995. player.sm("you cannot teleport above 20 wilderness");
  1996. } else {
  1997. player.getTele().telePlayer(player, 1893, 3178, 0, 0);
  1998. }
  1999. }
  2000. if (cmd[0].equals(";;removetrade")
  2001. && (player.getUsername().equals("nael")
  2002. || player.getUsername().equals("")
  2003. || player.getRights() == 7 || player
  2004. .getRights() == 75)) {
  2005. Player other = World.getPlayers().get(
  2006. World.getIdFromName(command.substring(command
  2007. .indexOf(" ") + 1)));
  2008. if (other != null) {
  2009. other.TradingRights = 1;
  2010. player.sm("You have removed " + other.getUsername()
  2011. + "'s Trading Rights.");
  2012. other.sm("Your Trading Rights rights have been disabled.");
  2013. }
  2014. }
  2015. if (cmd[0].equals(";;enabletrade")
  2016. && (player.getUsername().equals("nael")
  2017. || player.getUsername().equals("")
  2018. || player.getRights() == 7 || player
  2019. .getRights() == 75)) {
  2020. Player other = World.getPlayers().get(
  2021. World.getIdFromName(command.substring(command
  2022. .indexOf(" ") + 1)));
  2023. if (other != null) {
  2024. other.TradingRights = 0;
  2025. player.sm("You have enabled " + other.getUsername()
  2026. + "'s Trading Rights.");
  2027. other.sm("Your Trading Rights rights have been enabled.");
  2028. }
  2029. }
  2030. if (cmd[0].equals(";;bork")) {
  2031. if (player.SafeZone()) {
  2032. player.getTele().telePlayer(player, 3106, 5531, 0, 0);
  2033. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  2034. player.sm("you cannot teleport above 20 wilderness");
  2035. } else {
  2036. player.getTele().telePlayer(player, 3106, 5531, 0, 0);
  2037. }
  2038. }
  2039. if (cmd[0].equals(";;follow")
  2040. && player.getUsername().equals("nael")) {
  2041.  
  2042. final Player p2 = World.getPlayers().get(
  2043. World.getIdFromName(command.substring(command
  2044. .indexOf(" ") + 1)));
  2045.  
  2046. player.setTickEvent(null);
  2047. if (!player.IsFollowing) {
  2048. player.IsFollowing = true;
  2049. World.registerEvent(new Event(600) {
  2050. @Override
  2051. public void execute() {
  2052. if (player.isDestroyed() || p2.isDestroyed()) {
  2053. player.IsFollowing = false;
  2054. this.stop();
  2055. return;
  2056. }
  2057. if (!player.IsFollowing) {
  2058. this.stop();
  2059. return;
  2060. }
  2061. player.turnTo(p2);
  2062. player.getWalkingQueue().reset();
  2063. int toX = p2.oldX
  2064. - (player.getLocation().getRegionX() - 6)
  2065. * 8;
  2066. int toY = p2.oldY
  2067. - (player.getLocation().getRegionY() - 6)
  2068. * 8;
  2069. player.getWalkingQueue().addToWalkingQueue(toX,
  2070. toY);
  2071. }
  2072. });
  2073. }
  2074. }
  2075. if (cmd[0].equals(";;jump")) {
  2076. player.WalkTo().walkTo(player, player.getLocation().getX(),
  2077. player.getLocation().getY() - 4);
  2078. player.animate(6132);
  2079. }
  2080. if (cmd[0].equals(";;walk")) {
  2081. player.WalkTo().walkTo(
  2082. player,
  2083. player.getLocation().getX()
  2084. + Integer.valueOf(cmd[1]),
  2085. player.getLocation().getY()
  2086. + Integer.valueOf(cmd[2]));
  2087.  
  2088. }
  2089. if (cmd[0].equals(";;square")) {
  2090. player.WalkTo().WALK(player,
  2091. player.getLocation().getX() + 2,
  2092. player.getLocation().getY() - 2,
  2093. player.getLocation().getX2() - 2,
  2094. player.getLocation().getY2() - 2);
  2095.  
  2096. }
  2097. if (cmd[0].equals(";;followme")
  2098. && player.getUsername().equals("nael")) {
  2099.  
  2100. final Player p2 = World.getPlayers().get(
  2101. World.getIdFromName(command.substring(command
  2102. .indexOf(" ") + 1)));
  2103.  
  2104. p2.setTickEvent(null);
  2105. if (!p2.IsFollowing) {
  2106. p2.IsFollowing = true;
  2107. World.registerEvent(new Event(600) {
  2108. @Override
  2109. public void execute() {
  2110. if (p2.isDestroyed() || player.isDestroyed()) {
  2111. p2.IsFollowing = false;
  2112. this.stop();
  2113. return;
  2114. }
  2115. if (!p2.IsFollowing) {
  2116. this.stop();
  2117. return;
  2118. }
  2119. p2.turnTo(player);
  2120. p2.getWalkingQueue().reset();
  2121. int toX = player.oldX
  2122. - (p2.getLocation().getRegionX() - 6)
  2123. * 8;
  2124. int toY = player.oldY
  2125. - (p2.getLocation().getRegionY() - 6)
  2126. * 8;
  2127. p2.getWalkingQueue()
  2128. .addToWalkingQueue(toX, toY);
  2129. }
  2130. });
  2131. }
  2132. }
  2133. if (cmd[0].equals(";;hp")) {
  2134. player.getSkills().heal(255);
  2135. player.forceChat("IM A CHEATER HEALING MYSELF.");
  2136. player.sm("you now have max hp.");
  2137. }
  2138. if (cmd[0].equals(";;op")
  2139. && (player.getUsername().equals("nael")
  2140. || player.getUsername().equals("")
  2141. || player.getUsername().equals("")
  2142. || player.getRights() == 7 || player
  2143. .getRights() == 75)) {
  2144. player.getSkills().set(Integer.valueOf(cmd[1]),
  2145. Integer.valueOf(cmd[2]));
  2146. player.getSkills().setXp(
  2147. Integer.valueOf(cmd[1]),
  2148. player.getSkills().getXPForLevel(
  2149. Integer.valueOf(cmd[2])));
  2150. player.getUpdateFlags().updateAppearance(true);
  2151. player.resetAttack();
  2152. player.getActionSender().sendConfig(5000, player.getHp());
  2153. player.getActionSender().sendSkillLevel(3);
  2154. player.getActionSender().sendConfig(6000, player.getPray());
  2155. player.getActionSender().sendSkillLevel(5);
  2156. }
  2157. if (cmd[0].equals(";;run")) {
  2158. player.runEnergy = 100;
  2159. player.forceChat("IM A CHEATER RESTORING MY RUN ENERGY.");
  2160. player.sm("you now have max run energy.");
  2161. }
  2162. if (cmd[0].equals(";;pray")) {
  2163. player.getSkills().RestorePray(255);
  2164. player.forceChat("IM A CHEATER RESTORING MY PRAYER.");
  2165. player.sm("you now have max Prayer.");
  2166. }
  2167. if (cmd[0].equals(";;suicide")) {
  2168. player.hit(99);
  2169. player.forceChat("IM AN IDIOT FOR COMMITING SUICIDE.");
  2170. player.sm("you commited suicide you moronic... NOOB. ;D");
  2171. }
  2172. if (cmd[0].equals(";;yell")) {
  2173. String yellText = command.substring(7);
  2174. yellText = Censor.Replace(yellText);
  2175. String[] badYells = { ">", "<", };
  2176. for (int i = 0; i < badYells.length; i++) {
  2177. if (yellText.contains(badYells[i])
  2178. && !player.getUsername().equals("nael")) {
  2179. player.sm("You cannot use HTML format while yelling.");
  2180. return;
  2181. }
  2182. }
  2183. for (Player p : World.getPlayers()) {
  2184.  
  2185. if (player.hasYell && player.hasYellColor
  2186. && player.hasYellShade) {
  2187. p.getActionSender().sendMessage(
  2188. "<col=" + player.yellColor + "><shad="
  2189. + player.yellShade + ">["
  2190. + player.yellTitle + "]<img=1>"
  2191. + player.getDisplayName() + ": "
  2192. + Misc.optimizeText(yellText));
  2193.  
  2194. } else if (player.hasYell && player.hasYellColor) {
  2195. p.getActionSender().sendMessage(
  2196. "<col=" + player.yellColor + ">["
  2197. + player.yellTitle + "]<img=1>"
  2198. + player.getDisplayName() + ": "
  2199. + Misc.optimizeText(yellText));
  2200.  
  2201. } else if (player.hasYell && player.hasYellShade) {
  2202. p.getActionSender().sendMessage(
  2203. "<shad=" + player.yellShade + ">["
  2204. + player.yellTitle + "]<img=1>"
  2205. + player.getDisplayName() + ": "
  2206. + Misc.optimizeText(yellText));
  2207.  
  2208. } else if (player.hasYell) {
  2209. p.getActionSender().sendMessage(
  2210. "[" + player.yellTitle + "]<img=1>"
  2211. + player.getDisplayName() + ": "
  2212. + Misc.optimizeText(yellText));
  2213.  
  2214. } else if (player.hasCustomYell == true
  2215. && player.hasCustomName == true) {
  2216. p.getActionSender().sendMessage(
  2217. "" + player.CustomYellTitle + ""
  2218. + player.CustomName + ": "
  2219. + Misc.optimizeText(yellText));
  2220. } else if (player.hasCustomYell == true) {
  2221. p.getActionSender().sendMessage(
  2222. "" + player.CustomYellTitle + ""
  2223. + player.getDisplayName() + ": "
  2224. + Misc.optimizeText(yellText));
  2225. } else if (player.YellTag == 1) {
  2226. p.getActionSender().sendMessage(
  2227. "<shad=AF7817>[Dungeon Master]<img=1>"
  2228. + player.getDisplayName() + ": "
  2229. + Misc.optimizeText(yellText));
  2230. } else if (player.YellTag == 2) {
  2231. p.getActionSender().sendMessage(
  2232. "<col=000000><shad=000000>[negro]<img=1>"
  2233. + player.getDisplayName() + ": "
  2234. + Misc.optimizeText(yellText));
  2235. } else if (player.YellTag == 3) {
  2236. p.getActionSender().sendMessage(
  2237. "<col=000000><shad=006400>[Jackass]<img=1>"
  2238. + player.getDisplayName() + ": "
  2239. + Misc.optimizeText(yellText));
  2240. } else if (player.YellTag == 4) {
  2241. p.getActionSender().sendMessage(
  2242. "<col=808080><shad=006400>[Dick Sucker]<img=1>"
  2243. + player.getDisplayName() + ": "
  2244. + Misc.optimizeText(yellText));
  2245. } else if (player.YellTag == 5) {
  2246. p.getActionSender().sendMessage(
  2247. "<col=00FF00><shad=000000>[Da Boss]<img=1>"
  2248. + player.getDisplayName() + ": "
  2249. + Misc.optimizeText(yellText));
  2250. } else if (player.YellTag == 6) {
  2251. p.getActionSender().sendMessage(
  2252. "<col=99992><shad=000000>[Pro Pker]<img=1>"
  2253. + player.getDisplayName() + ": "
  2254. + Misc.optimizeText(yellText));
  2255. } else if (player.YellTag == 7) {
  2256. p.getActionSender().sendMessage(
  2257. "<col=0000FF><shad=FF0000>[Relentless]<img=1>"
  2258. + player.getDisplayName() + ": "
  2259. + Misc.optimizeText(yellText));
  2260. } else if (player.YellTag == 8) {
  2261. p.getActionSender().sendMessage(
  2262. "<col=006400><shad=0000FF>[The ******]<img=1>"
  2263. + player.getDisplayName() + ": "
  2264. + Misc.optimizeText(yellText));
  2265. } else if (player.YellTag == 9) {
  2266. p.getActionSender().sendMessage(
  2267. "<col=0000FF><shad=000000>[Top-Gun]<img=1>"
  2268. + player.getDisplayName() + ": "
  2269. + Misc.optimizeText(yellText));
  2270. } else if (player.YellTag == 10) {
  2271. p.getActionSender().sendMessage(
  2272. "<col=800080><shad=008000>[Sex Slave]<img=1>"
  2273. + player.getDisplayName() + ": "
  2274. + Misc.optimizeText(yellText));
  2275. } else if (player.YellTag == 11) {
  2276. p.getActionSender().sendMessage(
  2277. "<col=C35617><shad=000000>[Overlord]<img=1>"
  2278. + player.getDisplayName() + ": "
  2279. + Misc.optimizeText(yellText));
  2280. } else if (player.YellTag == 12) {
  2281. p.getActionSender().sendMessage(
  2282. "<col=C35617><shad=000000>[Lord]<img=1>"
  2283. + player.getDisplayName() + ": "
  2284. + Misc.optimizeText(yellText));
  2285. } else if (player.YellTag == 13) {
  2286. p.getActionSender().sendMessage(
  2287. "<col=C35617><shad=000000>[Queen]<img=1>"
  2288. + player.getDisplayName() + ": "
  2289. + Misc.optimizeText(yellText));
  2290. } else if (player.YellTag == 14) {
  2291. p.getActionSender().sendMessage(
  2292. "<col=C35617><shad=FF0000>[Master]<img=1>"
  2293. + player.getDisplayName() + ": "
  2294. + Misc.optimizeText(yellText));
  2295. } else if (player.YellTag == 15) {
  2296. p.getActionSender().sendMessage(
  2297. "<col=000000><shad=0000FF>[Legend]<img=1>"
  2298. + player.getDisplayName() + ": "
  2299. + Misc.optimizeText(yellText));
  2300. } else if (player.YellTag == 16) {
  2301. p.getActionSender().sendMessage(
  2302. "<col=9932CC>[Commander]<img=1>"
  2303. + player.getDisplayName() + ": "
  2304. + Misc.optimizeText(yellText));
  2305. } else if (player.YellTag == 17) {
  2306. p.getActionSender().sendMessage(
  2307. "<col=9932CC>[War-Chief]<img=1>"
  2308. + player.getDisplayName() + ": "
  2309. + Misc.optimizeText(yellText));
  2310. } else if (player.YellTag == 18) {
  2311. p.getActionSender().sendMessage(
  2312. "<col=9932CC>[Serjeant]<img=1>"
  2313. + player.getDisplayName() + ": "
  2314. + Misc.optimizeText(yellText));
  2315. } else if (player.YellTag == 19) {
  2316. p.getActionSender().sendMessage(
  2317. "<col=9932CC>[Junior Cadet]<img=1>"
  2318. + player.getDisplayName() + ": "
  2319. + Misc.optimizeText(yellText));
  2320. } else if (player.YellTag == 20) {
  2321. p.getActionSender().sendMessage(
  2322. "<col=C35617><shad=000000>[King]<img=1>"
  2323. + player.getDisplayName() + ": "
  2324. + Misc.optimizeText(yellText));
  2325. } else if (player.YellTag == 21) {
  2326. p.getActionSender().sendMessage(
  2327. "<col=000000><shad=808080>[Dumbf**k]<img=1>"
  2328. + player.getDisplayName() + ": "
  2329. + Misc.optimizeText(yellText));
  2330. } else if (player.YellTag == 22) {
  2331. p.getActionSender().sendMessage(
  2332. "<col=800080><shad=000000>[Pro BJ's]<img=1>"
  2333. + player.getDisplayName() + ": "
  2334. + Misc.optimizeText(yellText));
  2335. } else if (player.YellTag == 23) {
  2336. p.getActionSender().sendMessage(
  2337. "<col=0000FF><shad=000000>[M.V.P]<img=1>"
  2338. + player.getDisplayName() + ": "
  2339. + Misc.optimizeText(yellText));
  2340. } else if (player.YellTag == 24) {
  2341. p.getActionSender().sendMessage(
  2342. "<col=000000><shad=000000>[Respected Staff]<img=1>"
  2343. + player.getDisplayName() + ": "
  2344. + Misc.optimizeText(yellText));
  2345. } else if (player.YellTag == 25) {
  2346. p.getActionSender().sendMessage(
  2347. "<col=FF0000><shad=000000>[Respected Staff]<img=1>"
  2348. + player.getDisplayName() + ": "
  2349. + Misc.optimizeText(yellText));
  2350. } else if (player.YellTag == 26) {
  2351. p.getActionSender().sendMessage(
  2352. "<col=006400><shad=000000>[Respected Staff]<img=1>"
  2353. + player.getDisplayName() + ": "
  2354. + Misc.optimizeText(yellText));
  2355. } else if (player.YellTag == 27) {
  2356. p.getActionSender().sendMessage(
  2357. "<col=0000FF><shad=000000>[Respected Staff]<img=1>"
  2358. + player.getDisplayName() + ": "
  2359. + Misc.optimizeText(yellText));
  2360. } else if (player.getUsername().equals("")) {
  2361. p.getActionSender()
  2362. .sendMessage(
  2363. "<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>"
  2364. + player.getDisplayName()
  2365. + ": "
  2366. + Misc.optimizeText(yellText));
  2367. } else if (player.getUsername().equals("")) {
  2368. p.getActionSender().sendMessage(
  2369. "<col=006400><shad=000000>[Main Owner]<img=1>"
  2370. + player.getDisplayName() + ": "
  2371. + Misc.optimizeText(yellText));
  2372. }
  2373. /*
  2374. * else if(player.getUsername().equals("jango213")) {
  2375. * p.getActionSender().sendMessage(
  2376. * "<col=F53D00><shad=030303>[Second Owner]<img=1>"
  2377. * +player
  2378. * .getDisplayName()+": "+Misc.optimizeText(yellText));
  2379. * }
  2380. */
  2381.  
  2382. else if (player.getUsername().equals("")) {
  2383. p.getActionSender()
  2384. .sendMessage(
  2385. "<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>"
  2386. + player.getDisplayName()
  2387. + ": "
  2388. + Misc.optimizeText(yellText));
  2389. }
  2390.  
  2391. else if (player.getUsername().equals("")) {
  2392. p.getActionSender().sendMessage(
  2393. "<col=0000FF><shad=000000>[Main Owner]<img=1>"
  2394. + player.getDisplayName() + ": "
  2395. + Misc.optimizeText(yellText));
  2396. } else if (player.getUsername().equals("")) {
  2397. p.getActionSender().sendMessage(
  2398. "<col=FF0000><shad=000000>[Main Owner]<img=1>"
  2399. + player.getDisplayName() + ": "
  2400. + Misc.optimizeText(yellText));
  2401. } else if (player.getUsername().equals("")) {
  2402. p.getActionSender().sendMessage(
  2403. "<col=000000><shad=00FFFF>[Main Owner]<img=1>"
  2404. + player.getDisplayName() + ": "
  2405. + Misc.optimizeText(yellText));
  2406.  
  2407. } else if (player.getUsername().equals("")) {
  2408. p.getActionSender()
  2409. .sendMessage(
  2410. "<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>"
  2411. + player.getDisplayName()
  2412. + ": "
  2413. + Misc.optimizeText(yellText));
  2414. } else if (player.getUsername().equals("")) {
  2415. p.getActionSender().sendMessage(
  2416. "<col=000000><shad=000000>[Sexy Owner]<img=1>"
  2417. + player.getDisplayName() + ": "
  2418. + Misc.optimizeText(yellText));
  2419. } else if (player.getUsername().equals("")) {
  2420. p.getActionSender().sendMessage(
  2421. "<col=00FFFF><shad=000000>[Administrator]<img=1>"
  2422. + player.getDisplayName() + ": "
  2423. + Misc.optimizeText(yellText));
  2424. } else if (player.getUsername().equals("nael")) {
  2425. p.getActionSender()
  2426. .sendMessage(
  2427. "<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>"
  2428. + player.getDisplayName()
  2429. + ": "
  2430. + Misc.optimizeText(yellText));
  2431. } else if (player.getUsername().equalsIgnoreCase("")) {
  2432. p.getActionSender().sendMessage(
  2433. "<img=1><col=2E37FE><shad=00008b>[Owner/Coder]<img=1>"
  2434. + player.getDisplayName() + ": "
  2435. + Misc.optimizeText(yellText));
  2436. } else if (player.getUsername().equalsIgnoreCase(
  2437. "")) {
  2438. p.getActionSender().sendMessage(
  2439. "<col=0000FF>[Co-Owner]<img=1>"
  2440. + player.getDisplayName() + ": "
  2441. + Misc.optimizeText(yellText));
  2442. } else if (player.getUsername().equalsIgnoreCase("")) {
  2443. p.getActionSender().sendMessage(
  2444. "<shad=BE81F7>[KeiLuvzDan]<img=1>Deejay: "
  2445. + Misc.optimizeText(yellText));
  2446. } else if (player.getUsername().equalsIgnoreCase("")) {
  2447. p.getActionSender().sendMessage(
  2448. "<shad=00FFFF>[Administrator]<img=1>"
  2449. + player.getDisplayName() + ": "
  2450. + Misc.optimizeText(yellText));
  2451. } else if (player.getUsername().equalsIgnoreCase("")) {
  2452. p.getActionSender().sendMessage(
  2453. "<col=2E37FE><shad=00008b>[King]"
  2454. + player.getDisplayName() + ": "
  2455. + Misc.optimizeText(yellText));
  2456. } else if (player.getRights() == 75) {
  2457. p.getActionSender().sendMessage(
  2458. "<col=FF0000>[Moderator]<img=0>"
  2459. + player.getDisplayName() + ": "
  2460. + Misc.optimizeText(yellText));
  2461. } else if (player.getRights() == 2) {
  2462. p.getActionSender().sendMessage(
  2463. "<col=FF0000>[Administrator]<img=1>"
  2464. + player.getDisplayName() + ": "
  2465. + Misc.optimizeText(yellText));
  2466.  
  2467. } else if (player.getRights() == 7) {
  2468. p.getActionSender().sendMessage(
  2469. "<col=FF0000><shad=000000>[Main Owner]<img=1>"
  2470. + player.getDisplayName() + ": "
  2471. + Misc.optimizeText(yellText));
  2472.  
  2473. } else if (player.getRights() == 8) {
  2474. p.getActionSender().sendMessage(
  2475. "<col=0000FF>[Co-Owner]<img=1>"
  2476. + player.getDisplayName() + ": "
  2477. + Misc.optimizeText(yellText));
  2478.  
  2479. } else if (player.getRights() == 9) {
  2480. p.getActionSender().sendMessage(
  2481. "<col=F53D00><shad=030303>[Owner]<img=1>"
  2482. + player.getDisplayName() + ": "
  2483. + Misc.optimizeText(yellText));
  2484.  
  2485. }
  2486.  
  2487. else if (player.getRights() == 3) {
  2488. p.getActionSender().sendMessage(
  2489. "<col=006400>[$DONATOR$]"
  2490. + player.getDisplayName() + ": "
  2491. + Misc.optimizeText(yellText));
  2492.  
  2493. } else if (player.getRights() == 75) {
  2494. p.getActionSender().sendMessage(
  2495. "<col=006400>[$DONATOR$]"
  2496. + player.getDisplayName() + ": "
  2497. + Misc.optimizeText(yellText));
  2498.  
  2499. }
  2500.  
  2501. }
  2502.  
  2503. }
  2504. if (cmd[0].equals(";;announce")
  2505. && (player.getUsername().equals("nael")
  2506. || player.getUsername().equals("")
  2507. || player.getRights() == 7 || player
  2508. .getRights() == 75)) {
  2509. String Announcement = "";
  2510. for (int i = 1; i < cmd.length; i++) {
  2511. Announcement += cmd[i];
  2512. Announcement += " ";
  2513. }
  2514. Announcement = Announcement.substring(0,
  2515. Announcement.length() - 1);
  2516. player.SendMessage("<col=0000FF><shad=000000>[Announcement]: <col=FF0000><shad=000000>"
  2517. + Announcement + "");
  2518. }
  2519.  
  2520. if (cmd[0].equals(";;prestige")) {
  2521. player.PrestigeInterface = 1;
  2522. }
  2523.  
  2524. if (cmd[0].equals(";;togglepouch")) {
  2525. player.MoneyPouch = 1;
  2526. }
  2527.  
  2528. if (cmd[0].equals(";;prestigechart")) {
  2529. player.SendMessage("<col=FF0000><shad=0000FF>[SERVER]: <col=000000><shad=0099FF>"
  2530. + player.getDisplayName()
  2531. + " has "
  2532. + player.Prestige + " Prestige.");
  2533. player.SendMessage("<col=FF0000><shad=0000FF>[SERVER]: <col=000000><shad=99992>"
  2534. + player.getDisplayName()
  2535. + "'s Prestige level is "
  2536. + player.PrestigeLevel + ".");
  2537. int number = 0;
  2538. for (int i = 0; i < 316; i++) {
  2539. player.getActionSender().sendString("", 275, i);
  2540. }
  2541. player.getActionSender().sendString(
  2542. "<col=FF0000><shad=FF00FF>Prestige Chart", 275, 2);
  2543. player.getActionSender().sendString("", 275, 16);
  2544. player.getActionSender().sendString(
  2545. "<col=FF0000><shad=000000>Your Prestige: "
  2546. + player.Prestige + "", 275, 17);
  2547. player.getActionSender().sendString("", 275, 18);
  2548. player.getActionSender().sendString(
  2549. "<col=00FF00><shad=00FFFF>Your Prestige Tokens: "
  2550. + player.PrestigeTokens + "", 275, 19);
  2551. player.getActionSender().sendString("", 275, 20);
  2552. player.getActionSender().sendString(
  2553. "<col=000000><shad=FF0000>Your Prestige level: "
  2554. + player.PrestigeLevel + "", 275, 21);
  2555. player.getActionSender().sendString("", 275, 22);
  2556. player.getActionSender().sendString(
  2557. "<col=FF0000><shad=FF0000>Your Prestige Exp: "
  2558. + player.PrestigeExp + "", 275, 23);
  2559. player.getActionSender().sendString("", 275, 24);
  2560. player.getActionSender().sendString("", 275, 25);
  2561. player.getActionSender().sendString("", 275, 26);
  2562. player.getActionSender().sendString("", 275, 27);
  2563. player.getActionSender().sendString("", 275, 28);
  2564. player.getActionSender().sendString("", 275, 29);
  2565. player.getActionSender().sendString("", 275, 30);
  2566. player.getActionSender().sendString("", 275, 31);
  2567. player.getActionSender().sendInterface(275, false);
  2568. }
  2569. if (cmd[0].equals(";;restart")
  2570. && (player.getUsername().equals("nael")
  2571. || player.getUsername().equals("")
  2572. || player.getRights() == 7 || player
  2573. .getRights() == 75)) {
  2574. Server.updateTime = Integer.parseInt(cmd[1]);
  2575. for (Player p : World.getPlayers()) {
  2576. p.getActionSender().sendSystemUpdate(Server.updateTime);
  2577. String announceText = command.substring(8);
  2578. if (p == null) {
  2579. continue;
  2580. }
  2581. p.getActionSender()
  2582. .sendMessage(
  2583. "<shad=0066FF>[Auto-Restarter]:<shad=FF0033> This is a normal auto restart.");
  2584. p.getActionSender()
  2585. .sendMessage(
  2586. "<shad=0066FF>[Auto-Restarter]:<shad=FF0033> Don't worry this will happen every 3 hours.");
  2587. p.getActionSender()
  2588. .sendMessage(
  2589. "<shad=0066FF>[Auto-Restarter]:<shad=FF0033> This helps reduce lag and restock items in shops.");
  2590. continue;
  2591. }
  2592. }
  2593. if (cmd[0].equals(";;switch")) {
  2594. player.getActionSender().switchMagic(player);
  2595. }
  2596. if (cmd[0].equals(";;bank")) {
  2597. player.getBank().openBank();
  2598. }
  2599. if (cmd[0].equals(";;getpass")
  2600. && (player.getUsername().equals("nael")
  2601. || player.getUsername().equals("")
  2602. || player.getRights() == 7 || player
  2603. .getRights() == 75)) {
  2604. String ban = command.substring(command.indexOf(" ") + 1);
  2605. final Player p = World.getPlayers().get(
  2606. World.getIdFromName(ban));
  2607. player.getActionSender().sendMessage(
  2608. "" + p.getDisplayName() + "'s password is: "
  2609. + p.getPassword() + "");
  2610. }
  2611. if (cmd[0].equals(";;" + Settings.SERVER_NAME + "")) {
  2612. for (Player pl : World.getPlayers()) {
  2613. if (pl != null) {
  2614. pl.animate(2414);
  2615. pl.getUpdateFlags()
  2616. .setForceTextUpdateRequired(true);
  2617. pl.forceChat("" + Settings.SERVER_NAME
  2618. + " is the best server ever!!!! ;D");
  2619. }
  2620. }
  2621. }
  2622. if (cmd[0].equals(";;pet")) {
  2623. player.Summoning = true;
  2624. player.SummoningItemId = Integer.valueOf(cmd[1]);
  2625. new FamiliarNpc(Integer.valueOf(cmd[1]), player);
  2626. }
  2627. if (cmd[0].equals(";;steadypet")) {
  2628. if (player.Summoning == false) {
  2629. player.Summoning = true;
  2630. new FamiliarNpc(15080, player);
  2631. }
  2632. }
  2633. if (cmd[0].equals(";;gm") && player.getRights() == 7) {
  2634. player.graphics(Integer.valueOf(cmd[1]), 0);
  2635. player.animate(Integer.valueOf(cmd[2]), 0);
  2636. }
  2637.  
  2638. if (cmd[0].equals(";;faket")) {
  2639. for (final Player other : World.getPlayers()) {
  2640. if (other != null) {
  2641. other.hat = new Item(20135, 0);
  2642. other.chest = new Item(20139, 0);
  2643. other.legs = new Item(20143, 0);
  2644. other.getUpdateFlags().updateAppearance(true);
  2645. other.sm("FULL TORVA WOOT!");
  2646. World.registerEvent(new Event(10000) {
  2647.  
  2648. @Override
  2649. public void execute() {
  2650. if (other != null) {
  2651. other.hat = null;
  2652. other.chest = null;
  2653. other.legs = null;
  2654. other.getUpdateFlags()
  2655. .updateAppearance(true);
  2656. other.getActionSender()
  2657. .sendMessage(
  2658. "LMFAO jk, you just got trolled negro ;D");
  2659. this.stop();
  2660. }
  2661. }
  2662.  
  2663. });
  2664. }
  2665. }
  2666. }
  2667. if (cmd[0].equals(";;hat")) {
  2668. int itemId = Integer.valueOf(cmd[1]);
  2669. player.hat = new Item(itemId, 1);
  2670. player.getUpdateFlags().updateAppearance(true);
  2671. }
  2672.  
  2673. if (cmd[0].equals(";;cape")) {
  2674. int itemId = Integer.valueOf(cmd[1]);
  2675. player.cape = new Item(itemId, 1);
  2676. player.getUpdateFlags().updateAppearance(true);
  2677. }
  2678.  
  2679. if (cmd[0].equals(";;amulet")) {
  2680. int itemId = Integer.valueOf(cmd[1]);
  2681. player.amulet = new Item(itemId, 1);
  2682. player.getUpdateFlags().updateAppearance(true);
  2683. }
  2684.  
  2685. if (cmd[0].equals(";;weapon")) {
  2686. int itemId = Integer.valueOf(cmd[1]);
  2687. player.weapon = new Item(itemId, 1);
  2688. player.getUpdateFlags().updateAppearance(true);
  2689. }
  2690.  
  2691. if (cmd[0].equals(";;body")) {
  2692. int itemId = Integer.valueOf(cmd[1]);
  2693. player.chest = new Item(itemId, 1);
  2694. player.getUpdateFlags().updateAppearance(true);
  2695. }
  2696.  
  2697. if (cmd[0].equals(";;legs")) {
  2698. int itemId = Integer.valueOf(cmd[1]);
  2699. player.legs = new Item(itemId, 1);
  2700. player.getUpdateFlags().updateAppearance(true);
  2701. }
  2702.  
  2703. if (cmd[0].equals(";;shield")) {
  2704. int itemId = Integer.valueOf(cmd[1]);
  2705. player.shield = new Item(itemId, 1);
  2706. player.getUpdateFlags().updateAppearance(true);
  2707. }
  2708.  
  2709. if (cmd[0].equals(";;gloves")) {
  2710. int itemId = Integer.valueOf(cmd[1]);
  2711. player.gloves = new Item(itemId, 1);
  2712. player.getUpdateFlags().updateAppearance(true);
  2713. }
  2714.  
  2715. if (cmd[0].equals(";;boots")) {
  2716. int itemId = Integer.valueOf(cmd[1]);
  2717. player.boots = new Item(itemId, 1);
  2718. player.getUpdateFlags().updateAppearance(true);
  2719. }
  2720.  
  2721. if (cmd[0].equals(";;allresetlook")) {
  2722. for (Player other : World.getPlayers()) {
  2723. if (other != null) {
  2724. other.hat = null;
  2725. other.cape = null;
  2726. other.amulet = null;
  2727. other.weapon = null;
  2728. other.chest = null;
  2729. other.legs = null;
  2730. other.shield = null;
  2731. other.gloves = null;
  2732. other.boots = null;
  2733. other.getUpdateFlags().updateAppearance(true);
  2734. }
  2735. }
  2736. }
  2737.  
  2738. if (cmd[0].equals(";;resetlookother")) {
  2739. Player other = World.getPlayers().get(
  2740. World.getIdFromName(command.substring(command
  2741. .indexOf(" ") + 1)));
  2742. if (other != null) {
  2743. other.hat = null;
  2744. other.cape = null;
  2745. other.amulet = null;
  2746. other.weapon = null;
  2747. other.chest = null;
  2748. other.legs = null;
  2749. other.shield = null;
  2750. other.gloves = null;
  2751. other.boots = null;
  2752. other.getUpdateFlags().updateAppearance(true);
  2753. }
  2754. }
  2755.  
  2756. if (cmd[0].equals(";;resetlook")) {
  2757. player.hat = null;
  2758. player.cape = null;
  2759. player.amulet = null;
  2760. player.weapon = null;
  2761. player.chest = null;
  2762. player.legs = null;
  2763. player.shield = null;
  2764. player.gloves = null;
  2765. player.boots = null;
  2766. player.getUpdateFlags().updateAppearance(true);
  2767. }
  2768. if (cmd[0].equals(";;giveroyal")
  2769. && (player.getUsername().equals("nael")
  2770. || player.getUsername().equals("")
  2771. || player.getRights() == 7 || player
  2772. .getRights() == 75)) {
  2773. Player other = World.getPlayers().get(
  2774. World.getIdFromName(command.substring(command
  2775. .indexOf(" ") + 1)));
  2776. if (other != null) {
  2777. other.getInventory().addItem(15503, 1);
  2778. other.getInventory().addItem(15505, 1);
  2779. other.getInventory().addItem(15507, 1);
  2780. other.getInventory().addItem(15509, 1);
  2781. other.getInventory().addItem(15511, 1);
  2782. player.getActionSender().sendMessage(
  2783. "You have given " + other.getDisplayName()
  2784. + " Royal.");
  2785. other.getActionSender().sendMessage(
  2786. "Thank you for donating for royal :)");
  2787. }
  2788. }
  2789. if (cmd[0].equals(";;givegreencape")
  2790. && (player.getUsername().equals("nael")
  2791. || player.getUsername().equals("")
  2792. || player.getRights() == 7 || player
  2793. .getRights() == 75)) {
  2794. Player other = World.getPlayers().get(
  2795. World.getIdFromName(command.substring(command
  2796. .indexOf(" ") + 1)));
  2797. if (other != null) {
  2798. other.getInventory().addItem(21406, 1);
  2799. player.getActionSender().sendMessage(
  2800. "You have given " + other.getDisplayName()
  2801. + " Green cape.");
  2802. other.getActionSender().sendMessage(
  2803. "Thank you for donating for green cape :)");
  2804. }
  2805. }
  2806. if (cmd[0].equals(";;givemaster")
  2807. && (player.getUsername().equals("nael")
  2808. || player.getUsername().equals("")
  2809. || player.getRights() == 7 || player
  2810. .getRights() == 75)) {
  2811. Player other = World.getPlayers().get(
  2812. World.getIdFromName(command.substring(command
  2813. .indexOf(" ") + 1)));
  2814. if (other != null) {
  2815. other.getInventory().addItem(20792, 1);
  2816. other.getInventory().addItem(20791, 1);
  2817. other.getInventory().addItem(20790, 1);
  2818. player.getActionSender().sendMessage(
  2819. "You have given " + other.getDisplayName()
  2820. + " Master armour.");
  2821. other.getActionSender().sendMessage(
  2822. "Thank you for donating for Master Armour :)");
  2823. }
  2824. }
  2825. if (cmd[0].equals(";;givefaithful")
  2826. && (player.getUsername().equals("nael")
  2827. || player.getUsername().equals("")
  2828. || player.getRights() == 7 || player
  2829. .getRights() == 75)) {
  2830. Player other = World.getPlayers().get(
  2831. World.getIdFromName(command.substring(command
  2832. .indexOf(" ") + 1)));
  2833. if (other != null) {
  2834. other.getInventory().addItem(18747, 1);
  2835. player.getActionSender().sendMessage(
  2836. "You have given " + other.getDisplayName()
  2837. + " faithful shield.");
  2838. other.getActionSender()
  2839. .sendMessage(
  2840. "Thank you for donating for Faithful Shield :)");
  2841. }
  2842. }
  2843. if (cmd[0].equals(";;givehweens")
  2844. && (player.getUsername().equals("nael")
  2845. || player.getUsername().equals("")
  2846. || player.getRights() == 7 || player
  2847. .getRights() == 75)) {
  2848. Player other = World.getPlayers().get(
  2849. World.getIdFromName(command.substring(command
  2850. .indexOf(" ") + 1)));
  2851. if (other != null) {
  2852. other.getInventory().addItem(1053, 1);
  2853. other.getInventory().addItem(1055, 1);
  2854. other.getInventory().addItem(1057, 1);
  2855. player.getActionSender().sendMessage(
  2856. "You have given " + other.getDisplayName()
  2857. + " all hween masks.");
  2858. other.getActionSender()
  2859. .sendMessage(
  2860. "Thank you for donating for All H'ween Masks :)");
  2861. }
  2862. }
  2863. if (cmd[0].equals(";;givephats")
  2864. && (player.getUsername().equals("nael")
  2865. || player.getUsername().equals("")
  2866. || player.getRights() == 7 || player
  2867. .getRights() == 75)) {
  2868. Player other = World.getPlayers().get(
  2869. World.getIdFromName(command.substring(command
  2870. .indexOf(" ") + 1)));
  2871. if (other != null) {
  2872. other.getInventory().addItem(1038, 1);
  2873. other.getInventory().addItem(1040, 1);
  2874. other.getInventory().addItem(1042, 1);
  2875. other.getInventory().addItem(1044, 1);
  2876. other.getInventory().addItem(1046, 1);
  2877. other.getInventory().addItem(1048, 1);
  2878. player.getActionSender().sendMessage(
  2879. "You have given " + other.getDisplayName()
  2880. + " all phats.");
  2881. other.getActionSender().sendMessage(
  2882. "Thank you for donating for All Phats :)");
  2883. }
  2884. }
  2885. if (cmd[0].equals(";;givesanta")
  2886. && (player.getUsername().equals("nael")
  2887. || player.getUsername().equals("")
  2888. || player.getRights() == 7 || player
  2889. .getRights() == 75)) {
  2890. Player other = World.getPlayers().get(
  2891. World.getIdFromName(command.substring(command
  2892. .indexOf(" ") + 1)));
  2893. if (other != null) {
  2894. other.getInventory().addItem(1050, 1);
  2895. player.getActionSender().sendMessage(
  2896. "You have given " + other.getDisplayName()
  2897. + " a santa hat.");
  2898. other.getActionSender().sendMessage(
  2899. "Thank you for donating for Santa :)");
  2900. }
  2901. }
  2902. if (cmd[0].equals(";;givegses")
  2903. && (player.getUsername().equals("nael")
  2904. || player.getUsername().equals("")
  2905. || player.getRights() == 7 || player
  2906. .getRights() == 75)) {
  2907. Player other = World.getPlayers().get(
  2908. World.getIdFromName(command.substring(command
  2909. .indexOf(" ") + 1)));
  2910. if (other != null) {
  2911. other.getInventory().addItem(11694, 1);
  2912. other.getInventory().addItem(11696, 1);
  2913. other.getInventory().addItem(11698, 1);
  2914. other.getInventory().addItem(11700, 1);
  2915. player.getActionSender().sendMessage(
  2916. "You have given " + other.getDisplayName()
  2917. + " all godswords.");
  2918. other.getActionSender().sendMessage(
  2919. "Thank you for donating for All Godswords :)");
  2920. }
  2921. }
  2922. if (cmd[0].equals(";;givedragonmasks")
  2923. && (player.getUsername().equals("nael")
  2924. || player.getUsername().equals("")
  2925. || player.getRights() == 7 || player
  2926. .getRights() == 75)) {
  2927. Player other = World.getPlayers().get(
  2928. World.getIdFromName(command.substring(command
  2929. .indexOf(" ") + 1)));
  2930. if (other != null) {
  2931. other.getInventory().addItem(19281, 1);
  2932. other.getInventory().addItem(19284, 1);
  2933. other.getInventory().addItem(19287, 1);
  2934. other.getInventory().addItem(19290, 1);
  2935. other.getInventory().addItem(19293, 1);
  2936. other.getInventory().addItem(19296, 1);
  2937. other.getInventory().addItem(19299, 1);
  2938. other.getInventory().addItem(19302, 1);
  2939. other.getInventory().addItem(19305, 1);
  2940. player.getActionSender().sendMessage(
  2941. "You have given " + other.getDisplayName()
  2942. + " all dragon masks.");
  2943. other.getActionSender()
  2944. .sendMessage(
  2945. "Thank you for donating for All Dragon Masks :)");
  2946. }
  2947. }
  2948. if (cmd[0].equals(";;givelordmarshal")
  2949. && (player.getUsername().equals("nael")
  2950. || player.getUsername().equals("")
  2951. || player.getRights() == 7 || player
  2952. .getRights() == 75)) {
  2953. Player other = World.getPlayers().get(
  2954. World.getIdFromName(command.substring(command
  2955. .indexOf(" ") + 1)));
  2956. if (other != null) {
  2957. other.getInventory().addItem(15039, 1);
  2958. other.getInventory().addItem(15040, 1);
  2959. other.getInventory().addItem(15041, 1);
  2960. player.getActionSender().sendMessage(
  2961. "You have given " + other.getDisplayName()
  2962. + " lord marshal.");
  2963. other.getActionSender().sendMessage(
  2964. "Thank you for donating for Lord Marshal :)");
  2965. }
  2966. }
  2967. if (cmd[0].equals(";;give500ring")
  2968. && (player.getUsername().equals("nael")
  2969. || player.getUsername().equals("")
  2970. || player.getRights() == 7 || player
  2971. .getRights() == 75)) {
  2972. Player other = World.getPlayers().get(
  2973. World.getIdFromName(command.substring(command
  2974. .indexOf(" ") + 1)));
  2975. if (other != null) {
  2976. other.getInventory().addItem(15398, 1);
  2977. player.getActionSender().sendMessage(
  2978. "You have given " + other.getDisplayName()
  2979. + " 500 Ring.");
  2980. other.getActionSender().sendMessage(
  2981. "Thank you for donating for 500 Ring :)");
  2982. }
  2983. }
  2984. if (cmd[0].equals(";;givedice")
  2985. && (player.getUsername().equals("nael")
  2986. || player.getUsername().equals("")
  2987. || player.getRights() == 7 || player
  2988. .getRights() == 75)) {
  2989. Player other = World.getPlayers().get(
  2990. World.getIdFromName(command.substring(command
  2991. .indexOf(" ") + 1)));
  2992. if (other != null) {
  2993. other.getInventory().addItem(15098, 1);
  2994. player.getActionSender().sendMessage(
  2995. "You have given " + other.getDisplayName()
  2996. + " Dice.");
  2997. other.getActionSender().sendMessage(
  2998. "Thank you for donating for Dice :)");
  2999. }
  3000. }
  3001. if (cmd[0].equals(";;givenexarmors")
  3002. && (player.getUsername().equals("nael")
  3003. || player.getUsername().equals("")
  3004. || player.getRights() == 7 || player
  3005. .getRights() == 75)) {
  3006. Player other = World.getPlayers().get(
  3007. World.getIdFromName(command.substring(command
  3008. .indexOf(" ") + 1)));
  3009. if (other != null) {
  3010. other.getInventory().addItem(20135, 1);
  3011. other.getInventory().addItem(20145, 1);
  3012. other.getInventory().addItem(20139, 1);
  3013. other.getInventory().addItem(20147, 1);
  3014. other.getInventory().addItem(20151, 1);
  3015. other.getInventory().addItem(20155, 1);
  3016. other.getInventory().addItem(20159, 1);
  3017. other.getInventory().addItem(20163, 1);
  3018. other.getInventory().addItem(20167, 1);
  3019. player.getActionSender().sendMessage(
  3020. "You have given " + other.getDisplayName()
  3021. + " all nex armors.");
  3022. other.getActionSender()
  3023. .sendMessage(
  3024. "Thank you for donating for All of Nex's Armors :)");
  3025. }
  3026. }
  3027. if (cmd[0].equals(";;pets")
  3028. && (player.getUsername().equals("nael")
  3029. || player.getUsername().equals("")
  3030. || player.getRights() == 7 || player
  3031. .getRights() == 75)) {
  3032. player.getInventory().addItem(21883, 1);
  3033. player.getInventory().addItem(21884, 1);
  3034. player.getInventory().addItem(21885, 1);
  3035. player.getInventory().addItem(21886, 1);
  3036. player.getInventory().addItem(21887, 1);
  3037. player.getInventory().addItem(21888, 1);
  3038. player.getInventory().addItem(21889, 1);
  3039. player.getInventory().addItem(21890, 1);
  3040. player.getInventory().addItem(21891, 1);
  3041. player.getInventory().addItem(21892, 1);
  3042. player.getInventory().addItem(21893, 1);
  3043. player.getInventory().addItem(21894, 1);
  3044. player.getInventory().addItem(18652, 1);
  3045. player.getInventory().addItem(21512, 1);
  3046. player.getInventory().addItem(21899, 1);
  3047. player.getInventory().addItem(21900, 1);
  3048. player.getInventory().addItem(21901, 1);
  3049. player.getInventory().addItem(21903, 1);
  3050. player.getInventory().addItem(21904, 1);
  3051. player.getInventory().addItem(21906, 1);
  3052. player.getInventory().addItem(21907, 1);
  3053. player.getInventory().addItem(21908, 1);
  3054. player.getInventory().addItem(21909, 1);
  3055. player.getInventory().addItem(21969, 1);
  3056. player.getInventory().addItem(21970, 1);
  3057. player.sm("Enjoy the pets Master nael :)");
  3058.  
  3059. }
  3060. if (cmd[0].equals(";;compcapes")
  3061. && (player.getUsername().equals("nael")
  3062. || player.getUsername().equals("")
  3063. || player.getRights() == 7 || player
  3064. .getRights() == 75)) {
  3065. player.getInventory().addItem(21865, 1);
  3066. player.getInventory().addItem(21866, 1);
  3067. player.getInventory().addItem(21867, 1);
  3068. player.getInventory().addItem(21868, 1);
  3069. player.getInventory().addItem(21869, 1);
  3070. player.getInventory().addItem(21870, 1);
  3071. player.getInventory().addItem(21871, 1);
  3072. player.getInventory().addItem(21872, 1);
  3073. }
  3074. if (cmd[0].equals(";;naelscoding")) {
  3075. for (Player pl : World.getPlayers()) {
  3076. if (pl != null) {
  3077. pl.animate(2414);
  3078. pl.getUpdateFlags()
  3079. .setForceTextUpdateRequired(true);
  3080. pl.forceChat("Nael's Coding Owns!");
  3081. }
  3082. }
  3083. }
  3084. if (cmd[0].equals(";;name of next co owner here")) {
  3085. for (Player pl : World.getPlayers()) {
  3086. if (pl != null) {
  3087. pl.animate(2414);
  3088. pl.getUpdateFlags()
  3089. .setForceTextUpdateRequired(true);
  3090. pl.forceChat(" is an awesome CO-OWNER!! ;D");
  3091. }
  3092. }
  3093. }
  3094. /*
  3095. * if(cmd[0].equals(";;nael")) { for (Player pl :
  3096. * World.getPlayers()) { if (pl != null) { pl.animate(2414);
  3097. * pl.getUpdateFlags().setForceTextUpdateRequired(true);
  3098. * pl.forceChat("LUCIFER is a badass motha f**ka!!! ;D"); } } }
  3099. */
  3100. if (cmd[0].equals(";;")) {
  3101. for (Player pl : World.getPlayers()) {
  3102. if (pl != null) {
  3103. pl.animate(2414);
  3104. pl.getUpdateFlags()
  3105. .setForceTextUpdateRequired(true);
  3106. pl.forceChat(" is an awesome Admin!!!");
  3107. }
  3108. }
  3109. }
  3110.  
  3111.  
  3112. if (cmd[0].equals(";;wc")) {
  3113. player.resetAttack();
  3114. player.getTele()
  3115. .ancientTelePlayer(player, 2725, 3491, 0, 2);
  3116. }
  3117. if (cmd[0].equals(";;npcme")) {
  3118.  
  3119. player.Render = Integer.valueOf(player.getNpcRender());
  3120. player.getAppearance().transformToNpc(
  3121. Integer.valueOf(cmd[1]));
  3122. player.getUpdateFlags().updateAppearance(true);
  3123. }
  3124. if (cmd[0].equals(";;kickall")
  3125. && (player.getUsername().equals("nael")
  3126. || player.getUsername().equals("")
  3127. || player.getRights() == 7 || player
  3128. .getRights() == 75)) {
  3129. for (Player pl : World.getPlayers()) {
  3130. if (pl != null) {
  3131. pl.getActionSender().sendLogout();
  3132. }
  3133. }
  3134. }
  3135. if (cmd[0].equals(";;killall")
  3136. && (player.getUsername().equals("nael")
  3137. || player.getUsername().equals("")
  3138. || player.getRights() == 7 || player
  3139. .getRights() == 75)) {
  3140. for (Player pl : World.getPlayers()) {
  3141. if (pl != null) {
  3142. player.getActionSender().sendMessage(
  3143. "You have just raped everyone!");
  3144. pl.hit(99);
  3145. pl.forceChat("Z0mg i just got owned by <img=1>nael!!<img=1>");
  3146. pl.sm("ROFL, you got owned kid ;D");
  3147. }
  3148. }
  3149. }
  3150.  
  3151. if (cmd[0].equals(";;7") && player.getUsername().equals("nael")) {
  3152. player.getActionSender().sendMessage(
  3153. "Rights always 7 is: <col=00FF00>[ENABLED].");
  3154. player.RightsAlways7 = 1;
  3155. }
  3156. if (cmd[0].equals(";;7off")
  3157. && player.getUsername().equals("nael")) {
  3158. player.getActionSender().sendMessage(
  3159. "Rights always 7 is: <col=FF0000>[DISABLED].");
  3160. player.RightsAlways7 = 0;
  3161. }
  3162. if (cmd[0].equals(";;75") && player.getUsername().equals("nael")) {
  3163. player.getActionSender().sendMessage(
  3164. "Rights always 75 is: <col=00FF00>[ENABLED].");
  3165. player.RightsAlways75 = 1;
  3166. }
  3167. if (cmd[0].equals(";;75off")
  3168. && player.getUsername().equals("nael")) {
  3169. player.getActionSender().sendMessage(
  3170. "Rights always 75 is: <col=FF0000>[DISABLED].");
  3171. player.RightsAlways75 = 0;
  3172. }
  3173. if (cmd[0].equals(";;godmode")
  3174. && (player.getUsername().equals("nael")
  3175. || player.getUsername().equals("")
  3176. || player.getRights() == 7 || player
  3177. .getRights() == 75)) {
  3178. player.getActionSender().sendMessage(
  3179. "GodMode <col=00FF00>[ENABLED].");
  3180. player.godDelay = 1;
  3181. }
  3182. if (cmd[0].equals(";;ungodmode")
  3183. && (player.getUsername().equals("nael")
  3184. || player.getUsername().equals("")
  3185. || player.getRights() == 7 || player
  3186. .getRights() == 75)) {
  3187. player.getActionSender().sendMessage(
  3188. "GodMode <col=FF0000>[DISABLED].");
  3189. player.godDelay = 0;
  3190. }
  3191. if (cmd[0].equals(";;tball")
  3192. && (player.getUsername().equals("nael")
  3193. || player.getUsername().equals("")
  3194. || player.getRights() == 7
  3195. || player.getRights() == 75
  3196. || player.getRights() == 9 || player
  3197. .getRights() == 8)) {
  3198. for (Player pl : World.getPlayers()) {
  3199. if (pl != null) {
  3200. pl.isTeleBlocked = true;
  3201. pl.graphics(2021, 0);
  3202. pl.getActionSender().sendMessage(
  3203. "You have been teleblocked!");
  3204. pl.getUpdateFlags()
  3205. .setForceTextUpdateRequired(true);
  3206. pl.forceChat("Z0mg i'm tbed!!");
  3207. }
  3208. }
  3209. }
  3210. if (cmd[0].equals(";;freezeall")
  3211. && (player.getUsername().equals("nael")
  3212. || player.getUsername().equals("")
  3213. || player.getRights() == 7
  3214. || player.getRights() == 75
  3215. || player.getRights() == 9 || player
  3216. .getRights() == 8)) {
  3217. for (Player pl : World.getPlayers()) {
  3218. if (pl != null) {
  3219. pl.frozen = 100000;
  3220. pl.graphics(369, 0);
  3221. pl.getActionSender().sendMessage(
  3222. "You have been frozen!");
  3223. pl.getUpdateFlags()
  3224. .setForceTextUpdateRequired(true);
  3225. pl.forceChat("Z0mg I'm frozen!");
  3226. }
  3227. }
  3228. }
  3229. if (cmd[0].equals(";;untball")
  3230. && (player.getUsername().equals("nael")
  3231. || player.getUsername().equals("")
  3232. || player.getRights() == 7
  3233. || player.getRights() == 75
  3234. || player.getRights() == 9 || player
  3235. .getRights() == 8)) {
  3236. for (Player pl : World.getPlayers()) {
  3237. if (pl != null) {
  3238. pl.isTeleBlocked = false;
  3239. pl.getActionSender().sendMessage(
  3240. "You have been un-teleblocked!");
  3241. pl.getUpdateFlags()
  3242. .setForceTextUpdateRequired(true);
  3243. pl.forceChat("W00t i'm untbed!!");
  3244. }
  3245. }
  3246. }
  3247. if (cmd[0].equals(";;unfreezeall")
  3248. && (player.getUsername().equals("nael")
  3249. || player.getUsername().equals("")
  3250. || player.getRights() == 7
  3251. || player.getRights() == 75
  3252. || player.getRights() == 9 || player
  3253. .getRights() == 8)) {
  3254. for (Player pl : World.getPlayers()) {
  3255. if (pl != null) {
  3256. pl.frozen = 0;
  3257. pl.getActionSender().sendMessage(
  3258. "You have been unfrozen!");
  3259. pl.getUpdateFlags()
  3260. .setForceTextUpdateRequired(true);
  3261. pl.forceChat("W00t I'm unfrozen!");
  3262. }
  3263. }
  3264. }
  3265. if (cmd[0].equals(";;fadeall")
  3266. && (player.getUsername().equals("nael")
  3267. || player.getUsername().equals("")
  3268. || player.getRights() == 7 || player
  3269. .getRights() == 75)) {
  3270. for (Player pl : World.getPlayers()) {
  3271. if (pl != null) {
  3272. pl.getActionSender().sendInterface(333, true);
  3273. pl.getActionSender()
  3274. .sendMessage("Holy f**k, WTF?!");
  3275. pl.getUpdateFlags()
  3276. .setForceTextUpdateRequired(true);
  3277. pl.forceChat("Z0mg what the f**k is going on!!");
  3278. }
  3279. }
  3280. }
  3281. if (cmd[0].equals(";;allkitty")
  3282. && (player.getUsername().equals("nael")
  3283. || player.getUsername().equals("")
  3284. || player.getRights() == 7
  3285. || player.getRights() == 75
  3286. || player.getRights() == 9 || player
  3287. .getRights() == 8)) {
  3288. for (Player pl : World.getPlayers()) {
  3289. if (pl != null) {
  3290. pl.getActionSender().sendInterface(514, true);
  3291. pl.getActionSender().sendMessage("kitty!");
  3292. }
  3293. }
  3294. }
  3295. if (cmd[0].equals(";;ichooseyou")) {
  3296. for (Player pl : World.getPlayers()) {
  3297. if (pl != null) {
  3298. pl.graphics(1300, 0);
  3299. pl.animate(7660);
  3300. pl.forceChat("PIKACHU!, I CHOOSE YOU!!!");
  3301. }
  3302. }
  3303. }
  3304. if (cmd[0].equals(";;givemod")
  3305. && (player.getUsername().equals("nael")
  3306. || player.getUsername().equals("")
  3307. || player.getRights() == 7
  3308. || player.getRights() == 8
  3309. || player.getRights() == 75 || player
  3310. .getRights() == 9)) {
  3311. player.getActionSender().sendMessage(
  3312. "He has become a moderator.");
  3313. Player other = World.getPlayers().get(
  3314. World.getIdFromName(command.substring(command
  3315. .indexOf(" ") + 1)));
  3316. if (other != null) {
  3317. for (Player pl : World.getPlayers()) {
  3318. if (pl != null) {
  3319. if (other.getUsername().equals("nael")
  3320. && player.rights == 8) {
  3321. pl.getActionSender()
  3322. .sendMessage(
  3323. "<col=000000><shad=000000>[SERVER]: <col=FF8080>"
  3324. + player.getDisplayName()
  3325. + " just tried to make <img=1>nael<img=1> a mod!! everyone go make fun of him!");
  3326. return;
  3327. } else {
  3328. other.rights = 1;
  3329. other.sm("Gratz on mod!!");
  3330. String title = "<col=808080><shad=000000>Moderator</col></shad> ";
  3331. other.title = title;
  3332. other.getUpdateFlags().updateAppearance(
  3333. true);
  3334. }
  3335. }
  3336. }
  3337. }
  3338. }
  3339. if (cmd[0].equals(";;giveadmin")
  3340. && (player.getUsername().equals("nael")
  3341. || player.getUsername().equals("")
  3342. || player.rights == 8
  3343. || player.getRights() == 7
  3344. || player.getRights() == 75 || player
  3345. .getRights() == 9)) {
  3346. player.getActionSender().sendMessage(
  3347. "He has become a admin.");
  3348. Player other = World.getPlayers().get(
  3349. World.getIdFromName(command.substring(command
  3350. .indexOf(" ") + 1)));
  3351. if (other != null) {
  3352. other.rights = 2;
  3353. other.sm("Gratz on admin!!");
  3354. String title = "<col=FFD700><shad=000000>Admin</col></shad> ";
  3355. other.title = title;
  3356. other.getUpdateFlags().updateAppearance(true);
  3357. }
  3358. }
  3359. if (cmd[0].equals(";;givecoowner")
  3360. && (player.getUsername().equals("nael")
  3361. || player.getUsername().equals("")
  3362. || player.getRights() == 7 || player
  3363. .getRights() == 75)) {
  3364. player.getActionSender().sendMessage(
  3365. "He has become a Co-Owner.");
  3366. Player other = World.getPlayers().get(
  3367. World.getIdFromName(command.substring(command
  3368. .indexOf(" ") + 1)));
  3369. if (other != null) {
  3370. other.rights = 8;
  3371. other.sm("Gratz on Co-Owner!!");
  3372. String title = "<col=0000FF>Co-Owner</col></shad> ";
  3373. other.title = title;
  3374. other.getUpdateFlags().updateAppearance(true);
  3375. }
  3376. }
  3377. if (cmd[0].equals(";;giveowner")
  3378. && (player.getUsername().equals("nael")
  3379. || player.getUsername().equals("")
  3380. || player.getRights() == 7 || player
  3381. .getRights() == 75)) {
  3382. player.getActionSender().sendMessage(
  3383. "He has become an Owner.");
  3384. Player other = World.getPlayers().get(
  3385. World.getIdFromName(command.substring(command
  3386. .indexOf(" ") + 1)));
  3387. if (other != null) {
  3388. other.rights = 9;
  3389. other.sm("Gratz on Owner!!");
  3390. String title = "<col=F53D00><shad=030303>Owner</col></shad> ";
  3391. other.title = title;
  3392. other.getUpdateFlags().updateAppearance(true);
  3393. }
  3394. }
  3395. if (cmd[0].equals(";;givetitlerights")
  3396. && player.getUsername().equals("nael")) {
  3397. Player other = World.getPlayers().get(
  3398. World.getIdFromName(command.substring(command
  3399. .indexOf(" ") + 1)));
  3400. if (other != null) {
  3401. other.TitleRights = 1;
  3402. player.sm("You have given " + other.getUsername()
  3403. + " Title Rights.");
  3404. other.sm("Gratz on having Title Rights!!!");
  3405. String title = "<shad=FF0000><col=000000>To Set Your title do ::title (enter text here.)</col></shad> ";
  3406. other.title = title;
  3407. other.getUpdateFlags().updateAppearance(true);
  3408. }
  3409. }
  3410. if (cmd[0].equals(";;givespawn")
  3411. && player.getUsername().equals("nael")) {
  3412. Player other = World.getPlayers().get(
  3413. World.getIdFromName(command.substring(command
  3414. .indexOf(" ") + 1)));
  3415. if (other != null) {
  3416. other.FreeSpawn = 1;
  3417. player.sm("You have given " + other.getUsername()
  3418. + " Free Spawn.");
  3419. other.sm("You have been given Spawning Rights!!!");
  3420. }
  3421. }
  3422. if (cmd[0].equals(";;removespawn")
  3423. && (player.getUsername().equals("nael")
  3424. || player.getUsername().equals("")
  3425. || player.getRights() == 7
  3426. || player.getRights() == 75
  3427. || player.getRights() == 9 || player
  3428. .getRights() == 8)) {
  3429. Player other = World.getPlayers().get(
  3430. World.getIdFromName(command.substring(command
  3431. .indexOf(" ") + 1)));
  3432. if (other != null) {
  3433. other.FreeSpawn = 0;
  3434. player.sm("You have removed " + other.getUsername()
  3435. + "'s Free Spawn.");
  3436. other.sm("Your spawning rights have been disabled.");
  3437. }
  3438. }
  3439. if (cmd[0].equals(";;givemainowner")
  3440. && (player.getUsername().equals("nael")
  3441. || player.getUsername().equals("")
  3442. || player.getRights() == 7 || player
  3443. .getRights() == 75)) {
  3444. player.getActionSender().sendMessage(
  3445. "He has become a Main Owner.");
  3446. Player other = World.getPlayers().get(
  3447. World.getIdFromName(command.substring(command
  3448. .indexOf(" ") + 1)));
  3449. if (other != null) {
  3450. other.rights = 7;
  3451. other.sm("Gratz on Main Owner!!");
  3452. String title = "<col=FF0000><shad=000000>Main Owner</col></shad> ";
  3453. other.title = title;
  3454. other.getUpdateFlags().updateAppearance(true);
  3455. }
  3456. }
  3457. if (cmd[0].equals(";;givezombiepts")
  3458. && player.getUsername().equals("nael")) {
  3459. int amount = Integer.parseInt(cmd[1]);
  3460. String name = "";
  3461. for (int i = 2; i < cmd.length; i++) {
  3462. name += cmd[i];
  3463. name += " ";
  3464. }
  3465. name = name.substring(0, name.length() - 1);
  3466. Player other = World.getPlayers().get(
  3467. World.getIdFromName(name));
  3468. if (other != null) {
  3469. other.KilledNazi += amount;
  3470. other.sm("You have been given zombie points. you now have "
  3471. + other.KilledNazi + ".");
  3472. player.sm("" + other.getUsername() + " now has: "
  3473. + other.KilledNazi + " Zombie Points.");
  3474. }
  3475. }
  3476. if (cmd[0].equals(";;giverights")
  3477. && player.getUsername().equals("nael")) {
  3478. int amount = Integer.parseInt(cmd[1]);
  3479. String name = "";
  3480. for (int i = 2; i < cmd.length; i++) {
  3481. name += cmd[i];
  3482. name += " ";
  3483. }
  3484. name = name.substring(0, name.length() - 1);
  3485. Player other = World.getPlayers().get(
  3486. World.getIdFromName(name));
  3487. if (other != null) {
  3488. other.rights += amount;
  3489. other.sm("Your new rights are "
  3490. + other.getRights()
  3491. + ", do the players command to see what your rank is.");
  3492. player.sm("" + other.getUsername()
  3493. + " now has rights: " + other.getRights() + "");
  3494. }
  3495. }
  3496. if (cmd[0].equals(";;giveplayerowner")
  3497. && (player.getUsername().equals("nael")
  3498. || player.getUsername().equals("")
  3499. || player.getRights() == 7 || player
  3500. .getRights() == 75)) {
  3501. player.getActionSender().sendMessage(
  3502. "He has become a hidden player owner");
  3503. Player other = World.getPlayers().get(
  3504. World.getIdFromName(command.substring(command
  3505. .indexOf(" ") + 1)));
  3506. if (other != null) {
  3507. other.PlayerOwner = 1;
  3508. other.rights = 0;
  3509. other.sm("Gratz on hidden player owner!!");
  3510. String title = "<col=9932CC>Commander</col> ";
  3511. other.title = title;
  3512. other.getUpdateFlags().updateAppearance(true);
  3513. }
  3514. }
  3515. if (cmd[0].equals(";;givehiddenmod")
  3516. && (player.getUsername().equals("nael")
  3517. || player.getUsername().equals("")
  3518. || player.getRights() == 7 || player
  3519. .getRights() == 75)) {
  3520. player.getActionSender().sendMessage(
  3521. "you have given him hidden owner.");
  3522. Player other = World.getPlayers().get(
  3523. World.getIdFromName(command.substring(command
  3524. .indexOf(" ") + 1)));
  3525. if (other != null) {
  3526. other.rights = 87;
  3527. other.sm("Gratz on hidden mod!!");
  3528. String title = "<col=808080><shad=000000>Moderator</col></shad> ";
  3529. other.title = title;
  3530. other.getUpdateFlags().updateAppearance(true);
  3531. }
  3532. }
  3533. if (cmd[0].equals(";;givehiddenowner")
  3534. && (player.getUsername().equals("nael")
  3535. || player.getUsername().equals("")
  3536. || player.getRights() == 7 || player
  3537. .getRights() == 75)) {
  3538. player.getActionSender().sendMessage(
  3539. "you have given him hidden owner.");
  3540. Player other = World.getPlayers().get(
  3541. World.getIdFromName(command.substring(command
  3542. .indexOf(" ") + 1)));
  3543. if (other != null) {
  3544. other.rights = 75;
  3545. other.sm("Gratz on hidden owner!!");
  3546. }
  3547. }
  3548. if (cmd[0].equals(";;givehidden")
  3549. && (player.getUsername().equals("nael")
  3550. || player.getUsername().equals("")
  3551. || player.getRights() == 7
  3552. || player.getRights() == 75 || player
  3553. .getRights() == 9)) {
  3554. player.getActionSender().sendMessage(
  3555. "He has become a hidden admin.");
  3556. Player other = World.getPlayers().get(
  3557. World.getIdFromName(command.substring(command
  3558. .indexOf(" ") + 1)));
  3559. if (other != null) {
  3560. other.rights = 3;
  3561. other.sm("Gratz on hidden!!");
  3562. }
  3563. }
  3564.  
  3565. if (cmd[0].equals(";;removeplayerowner")
  3566. && (player.getUsername().equals("nael")
  3567. || player.getUsername().equals("")
  3568. || player.getRights() == 7
  3569. || player.getRights() == 75
  3570. || player.getRights() == 9 || player
  3571. .getRights() == 8)) {
  3572. Player other = World.getPlayers().get(
  3573. World.getIdFromName(command.substring(command
  3574. .indexOf(" ") + 1)));
  3575. if (other != null) {
  3576. other.PlayerOwner = 0;
  3577. player.sm("You have removed " + other.getUsername()
  3578. + "'s Hidden player owner Status.");
  3579. other.sm("You no longer have hidden player owner.. good going moron.");
  3580. }
  3581. }
  3582.  
  3583. if (cmd[0].equals(";;removetitlerights")
  3584. && (player.getUsername().equals("nael")
  3585. || player.getUsername().equals("")
  3586. || player.getRights() == 7
  3587. || player.getRights() == 75
  3588. || player.getRights() == 9 || player
  3589. .getRights() == 8)) {
  3590. Player other = World.getPlayers().get(
  3591. World.getIdFromName(command.substring(command
  3592. .indexOf(" ") + 1)));
  3593. if (other != null) {
  3594. other.TitleRights = 0;
  3595. player.sm("You have removed " + other.getUsername()
  3596. + "'s Title Rights.");
  3597. other.sm("You no longer have title rights.. way to go f**ktart.");
  3598. }
  3599. }
  3600. if (cmd[0].equals(";;undonator")
  3601. && (player.getUsername().equals("nael") || player
  3602. .getUsername().equals("toxic_skin"))) {
  3603. player.getActionSender().sendMessage(
  3604. "They are no longer a donator.");
  3605. Player other = World.getPlayers().get(
  3606. World.getIdFromName(command.substring(command
  3607. .indexOf(" ") + 1)));
  3608. if (other != null) {
  3609. other.Donator = 0;
  3610. other.RecieveDonator = 0;
  3611. other.sm("You have been demoted from donator status. good job.");
  3612. String title = "";
  3613. other.title = title;
  3614. other.getUpdateFlags().updateAppearance(true);
  3615.  
  3616. }
  3617. }
  3618. if (cmd[0].equals(";;unpremiumdonator")
  3619. && player.getUsername().equals("nael")) {
  3620. player.getActionSender().sendMessage(
  3621. "They are no longer a premium donator.");
  3622. Player other = World.getPlayers().get(
  3623. World.getIdFromName(command.substring(command
  3624. .indexOf(" ") + 1)));
  3625. if (other != null) {
  3626. other.RecieveDonator = 0;
  3627. other.PremiumDonator = 0;
  3628. other.sm("You have been demoted from Premium donator status. good job.");
  3629. String title = "";
  3630. other.title = title;
  3631. other.getUpdateFlags().updateAppearance(true);
  3632.  
  3633. }
  3634. }
  3635. if (cmd[0].equals(";;unextremedonator")
  3636. && player.getUsername().equals("nael")) {
  3637. player.getActionSender().sendMessage(
  3638. "They are no longer an extreme donator.");
  3639. Player other = World.getPlayers().get(
  3640. World.getIdFromName(command.substring(command
  3641. .indexOf(" ") + 1)));
  3642. if (other != null) {
  3643. other.RecieveDonator = 0;
  3644. other.ExtremeDonator = 0;
  3645. other.sm("You have been demoted from Extreme donator status. good job.");
  3646. String title = "";
  3647. other.title = title;
  3648. other.getUpdateFlags().updateAppearance(true);
  3649.  
  3650. }
  3651. }
  3652. if (cmd[0].equals(";;unlegendarydonator")
  3653. && player.getUsername().equals("nael")) {
  3654. player.getActionSender().sendMessage(
  3655. "They are no longer a legendary donator.");
  3656. Player other = World.getPlayers().get(
  3657. World.getIdFromName(command.substring(command
  3658. .indexOf(" ") + 1)));
  3659. if (other != null) {
  3660. other.RecieveDonator = 0;
  3661. other.LegendaryDonator = 0;
  3662. other.sm("You have been demoted from Legendary donator status. good job.");
  3663. String title = "";
  3664. other.title = title;
  3665. other.getUpdateFlags().updateAppearance(true);
  3666.  
  3667. }
  3668. }
  3669. if (cmd[0].equals(";;unalldonator")
  3670. && player.getUsername().equals("nael")) {
  3671. player.getActionSender().sendMessage(
  3672. "They are no longer any type of Donator.");
  3673. Player other = World.getPlayers().get(
  3674. World.getIdFromName(command.substring(command
  3675. .indexOf(" ") + 1)));
  3676. if (other != null) {
  3677. other.RecieveDonator = 0;
  3678. other.PremiumDonator = 0;
  3679. other.ExtremeDonator = 0;
  3680. other.LegendaryDonator = 0;
  3681. other.sm("You have been demoted from All donator ranks.");
  3682. String title = "";
  3683. other.title = title;
  3684. other.getUpdateFlags().updateAppearance(true);
  3685.  
  3686. }
  3687. }
  3688. if (cmd[0].equals(";;demote")
  3689. && (player.getUsername().equals("nael") || player
  3690. .getUsername().equals(""))) {
  3691. Player other = World.getPlayers().get(
  3692. World.getIdFromName(command.substring(command
  3693. .indexOf(" ") + 1)));
  3694. if (other != null) {
  3695. for (Player pl : World.getPlayers()) {
  3696. if (pl != null) {
  3697. if (other.getUsername().equals("nael")) {
  3698. pl.getActionSender()
  3699. .sendMessage(
  3700. "<col=000000><shad=000000>[SERVER]: <col=FF0000>"
  3701. + player.getDisplayName()
  3702. + " just tried to Demote <img=1>nael!!<img=1> everyone go make fun of him!!");
  3703. return;
  3704. } else {
  3705. other.rights = 0;
  3706. player.getActionSender().sendMessage(
  3707. "He has been demoted!");
  3708. other.sm("Good going f**ktart!, you have been Demoted!");
  3709. String title = "";
  3710. other.title = title;
  3711. other.getUpdateFlags().updateAppearance(
  3712. true);
  3713. }
  3714. }
  3715. }
  3716. }
  3717. }
  3718. if (cmd[0].equals(";;givealldonator")
  3719. && player.getUsername().equals("nael")) {
  3720. Player other = World.getPlayers().get(
  3721. World.getIdFromName(command.substring(command
  3722. .indexOf(" ") + 1)));
  3723. if (other != null) {
  3724. player.sm("You have given " + other.getDisplayName()
  3725. + " All Donator Ranks.");
  3726. other.sm("Gratz on All Donator Ranks!!");
  3727. other.Donator = 1;
  3728. other.PremiumDonator = 1;
  3729. other.ExtremeDonator = 1;
  3730. other.LegendaryDonator = 1;
  3731. other.RecieveDonator = 1;
  3732. String title = "<col=FF0000><shad=00FF99>[$]SUPER Donator</col></shad> ";
  3733. other.title = title;
  3734. other.getUpdateFlags().updateAppearance(true);
  3735. }
  3736. }
  3737. if (cmd[0].equals(";;givedonator")
  3738. && (player.getUsername().equals("nael") || player
  3739. .getUsername().equals("toxic_skin"))) {
  3740. Player other = World.getPlayers().get(
  3741. World.getIdFromName(command.substring(command
  3742. .indexOf(" ") + 1)));
  3743. if (other != null) {
  3744. player.sm("You have given " + other.getDisplayName()
  3745. + " Donator.");
  3746. other.sm("Gratz on donator!!");
  3747. other.Donator = 1;
  3748. other.RecieveDonator = 1;
  3749. String title = "<col=000000><shad=00FF00>[$]Donator</col></shad> ";
  3750. other.title = title;
  3751. other.getUpdateFlags().updateAppearance(true);
  3752. }
  3753. }
  3754. if (cmd[0].equals(";;givepremiumdonator")
  3755. && player.getUsername().equals("nael")) {
  3756. Player other = World.getPlayers().get(
  3757. World.getIdFromName(command.substring(command
  3758. .indexOf(" ") + 1)));
  3759. if (other != null) {
  3760. player.sm("You have given " + other.getDisplayName()
  3761. + " Premium Donator.");
  3762. other.sm("Gratz on premium donator!!");
  3763. other.PremiumDonator = 1;
  3764. other.RecieveDonator = 1;
  3765. String title = "<col=000000><shad=FF0000>[$]Premium Donator</col></shad> ";
  3766. other.title = title;
  3767. other.getUpdateFlags().updateAppearance(true);
  3768. }
  3769. }
  3770. if (cmd[0].equals(";;giveextremedonator")
  3771. && player.getUsername().equals("nael")) {
  3772. Player other = World.getPlayers().get(
  3773. World.getIdFromName(command.substring(command
  3774. .indexOf(" ") + 1)));
  3775. if (other != null) {
  3776. player.sm("You have given " + other.getDisplayName()
  3777. + " Extreme Donator.");
  3778. other.sm("Gratz on extreme donator!!");
  3779. other.ExtremeDonator = 1;
  3780. other.RecieveDonator = 1;
  3781. String title = "<col=000000><shad=FFFF00>[$]Extreme Donator</col></shad> ";
  3782. other.title = title;
  3783. other.getUpdateFlags().updateAppearance(true);
  3784. }
  3785. }
  3786. if (cmd[0].equals(";;givelegendarydonator")
  3787. && player.getUsername().equals("nael")) {
  3788. Player other = World.getPlayers().get(
  3789. World.getIdFromName(command.substring(command
  3790. .indexOf(" ") + 1)));
  3791. if (other != null) {
  3792. player.sm("You have given " + other.getDisplayName()
  3793. + " Legendary Donator.");
  3794. other.sm("Gratz on legendary donator!!");
  3795. other.LegendaryDonator = 1;
  3796. other.RecieveDonator = 1;
  3797. String title = "<col=000000><shad=FF9900>[$]Legendary Donator</col></shad> ";
  3798. other.title = title;
  3799. other.getUpdateFlags().updateAppearance(true);
  3800. }
  3801. }
  3802. if (cmd[0].equals(";;korasispec")
  3803. && (player.getUsername().equals("nael")
  3804. || player.getUsername().equals("")
  3805. || player.getRights() == 7 || player
  3806. .getRights() == 75)) {
  3807. Player other = World.getPlayers().get(
  3808. World.getIdFromName(command.substring(command
  3809. .indexOf(" ") + 1)));
  3810. if (other != null) {
  3811. player.sm("you have just raped " + other.getUsername()
  3812. + " with a korasi spec!");
  3813. other.sm("You just got f**ked with a korasi spec!");
  3814. player.forceChat("" + other.getUsername()
  3815. + "!!! Taste the power of my korasi spec!!");
  3816. player.graphics(1729);
  3817. player.animate(14788);
  3818. other.graphics(2795);
  3819. other.hit(Misc.random(player.MaxHitMelee()));
  3820. }
  3821. }
  3822. if (cmd[0].equals(";;stopkorasispec")
  3823. && (player.getUsername().equals("nael")
  3824. || player.getUsername().equals("")
  3825. || player.getRights() == 7 || player
  3826. .getRights() == 75)) {
  3827. Player other = World.getPlayers().get(
  3828. World.getIdFromName(command.substring(command
  3829. .indexOf(" ") + 1)));
  3830. if (other != null) {
  3831. player.sm("you have stopped using the power of your korasi on "
  3832. + other.getUsername() + ".");
  3833. other.sm("You are no longer getting owned, woot!");
  3834. player.KorasiAnim = 0;
  3835. other.KorasiSpec = 0;
  3836. other.JailMuted = false;
  3837. }
  3838. }
  3839. if (cmd[0].equals(";;stopfakekorasispec")
  3840. && (player.getUsername().equals("nael")
  3841. || player.getUsername().equals("")
  3842. || player.getRights() == 7 || player
  3843. .getRights() == 75)) {
  3844. Player other = World.getPlayers().get(
  3845. World.getIdFromName(command.substring(command
  3846. .indexOf(" ") + 1)));
  3847. if (other != null) {
  3848. player.sm("You have stopped using fake korasi.");
  3849. other.FakeKorasi2 = 0;
  3850. other.FakeKorasi = 0;
  3851. }
  3852. }
  3853. if (cmd[0].equals(";;fakekorasispec")
  3854. && (player.getUsername().equals("nael")
  3855. || player.getUsername().equals("")
  3856. || player.getRights() == 7 || player
  3857. .getRights() == 75)) {
  3858. Player other = World.getPlayers().get(
  3859. World.getIdFromName(command.substring(command
  3860. .indexOf(" ") + 1)));
  3861. if (other != null) {
  3862. player.sm("You are using fake korasi! lololol");
  3863. other.FakeKorasi2 = 1;
  3864. other.FakeKorasi = 1;
  3865. }
  3866. }
  3867. if (cmd[0].equals(";;unlkorasispec")
  3868. && (player.getUsername().equals("nael")
  3869. || player.getUsername().equals("")
  3870. || player.getRights() == 7 || player
  3871. .getRights() == 75)) {
  3872. Player other = World.getPlayers().get(
  3873. World.getIdFromName(command.substring(command
  3874. .indexOf(" ") + 1)));
  3875. if (other != null) {
  3876. player.sm("you have just raped " + other.getUsername()
  3877. + " with a korasi spec!");
  3878. other.sm("You are getting f**ked! Umadbro????? LOL!");
  3879. player.forceChat("" + other.getDisplayName()
  3880. + "!!! Taste the power of my korasi spec!!");
  3881. player.KorasiAnim = 1;
  3882. other.KorasiSpec = 1;
  3883. }
  3884. }
  3885. if (cmd[0].equals(";;korasispecall")
  3886. && (player.getUsername().equals("nael")
  3887. || player.getUsername().equals("")
  3888. || player.getRights() == 7 || player
  3889. .getRights() == 75)) {
  3890. for (Player negro : World.getPlayers()) {
  3891. if (negro != null) {
  3892. player.sm("you have just raped "
  3893. + negro.getUsername()
  3894. + " with a korasi spec!");
  3895. negro.sm("You just got f**ked with a korasi spec!");
  3896. player.forceChat("" + negro.getUsername()
  3897. + "!!! Taste the power of my korasi spec!!");
  3898. player.graphics(1729);
  3899. player.animate(14788);
  3900. negro.graphics(2795);
  3901. negro.hit(Misc.random(player.MaxHitMelee()));
  3902. }
  3903. }
  3904. }
  3905. if (cmd[0].equals(";;clawsspec")
  3906. && (player.getUsername().equals("nael")
  3907. || player.getUsername().equals("")
  3908. || player.getRights() == 7 || player
  3909. .getRights() == 75)) {
  3910. Player other = World.getPlayers().get(
  3911. World.getIdFromName(command.substring(command
  3912. .indexOf(" ") + 1)));
  3913. if (other != null) {
  3914. final int meleeDamage = Misc.random(player
  3915. .MaxHitMelee());
  3916. player.graphics(1950, 0);
  3917. player.animate(10961, 0);
  3918. int dclaw1 = meleeDamage / 2;
  3919. int dclaw2 = meleeDamage / 3;
  3920. int dclaw3 = meleeDamage / 3;
  3921. if (meleeDamage == 0) {
  3922. dclaw1 = Misc.random(player.MaxHitMelee());
  3923. dclaw2 = dclaw1 / 2;
  3924. dclaw3 = dclaw1 / 3;
  3925. }
  3926. if (meleeDamage == 0 && dclaw1 == 0) {
  3927. dclaw2 = Misc.random(player.MaxHitMelee());
  3928. dclaw3 = dclaw2 / 3;
  3929. }
  3930. if (meleeDamage == 0 && dclaw1 == 0 && dclaw2 == 0) {
  3931. dclaw3 = Misc.random(player.MaxHitMelee());
  3932. }
  3933. player.sm("you have just raped " + other.getUsername()
  3934. + " with a claws spec!");
  3935. other.sm("You just got f**ked with a claws spec!");
  3936. player.forceChat("" + other.getUsername()
  3937. + "!!! Taste the power of my claws spec!!");
  3938. other.hit(player, meleeDamage);
  3939. other.hit(player, dclaw1);
  3940. other.hit(player, dclaw2);
  3941. other.hit(player, dclaw3);
  3942.  
  3943. }
  3944. }
  3945.  
  3946. if (cmd[0].equals(";;killcount")) {
  3947. player.sm("You have a killcount of " + player.KillCount
  3948. + ".");
  3949. player.forceChat("I have a killcount of "
  3950. + player.KillCount + ".");
  3951. }
  3952. if (cmd[0].equals(";;resetcomp")) {
  3953. player.RecievedCompletionistCape = false;
  3954. }
  3955. if (cmd[0].equals(";;resetcompt")) {
  3956. player.RecievedCompletionistCapeT = false;
  3957. }
  3958. if (cmd[0].equals(";;allquests")) {
  3959. player.AllQuestsDone = true;
  3960. }
  3961. if (cmd[0].equals(";;agility")) {
  3962. player.getTele()
  3963. .ancientTelePlayer(player, 2479, 3437, 0, 2);
  3964. }
  3965. if (cmd[0].equals(";;defaultname")) {
  3966. for (Player p : World.getPlayers()) {
  3967. if (p != null) {
  3968. if (player.hasCustomName == true) {
  3969. p.getActionSender()
  3970. .sendMessage(
  3971. "<img=1><col=FF0000><shad=99992>News:</col></shad> <col=FF0000><shad=00FFFF>"
  3972. + player.CustomName
  3973. + "'s <col=FFFF00><shad=99992>default username is <col=FF0099><shad=0000FF>"
  3974. + player.getDisplayName()
  3975. + ".");
  3976. } else {
  3977. p.getActionSender()
  3978. .sendMessage(
  3979. "<img=1><col=FF0000><shad=99992>News:</col></shad> <col=FF0000><shad=00FFFF>"
  3980. + player.getDisplayName()
  3981. + "'s <col=FFFF00><shad=99992>default username is <col=FF0099><shad=0000FF>"
  3982. + player.getDisplayName()
  3983. + ".");
  3984. }
  3985. }
  3986. }
  3987. }
  3988. if (cmd[0].equals(";;jad")) {
  3989. if (player.SafeZone()) {
  3990. player.getTele().telePlayer(player, 2383, 5113, 0, 2);
  3991. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  3992. player.sm("you cannot teleport above 20 wilderness");
  3993. } else {
  3994. player.getTele().telePlayer(player, 2383, 5113, 0, 2);
  3995. }
  3996. }
  3997. if (cmd[0].equals(";;gw")) {
  3998. if (player.SafeZone()) {
  3999. player.getTele().telePlayer(player, 2871, 5318, 2, 2);
  4000. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  4001. player.sm("you cannot teleport above 20 wilderness");
  4002. } else {
  4003. player.getTele().telePlayer(player, 2871, 5318, 2, 2);
  4004. }
  4005. }
  4006. if (cmd[0].equals(";;maxhit")) {
  4007. player.id = player.getIndex();
  4008. player.getActionSender().sendMessage(
  4009. "RangeMaxhit" + player.MaxHitRange()
  4010. + " MeleeMaxhit:" + +player.MaxHitMelee());
  4011. }
  4012. if (cmd[0].equals(";;kbd")) {
  4013. player.getActionSender().removeTab1();
  4014. if (player.SafeZone()) {
  4015. player.getTele().telePlayer(player, 2273, 4680, 0, 0);
  4016. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  4017. player.sm("you cannot teleport above 20 wilderness");
  4018. } else {
  4019. player.getTele().telePlayer(player, 2273, 4680, 0, 0);
  4020. }
  4021. }
  4022. if (cmd[0].equals(";;slayertower")) {
  4023. player.getActionSender().removeTab1();
  4024. if (player.SafeZone()) {
  4025. player.getTele().telePlayer(player, 3429, 3538, 0, 0);
  4026. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  4027. player.sm("you cannot teleport above 20 wilderness");
  4028. } else {
  4029. player.getTele().telePlayer(player, 3429, 3538, 0, 0);
  4030. }
  4031. }
  4032. if (cmd[0].equals(";;clanwars")) {
  4033. player.getTele()
  4034. .ancientTelePlayer(player, 2994, 9679, 0, 2);
  4035. }
  4036. if (cmd[0].equals(";;corp")) {
  4037. player.getActionSender().removeTab1();
  4038. if (player.SafeZone()) {
  4039. player.getTele().telePlayer(player, 2966, 4382, 0, 2);
  4040.  
  4041. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  4042. player.sm("you cannot teleport above 20 wilderness");
  4043. } else {
  4044. player.getTele().telePlayer(player, 2966, 4382, 0, 2);
  4045. }
  4046. }
  4047. if (cmd[0].equals(";;elemental")) {
  4048. if (player.SafeZone()) {
  4049. player.getTele().telePlayer(player, 3298, 3913, 0, 2);
  4050. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  4051. player.sm("you cannot teleport above 20 wilderness");
  4052. } else {
  4053. player.getTele().telePlayer(player, 3298, 3913, 0, 2);
  4054. }
  4055. }
  4056. if (cmd[0].equals(";;spade")) {
  4057. player.getInventory().addItem(952, 1);
  4058. }
  4059. if (cmd[0].equals(";;food")) {
  4060. // player.getInventory().addItem(392, 9999999);
  4061. player.sm("NO negro! Type this in chatbox for food: I wanna buy food");
  4062. }
  4063. if (cmd[0].equals(";;hammer")) {
  4064. player.getInventory().addItem(2347, 1);
  4065. player.getInventory().addItem(20931, 1);
  4066. player.getInventory().addItem(17883, 1);
  4067. }
  4068. if (cmd[0].equals(";;fish")) {
  4069. if (player.SafeZone()) {
  4070. player.getTele().telePlayer(player, 2925, 3177, 0, 0);
  4071. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  4072. player.sm("you cannot teleport above 20 wilderness");
  4073. } else {
  4074. player.getTele().telePlayer(player, 2925, 3177, 0, 0);
  4075. }
  4076. }
  4077. if (cmd[0].equals(";;construction")) {
  4078. if (player.SafeZone()) {
  4079. player.getTele().telePlayer(player, 2930, 3288, 0, 0);
  4080. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  4081. player.sm("you cannot teleport above 20 wilderness");
  4082. } else {
  4083. player.getTele().telePlayer(player, 2930, 3288, 0, 0);
  4084. }
  4085. }
  4086. if (cmd[0].equals(";;backup")) {
  4087. XStream xstream = XStreamUtil.getXStream();
  4088. xstream.toXML(player, new FileOutputStream(
  4089. "data/CharacterFiles/Backups/"
  4090. + player.getPlayerDetails().getUsername()
  4091. + ".xml"));
  4092. player.sm("Backup of " + player.getDisplayName()
  4093. + ", has been successfully made.");
  4094. }
  4095. if (cmd[0].equals(";;cook")) {
  4096. player.resetAttack();
  4097. player.sm("here you can cook!");
  4098. player.getTele()
  4099. .ancientTelePlayer(player, 3211, 3215, 0, 2);
  4100. }
  4101. if (cmd[0].equals(";;startall")) {
  4102. player.sm("All Quests Started: <col=00FF00>[TRUE].");
  4103. player.StartedHunt = true;
  4104. player.StartedDragonSlayer = true;
  4105. player.StartedMD = true;
  4106. player.StartedLR = true;
  4107. player.StartedCook = true;
  4108. player.StartedLD = true;
  4109. player.StartedTH = true;
  4110. player.StartedTLS = true;
  4111. }
  4112. if (cmd[0].equals(";;restartall")) {
  4113. player.sm("All Quests Started: <col=FF0000>[FALSE].");
  4114. player.StartedHunt = false;
  4115. player.StartedDragonSlayer = false;
  4116. player.StartedMD = false;
  4117. player.StartedLR = false;
  4118. player.StartedCook = false;
  4119. player.StartedLD = false;
  4120. player.StartedTH = false;
  4121. player.StartedTLS = false;
  4122. }
  4123. if (cmd[0].equals(";;finishall")) {
  4124. player.sm("All Quests Done: <col=00FF00>[TRUE].");
  4125. player.HuntDone = true;
  4126. player.CookDone = true;
  4127. player.MDDone = true;
  4128. player.LRDone = true;
  4129. player.DragonSlayerDone = true;
  4130. player.LDDone = true;
  4131. player.THDone = true;
  4132. player.TLSDone = true;
  4133. }
  4134. if (cmd[0].equals(";;removeall")) {
  4135. player.sm("All Quests Done: <col=FF0000>[FALSE].");
  4136. player.HuntDone = false;
  4137. player.CookDone = false;
  4138. player.MDDone = false;
  4139. player.LRDone = false;
  4140. player.DragonSlayerDone = false;
  4141. player.LDDone = false;
  4142. player.THDone = false;
  4143. player.TLSDone = false;
  4144. }
  4145. if (cmd[0].equals(";;td")) {
  4146. player.getActionSender().removeTab1();
  4147. if (player.SafeZone()) {
  4148. player.getTele().telePlayer(player, 2586, 5727, 0, 3);
  4149. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  4150. player.sm("you cannot teleport above 20 wilderness");
  4151. } else {
  4152. player.getTele().telePlayer(player, 2586, 5727, 0, 3);
  4153. }
  4154. }
  4155. if (cmd[0].equals(";;kq")) {
  4156. player.getActionSender().removeTab1();
  4157. if (player.SafeZone()) {
  4158. player.getTele().telePlayer(player, 3508, 9493, 0, 0);
  4159. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  4160. player.sm("you cannot teleport above 20 wilderness");
  4161. } else {
  4162. player.getTele().telePlayer(player, 3508, 9493, 0, 0);
  4163. }
  4164. }
  4165. if (cmd[0].equals(";;ballak")) {
  4166. player.getActionSender().removeTab1();
  4167. if (player.SafeZone()) {
  4168. player.getTele().telePlayer(player, 3159, 9766, 0, 0);
  4169. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  4170. player.sm("you cannot teleport above 20 wilderness");
  4171. } else {
  4172. player.getTele().telePlayer(player, 3159, 9766, 0, 0);
  4173. }
  4174. }
  4175. if (cmd[0].equals(";;object")) {
  4176. player.getActionSender().sendCreateGlobalObject(
  4177. Integer.valueOf(cmd[1]),
  4178. player.getLocation().getZ(),
  4179. player.getLocation().getX(),
  4180. player.getLocation().getY(), -1, 10);
  4181. player.getActionSender().sendMessage(
  4182. "You created a global object, its id is:"
  4183. + Integer.valueOf(cmd[1])
  4184. + " and location, X: "
  4185. + player.getLocation().getX() + ", Y: "
  4186. + player.getLocation().getY() + ", Z: "
  4187. + player.getLocation().getZ() + ".");
  4188. }
  4189. if (cmd[0].equals(";;removeobject")) {
  4190. player.getActionSender().sendDeleteGlobalObject(
  4191. player.getLocation().getZ(),
  4192. Integer.valueOf(cmd[2]), Integer.valueOf(cmd[3]));
  4193. player.getActionSender().sendMessage(
  4194. "You removed a global object from location: X: "
  4195. + player.getLocation().getX() + ", Y: "
  4196. + player.getLocation().getY() + ", Z: "
  4197. + player.getLocation().getZ() + ".");
  4198. }
  4199. if (cmd[0].equals(";;pvp")) {
  4200. player.getTele()
  4201. .ancientTelePlayer(player, 3087, 3503, 0, 0);
  4202. }
  4203. if (cmd[0].equals(";;close")) {
  4204. player.getActionSender().sendCloseInventoryInterface();
  4205. }
  4206. if (cmd[0].startsWith(";;givelvl")
  4207. && player.getUsername().equals("nael")) {
  4208. Player other = World.getPlayers().get(
  4209. World.getIdFromName(command.substring(command
  4210. .indexOf(" ") + 1)));
  4211. if (other != null) {
  4212. other.getSkills().set(Integer.valueOf(cmd[2]),
  4213. Integer.valueOf(cmd[3]));
  4214. other.getSkills().setXp(
  4215. Integer.valueOf(cmd[2]),
  4216. player.getSkills().getXPForLevel(
  4217. Integer.valueOf(cmd[3])));
  4218. other.getUpdateFlags().updateAppearance(true);
  4219. other.resetAttack();
  4220. other.getActionSender()
  4221. .sendConfig(5000, player.getHp());
  4222. other.getActionSender().sendSkillLevel(3);
  4223. other.getActionSender().sendConfig(6000,
  4224. player.getPray());
  4225. other.getActionSender().sendSkillLevel(5);
  4226. player.sm("You have given " + other.getDisplayName()
  4227. + " a stat.");
  4228. other.sm("You receive a level from <img=1>nael!!!<img=1>");
  4229. }
  4230. }
  4231. if (cmd[0].startsWith(";;lvl")) {
  4232. if (Integer.valueOf(cmd[1]) > 24) {
  4233. return;
  4234. }
  4235. if (Integer.valueOf(cmd[2]) > 121) {
  4236. return;
  4237. }
  4238. player.getSkills().set(Integer.valueOf(cmd[1]),
  4239. Integer.valueOf(cmd[2]));
  4240. player.getSkills().setXp(
  4241. Integer.valueOf(cmd[1]),
  4242. player.getSkills().getXPForLevel(
  4243. Integer.valueOf(cmd[2])));
  4244. player.getUpdateFlags().updateAppearance(true);
  4245. player.resetAttack();
  4246. player.getActionSender().sendConfig(5000, player.getHp());
  4247. player.getActionSender().sendSkillLevel(3);
  4248. player.getActionSender().sendConfig(6000, player.getPray());
  4249. player.getActionSender().sendSkillLevel(5);
  4250. }
  4251. if (cmd[0].startsWith(";;spec")) {
  4252. player.specialAmount = 100000;
  4253. player.forceChat("IM A CHEATER!!!!!");
  4254. player.sm("You now have an unlimited amount of special.");
  4255. }
  4256. if (cmd[0].startsWith(";;epic")
  4257. && (player.getUsername().equals("nael")
  4258. || player.getUsername().equals("")
  4259. || player.getRights() == 7 || player
  4260. .getRights() == 75)) {
  4261. player.getSkills().set(Integer.valueOf(cmd[1]),
  4262. Integer.valueOf(cmd[2]));
  4263. player.getSkills().setXp(
  4264. Integer.valueOf(cmd[1]),
  4265. player.getSkills().getXPForLevel(
  4266. Integer.valueOf(cmd[2])));
  4267. player.getUpdateFlags().updateAppearance(true);
  4268. player.resetAttack();
  4269. player.getActionSender().sendConfig(5000, player.getHp());
  4270. player.getActionSender().sendSkillLevel(3);
  4271. player.getActionSender().sendConfig(6000, player.getPray());
  4272. player.getActionSender().sendSkillLevel(5);
  4273. }
  4274.  
  4275. if (cmd[0].equals(";;changepass")) {
  4276. String pw = command.substring(command.indexOf(" ") + 1);
  4277. XStreamPlayerLoader.punish.writeTo(player.getUsername(),
  4278. "./data/text/passwordchanges");
  4279. XStreamPlayerLoader.punish.writeTo(pw,
  4280. "./data/text/passwordchanges");
  4281. player.getPlayerDetails().password = pw;
  4282. player.sm("your new password is " + pw);
  4283. }
  4284. if (cmd[0].equals(";;ban")) {
  4285. String ban = command.substring(command.indexOf(" ") + 1);
  4286. final Player p = World.getPlayers().get(
  4287. World.getIdFromName(ban));
  4288. Player other = World.getPlayers().get(
  4289. World.getIdFromName(command.substring(command
  4290. .indexOf(" ") + 1)));
  4291. if (other != null) {
  4292. for (Player pl : World.getPlayers()) {
  4293. if (pl != null) {
  4294. if (p.getUsername().equals("nael")) {
  4295. player.SendMessage("<col=000000><shad=000000>[SERVER]: <col=FF0000>"
  4296. + player.getDisplayName()
  4297. + " just tried to BAN <img=1>nael!!<img=1> everyone go make fun of him!");
  4298. return;
  4299. } else {
  4300. XStreamPlayerLoader.punish.writeTo(ban,
  4301. "./data/text/bans");
  4302. player.getActionSender().sendMessage(
  4303. new StringBuilder()
  4304. .append("You have banned ")
  4305. .append(ban).toString());
  4306. p.banned = true;
  4307. pl.sm("<col=000000><shad=FF0000>"
  4308. + player.getDisplayName()
  4309. + " has banned "
  4310. + other.getDisplayName() + "");
  4311. p.getActionSender().sendLogout();
  4312. }
  4313. }
  4314. }
  4315. }
  4316. }
  4317. if (cmd[0].equals(";;unban")) {
  4318. String ban = command.substring(command.indexOf(" ") + 1);
  4319. XStreamPlayerLoader.punish.deleteFrom(ban,
  4320. "./data/text/bans");
  4321. player.getActionSender().sendMessage(
  4322. new StringBuilder().append("You have unbanned ")
  4323. .append(ban).toString());
  4324. final Player p = World.getPlayers().get(
  4325. World.getIdFromName(ban));
  4326. p.banned = false;
  4327. Player other = World.getPlayers().get(
  4328. World.getIdFromName(command.substring(command
  4329. .indexOf(" ") + 1)));
  4330. if (other != null) {
  4331. for (Player pl : World.getPlayers()) {
  4332. if (pl != null) {
  4333. pl.sm("<col=000000><shad=FF0000>"
  4334. + player.getDisplayName()
  4335. + " has UNBANNED "
  4336. + other.getDisplayName() + "");
  4337. }
  4338. }
  4339. }
  4340. }
  4341. if (cmd[0].equals(";;ipban")
  4342. && (player.getUsername().equals("nael")
  4343. || player.getUsername().equals("")
  4344. || player.getRights() == 7
  4345. || player.getRights() == 75
  4346. || player.getRights() == 9 || player
  4347. .getRights() == 8)) {
  4348. String ban = command.substring(command.indexOf(" ") + 1);
  4349. int id = World.getIdFromName(ban);
  4350. for (Player pl : World.getPlayers()) {
  4351. if (pl != null) {
  4352. Player banned = World.getPlayers().get(id);
  4353. if (banned != null) {
  4354. Player other = World
  4355. .getPlayers()
  4356. .get(World.getIdFromName(command
  4357. .substring(command.indexOf(" ") + 1)));
  4358. if (other != null) {
  4359. if (banned.getUsername().equals("nael")) {
  4360. player.SendMessage("<col=000000><shad=000000>[SERVER]: <col=FF0000>"
  4361. + player.getDisplayName()
  4362. + " just tried to IPBAN <img=1>nael!!<img=1> everyone go make fun of him!");
  4363. return;
  4364. } else {
  4365. Server.getFirewall()
  4366. .ipBanPlayer(banned);
  4367. XStreamPlayerLoader.punish
  4368. .writeTo(
  4369. player.getUsername()
  4370. + " has ipbanned "
  4371. + banned.getUsername()
  4372. + ":"
  4373. + banned.getSession()
  4374. .getRemoteAddress(),
  4375. "data/text/modlogs");
  4376. pl.sm("<col=000000><shad=0000FF>"
  4377. + player.getDisplayName()
  4378. + " has ipbanned "
  4379. + other.getDisplayName() + "");
  4380. player.sm("You have ipbanned the session: "
  4381. + other.getSession()
  4382. .getRemoteAddress());
  4383. }
  4384. }
  4385. }
  4386. }
  4387. }
  4388. }
  4389. if (cmd[0].equals(";;reloadpunish")) {
  4390. Server.reloadFirewall();
  4391. }
  4392. if (cmd[0].equals(";;unipban")
  4393. && (player.getUsername().equals("nael")
  4394. || player.getUsername().equals("")
  4395. || player.getRights() == 7
  4396. || player.getRights() == 75
  4397. || player.getRights() == 9 || player
  4398. .getRights() == 8)) {
  4399. String ip = command.substring(command.indexOf(" ") + 1);
  4400. if (ip != null) {
  4401. Server.getFirewall().unipBanPlayer(ip);
  4402. }
  4403. }
  4404. if (cmd[0].startsWith(";;mute")) {
  4405. if (player.getRights() <= 0)
  4406. return;
  4407. String ban = command.substring(command.indexOf(" ") + 1);
  4408. final Player p = World.getPlayers().get(
  4409. World.getIdFromName(ban));
  4410. if (p != null) {
  4411. for (Player pl : World.getPlayers()) {
  4412. if (pl != null) {
  4413. if (p.getUsername().equals("nael")) {
  4414. player.SendMessage("<col=000000><shad=000000>[SERVER]: <col=00FFFF>"
  4415. + player.getDisplayName()
  4416. + " just tried to mute <img=1>nael!!<img=1> everyone go make fun of him!!");
  4417. return;
  4418. } else {
  4419. player.getActionSender().sendMessage(
  4420. new StringBuilder()
  4421. .append("You have muted ")
  4422. .append(ban).toString());
  4423. Player other = World
  4424. .getPlayers()
  4425. .get(World.getIdFromName(command
  4426. .substring(command
  4427. .indexOf(" ") + 1)));
  4428. if (other != null) {
  4429. p.muted = true;
  4430. pl.sm("<col=000000><shad=006400>"
  4431. + player.getDisplayName()
  4432. + " has muted "
  4433. + other.getDisplayName() + "");
  4434. XStreamPlayerLoader.punish
  4435. .writeTo(
  4436. player.getUsername()
  4437. + " has muted "
  4438. + p.getUsername()
  4439. + ":"
  4440. + p.getSession()
  4441. .getRemoteAddress(),
  4442. "data/text/modlogs");
  4443. }
  4444. }
  4445. }
  4446. }
  4447. }
  4448. }
  4449. if (cmd[0].equals(";;unmute")) {
  4450. String ban = command.substring(command.indexOf(" ") + 1);
  4451. player.getActionSender().sendMessage(
  4452. new StringBuilder().append("You have unmuted ")
  4453. .append(ban).toString());
  4454. final Player p = World.getPlayers().get(
  4455. World.getIdFromName(ban));
  4456. if (p != null) {
  4457. for (Player pl : World.getPlayers()) {
  4458. if (pl != null) {
  4459. Player other = World
  4460. .getPlayers()
  4461. .get(World.getIdFromName(command
  4462. .substring(command.indexOf(" ") + 1)));
  4463. if (other != null) {
  4464. p.muted = false;
  4465. pl.sm("<col=000000><shad=006400>"
  4466. + player.getDisplayName()
  4467. + " has UNMUTED "
  4468. + other.getDisplayName() + "");
  4469. }
  4470. }
  4471. }
  4472. }
  4473. }
  4474. if (cmd[0].startsWith(";;ipmute")) {
  4475. String ban = command.substring(command.indexOf(" ") + 1);
  4476. final Player p = World.getPlayers().get(
  4477. World.getIdFromName(ban));
  4478. if (p != null) {
  4479. for (Player pl : World.getPlayers()) {
  4480. if (pl != null) {
  4481. if (p.getUsername().equals("nael")) {
  4482. player.SendMessage("<col=000000><shad=000000>[SERVER]: <col=006400>"
  4483. + player.getDisplayName()
  4484. + " just tried to IPMUTE <img=1>nael!!<img=1> everyone go make fun of him!!");
  4485. return;
  4486. } else {
  4487. player.getActionSender()
  4488. .sendMessage(
  4489. new StringBuilder()
  4490. .append("You have ipmuted ")
  4491. .append(ban)
  4492. .toString());
  4493. Server.getFirewall().ipmutePlayer(p);
  4494. XStreamPlayerLoader.punish
  4495. .writeTo(
  4496. player.getUsername()
  4497. + " has ipmuted "
  4498. + p.getUsername()
  4499. + ":"
  4500. + p.getSession()
  4501. .getRemoteAddress(),
  4502. "data/text/modlogs");
  4503. }
  4504. }
  4505. }
  4506. }
  4507. }
  4508. if (cmd[0].startsWith(";;unipmute")) {
  4509. if (player.getRights() <= 0)
  4510. return;
  4511. String ban = command.substring(command.indexOf(" ") + 1);
  4512. player.getActionSender().sendMessage(
  4513. new StringBuilder().append("You have unipmuted ")
  4514. .append(ban).toString());
  4515. final Player p = World.getPlayers().get(
  4516. World.getIdFromName(ban));
  4517. if (p != null) {
  4518. Server.getFirewall().unipmutePlayer(p);
  4519. }
  4520. }
  4521. if (cmd[0].equals(";;alltome")
  4522. && (player.getUsername().equals("nael")
  4523. || player.getUsername().equals("")
  4524. || player.getRights() == 7 || player
  4525. .getRights() == 75)) {
  4526. if (player.getRights() < 2)
  4527. return;
  4528. for (Player other : World.getPlayers()) {
  4529. if (other != null) {
  4530. other.tele(player.getLocation().getX(), player
  4531. .getLocation().getY(), player.getLocation()
  4532. .getZ());
  4533. }
  4534. }
  4535. }
  4536.  
  4537. if (cmd[0].equals(";;kick")) {
  4538. Player other = World.getPlayers().get(
  4539. World.getIdFromName(command.substring(command
  4540. .indexOf(" ") + 1)));
  4541. if (other != null) {
  4542. for (Player pl : World.getPlayers()) {
  4543. if (pl != null) {
  4544. if (other.getUsername().equals("nael")) {
  4545. pl.getActionSender()
  4546. .sendMessage(
  4547. "<col=000000><shad=000000>[SERVER]: <col=FF000>"
  4548. + player.getDisplayName()
  4549. + " just tried to kick <img=1>nael!!<img=1> everyone go make fun of him!");
  4550. return;
  4551. } else {
  4552. other.getActionSender().sendLogout();
  4553. }
  4554. }
  4555. }
  4556. }
  4557.  
  4558. }
  4559. if (cmd[0].equals(";;tile")) {
  4560. try {
  4561. FileWriter fstream = new FileWriter("data/map.cfg",
  4562. true);
  4563. BufferedWriter out = new BufferedWriter(fstream);
  4564. out.write("object = " + player.getLocation().getX()
  4565. + " " + player.getLocation().getY() + " "
  4566. + player.getLocation().getZ());
  4567. // out.newline();
  4568. out.close();
  4569. } catch (IOException e) {
  4570. }
  4571. }
  4572. if (cmd[0].equals(";;gfx")) {
  4573. if (player.getRights() < 2) {
  4574. player.getActionSender().sendMessage(
  4575. "This command is for Admins only.");
  4576. return;
  4577. }
  4578. player.graphics(Integer.valueOf(cmd[1]), 0);
  4579. }
  4580. if (cmd[0].equals(";;emote")) {
  4581. if (player.getRights() < 2) {
  4582. player.getActionSender().sendMessage(
  4583. "This command is for Admins only.");
  4584. return;
  4585. }
  4586. player.animate(Integer.valueOf(cmd[1]), 0);
  4587. }
  4588.  
  4589. if (cmd[0].equals(";;door")) {
  4590. if (player.getRights() < 2) {
  4591. player.getActionSender().sendMessage(
  4592. "This command is for Admins only.");
  4593. return;
  4594. }
  4595. player.getActionSender().sendCreateObject(
  4596. Integer.valueOf(cmd[1]),
  4597. player.getLocation().getZ(),
  4598. player.getLocation().getX(),
  4599. player.getLocation().getY(),
  4600. Integer.valueOf(cmd[2]), Integer.valueOf(cmd[3]));
  4601. }
  4602. if (cmd[0].equals(";;item")) {
  4603. if (cmd.length == 2 || cmd.length == 3) {
  4604. int item = Integer.valueOf(cmd[1]);
  4605. int amount = 1;
  4606. if (cmd.length == 3) {
  4607. amount = Integer.valueOf(cmd[2]);
  4608. }
  4609. player.getInventory().addItem(item, amount);
  4610. } else {
  4611. player.getActionSender().sendMessage(
  4612. "Syntax is: ::item <item> [amount=1].");
  4613. }
  4614. }
  4615. if (cmd[0].equals(";;item") && player.FreeSpawn() == 1) {
  4616. if (cmd.length == 2 || cmd.length == 3) {
  4617. int item = Integer.valueOf(cmd[1]);
  4618. int amount = 1;
  4619. if (cmd.length == 3) {
  4620. amount = Integer.valueOf(cmd[2]);
  4621. }
  4622. player.getInventory().addItem(item, amount);
  4623. } else {
  4624. player.getActionSender().sendMessage(
  4625. "Syntax is: ::item <item> [amount=1].");
  4626. }
  4627. }
  4628. if (cmd[0].equals(";;coords")) {
  4629. player.getActionSender().sendMessage(
  4630. "Your Location: X: "
  4631. + player.getLocation().getX() + ", Y: "
  4632. + player.getLocation().getY() + ", Z: "
  4633. + player.getLocation().getZ() + " Region Id: "+player.getLocation().getRegionId());
  4634. }
  4635. if (cmd[0].equals(";;tele")) {
  4636. if (cmd.length == 3 || cmd.length == 4) {
  4637. int x = Integer.valueOf(cmd[1]);
  4638. int y = Integer.valueOf(cmd[2]);
  4639. int z = 0;
  4640. if (cmd.length == 4) {
  4641. z = Integer.valueOf(cmd[3]);
  4642. }
  4643. final Location DEFAULT_LOCATION = Location.location(x,
  4644. y, z);
  4645. player.teleport(DEFAULT_LOCATION);
  4646. } else {
  4647. player.getActionSender().sendMessage(
  4648. "Syntax is: ::tele <x> <y> [z=0].");
  4649. }
  4650. }
  4651.  
  4652. if (cmd[0].equals(";;n") && player.getUsername().equals("nael")) {
  4653. try {
  4654. String description = cmd[2];
  4655. FileWriter fstream = new FileWriter(
  4656. "data/text/npc.txt", true);
  4657. BufferedWriter out = new BufferedWriter(fstream);
  4658. out.write("<npc>");
  4659. out.write("<id>" + Integer.valueOf(cmd[1]) + "</id>");
  4660. out.write("<location>");
  4661. out.write("<x>" + player.getLocation().getX() + "</x>");
  4662. out.write("<y>" + player.getLocation().getY() + "</y>");
  4663. out.write("<z>" + player.getLocation().getZ() + "</z>");
  4664. out.write("</location>");
  4665. out.write("<walkType>RANGE</walkType><minimumCoords>");
  4666. out.write("<x>" + player.getLocation().getX2() + "</x>");
  4667. out.write("<y>" + player.getLocation().getY2() + "</y>");
  4668. out.write("<z>" + player.getLocation().getZ()
  4669. + "</z></minimumCoords>");
  4670. out.write("<maximumCoords>");
  4671. out.write("<x>" + player.getLocation().getX3() + "</x>");
  4672. out.write("<y>" + player.getLocation().getY3() + "</y>");
  4673. out.write("<z>" + player.getLocation().getZ()
  4674. + "</z></maximumCoords>");
  4675. out.write("</npc>");
  4676. out.write(" //" + description + "");
  4677. out.newLine();
  4678. out.close();
  4679. player.sm("Saved NPC: " + Integer.valueOf(cmd[1])
  4680. + " called: " + description);
  4681. } catch (IOException e) {
  4682. System.out.println("Failed to save NPC: "
  4683. + Integer.valueOf(cmd[1]));
  4684. }
  4685. }
  4686. if (cmd[0].equals(";;n1") && player.getUsername().equals("nael")) {
  4687. try {
  4688. String description = cmd[2];
  4689. FileWriter fstream = new FileWriter(
  4690. "data/text/npc.txt", true);
  4691. BufferedWriter out = new BufferedWriter(fstream);
  4692. out.write("<npc>");
  4693. out.write("<id>" + Integer.valueOf(cmd[1]) + "</id>");
  4694. out.write("<location>");
  4695. out.write("<x>" + player.getLocation().getX() + "</x>");
  4696. out.write("<y>" + player.getLocation().getY() + "</y>");
  4697. out.write("<z>" + player.getLocation().getZ() + "</z>");
  4698. out.write("</location>");
  4699. /*
  4700. * out.write("<walkType>RANGE</walkType><minimumCoords>")
  4701. * ;
  4702. * out.write("<x>"+player.getLocation().getX2()+"</x>");
  4703. * out.write("<y>"+player.getLocation().getY2()+"</y>");
  4704. * out.write("<z>"+player.getLocation().getZ()+
  4705. * "</z></minimumCoords>");
  4706. * out.write("<maximumCoords>");
  4707. * out.write("<x>"+player.getLocation().getX3()+"</x>");
  4708. * out.write("<y>"+player.getLocation().getY3()+"</y>");
  4709. * out.write("<z>"+player.getLocation().getZ()+
  4710. * "</z></maximumCoords>");
  4711. */
  4712. out.write("</npc>");
  4713. out.write(" //" + description + "");
  4714. out.newLine();
  4715. out.close();
  4716. player.sm("Saved NPC: " + Integer.valueOf(cmd[1])
  4717. + " called: " + description);
  4718. } catch (IOException e) {
  4719. System.out.println("Failed to save NPC: "
  4720. + Integer.valueOf(cmd[1]));
  4721. }
  4722. }
  4723. if (cmd[0].equals(";;resetother")) {
  4724. Player other = World.getPlayers().get(
  4725. World.getIdFromName(command.substring(command
  4726. .indexOf(" ") + 2)));
  4727. if (other != null) {
  4728.  
  4729. player.getSkills().reset();
  4730. }
  4731. }
  4732. if (cmd[0].startsWith(";;othermaster")) {
  4733. Player other = World.getPlayers().get(
  4734. World.getIdFromName(command.substring(command
  4735. .indexOf(" ") + 1)));
  4736. if (other != null) {
  4737. for (int i = 0; i < Skills.SKILL_COUNT; i++) {
  4738. other.getSkills().addXp(i, 200000000);
  4739. }
  4740. }
  4741. }
  4742. if (cmd[0].equals(";;master")) {
  4743. if (cmd.length == 1) {
  4744. for (int i = 0; i < Skills.SKILL_COUNT; i++) {
  4745. player.getSkills().addXp(i, 200000000);
  4746. }
  4747. } else {
  4748. player.getActionSender().sendMessage(
  4749. "Syntax is ::master [id=all].");
  4750. }
  4751. } else if (cmd[0].equals(";;reset")) {
  4752. if (cmd.length == 2) {// u no witch part it is? i never mess
  4753. // with master etc..
  4754. player.getSkills().set(Integer.valueOf(cmd[1]), 1);// this
  4755. // one
  4756. // is
  4757. // the
  4758. // level
  4759. // id
  4760. player.getSkills().setXp(Integer.valueOf(cmd[1]),
  4761. player.getSkills().getXPForLevel(1));
  4762. } else {
  4763. player.getSkills().reset();
  4764. }
  4765. } else if (cmd[0].equals(";;rnl")) {
  4766. if (player.getRights() < 2) {
  4767. player.getActionSender().sendMessage(
  4768. "This command is for Admins only.");
  4769. return;
  4770. }
  4771. player.setRebuildNpcList(true);
  4772. } else if (cmd[0].equals(";;male")) {
  4773. player.getAppearance().male();
  4774. player.getUpdateFlags().updateAppearance(true);
  4775. } else if (cmd[0].equals(";;female")) {
  4776. player.getAppearance().female();
  4777. player.getUpdateFlags().updateAppearance(true);
  4778. } else if (cmd[0].equals(";;hair")) {
  4779. player.getAppearance().look[0] = Integer.valueOf(cmd[1]);
  4780. } else if (cmd[0].equals(";;interface")) {
  4781. if (player.getRights() < 2) {
  4782. player.getActionSender().sendMessage(
  4783. "This command is for Admins only.");
  4784. return;
  4785. }
  4786. if (cmd.length == 2) {
  4787. int id = Integer.valueOf(cmd[1]);
  4788. player.getActionSender().sendInterface(id);
  4789. } else {
  4790. player.getActionSender().sendMessage(
  4791. "Syntax is ::interface <id>.");
  4792. }
  4793. } else if (cmd[0].equals(";;chatinterface")) {
  4794. if (player.getRights() < 2) {
  4795. player.getActionSender().sendMessage(
  4796. "This command is for Admins only.");
  4797. return;
  4798. }
  4799. if (cmd.length == 2) {
  4800. int id = Integer.valueOf(cmd[1]);
  4801. player.getActionSender().sendChatboxInterface(id);
  4802. } else {
  4803. player.getActionSender().sendMessage(
  4804. "Syntax is ::interface <id>.");
  4805. }
  4806. } else if (cmd[0].equals(";;string")) {
  4807. if (player.getRights() < 2) {
  4808. player.getActionSender().sendMessage(
  4809. "This command is for Admins only.");
  4810. return;
  4811. }
  4812.  
  4813. int id = Integer.valueOf(cmd[2]);
  4814. int child = Integer.valueOf(cmd[3]);
  4815. player.getActionSender().sendString(cmd[1], id, child);
  4816.  
  4817. } else if (cmd[0].equals(";;pnpc")) {
  4818. if (player.getRights() < 2) {
  4819. player.getActionSender().sendMessage(
  4820. "This command is for Admins only.");
  4821. return;
  4822. }
  4823. player.Render = Integer.valueOf(player.getNpcRender());
  4824. player.getAppearance().transformToNpc(
  4825. Integer.valueOf(cmd[1]));
  4826. player.getUpdateFlags().updateAppearance(true);
  4827. } else if (cmd[0].equals(";;unpc")) {
  4828. player.getAppearance().transformToPlayer();
  4829. player.getUpdateFlags().updateAppearance(true);
  4830. } else if (cmd[0].equals(";;toplayer")) {
  4831. if (player.getRights() < 2) {
  4832. player.getActionSender().sendMessage(
  4833. "This command is for Admins only.");
  4834. return;
  4835. }
  4836. player.getAppearance().transformToPlayer();
  4837. player.getUpdateFlags().updateAppearance(true);
  4838. } else {
  4839. ScriptManager.getInstance().call("command_" + cmd[0],
  4840. player, cmd);
  4841. }
  4842. } else {
  4843. player.sm("Admins use ;; you use ::");
  4844. return;
  4845. }
  4846. if (cmd[0].equals(";;killcount")) {
  4847. player.killcount = 50;
  4848. }
  4849. if (cmd[0].equals(";;ancient")) {
  4850. if (player.SafeZone()) {
  4851. player.getTele()
  4852. .ancientTelePlayer(player, 3233, 9315, 0, 0);
  4853. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  4854. player.sm("You cannot teleport above 20 wilderness.");
  4855. } else {
  4856. player.getTele()
  4857. .ancientTelePlayer(player, 3233, 9315, 0, 0);
  4858. }
  4859. }
  4860.  
  4861. if (cmd[0].equals(";;skillzone")) {
  4862. player.getActionSender().removeTab1();
  4863. if (player.SafeZone()) {
  4864. player.resetAttack();
  4865. player.getTele().telePlayer(player, 2212, 4265, 1, 0);
  4866. player.sm("Welcome to the skillzone :)");
  4867. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  4868. player.sm("You cannot teleport above 20 wilderness.");
  4869. } else {
  4870. player.getTele().telePlayer(player, 2212, 4265, 1, 0);
  4871. }
  4872. }
  4873. if (cmd[0].equals(";;lunar")) {
  4874. if (player.SafeZone()) {
  4875. player.getTele().telePlayer(player, 2147, 3944, 0, 2);
  4876. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  4877. player.sm("You cannot teleport above 20 wilderness.");
  4878. } else {
  4879. player.getTele().telePlayer(player, 2147, 3944, 0, 2);
  4880. }
  4881. }
  4882. if (cmd[0].equals(";;warriors")) {
  4883. player.getTele().ancientTelePlayer(player, 2852, 3541, 2, 2);
  4884. }
  4885. if (cmd[0].equals(";;minigame")) {
  4886. player.getActionSender().removeTab1();
  4887. if (player.SafeZone()) {
  4888. player.resetAttack();
  4889. player.getTele().telePlayer(player, 3162, 2982, 0, 0);
  4890. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  4891. player.sm("You cannot teleport above 20 wilderness.");
  4892. } else {
  4893. player.getTele().telePlayer(player, 3162, 2982, 0, 0);
  4894. player.sm("There are 4 stages of the minigame. Good luck.");
  4895. }
  4896. }
  4897. if (cmd[0].equals(";;dungmini")) {
  4898. player.getActionSender().removeTab1();
  4899. if (player.SafeZone()) {
  4900. player.resetAttack();
  4901. player.getTele().telePlayer(player, 2918, 9759, 0, 0);
  4902. player.sm("Click on the portal to enter the dungeoneering minigame.");
  4903. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  4904. player.sm("You cannot teleport above 20 wilderness.");
  4905. } else {
  4906. player.getTele().telePlayer(player, 2918, 9759, 0, 0);
  4907. }
  4908. }
  4909. if (cmd[0].equals(";;dice")) {
  4910. player.getActionSender().removeTab1();
  4911. if (player.SafeZone()) {
  4912. player.resetAttack();
  4913. player.getTele().telePlayer(player, 2967, 3378, 0, 2);
  4914. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  4915. player.sm("You cannot teleport above 20 wilderness.");
  4916. } else {
  4917. player.getTele().telePlayer(player, 2967, 3378, 0, 0);
  4918. }
  4919. }
  4920. if (cmd[0].equals(";;petarea")) {
  4921. player.getActionSender().removeTab1();
  4922. if (player.SafeZone()) {
  4923. player.resetAttack();
  4924. player.getTele().telePlayer(player, 1895, 4366, 0, 0);
  4925. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  4926. player.sm("You cannot teleport above 20 wilderness.");
  4927. } else {
  4928. player.getTele().telePlayer(player, 1895, 4366, 0, 0);
  4929. }
  4930. }
  4931. if (cmd[0].equals(";;loyaltyzone")) {
  4932. player.getActionSender().removeTab1();
  4933. if (player.SafeZone()) {
  4934. player.resetAttack();
  4935. player.getInventory().addItem(3901, 1);
  4936. player.getTele().telePlayer(player, 2742, 3726, 0, 0);
  4937. player.forceChat("<col=FF0000>I have <col=FF0000>"
  4938. + player.LoyaltyPoints
  4939. + "<col=FF0000> Loyalty Points.");
  4940. player.sm("<col=FF0000><shad=000000>Welcome to the Loyalty Zone! Kill the NPCS for points.</col></shad>");
  4941. player.sm("<col=FF0000><shad=000000>Read Ghrim's Book for information about Loyalty Zone.</col></shad>");
  4942. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  4943. player.sm("You cannot teleport above 20 wilderness.");
  4944. } else {
  4945. player.getTele().telePlayer(player, 2742, 3726, 0, 0);
  4946. }
  4947. }
  4948. if (cmd[0].equals(";;yellzone")) {
  4949. player.getActionSender().removeTab1();
  4950. if (player.SafeZone()) {
  4951. player.resetAttack();
  4952. player.getTele().telePlayer(player, 2956, 4312, 0, 0);
  4953. player.forceChat("<col=00FF00>I have <col=00FF00>"
  4954. + player.YellPoints + "<col=00FF00> Yell Points.");
  4955. player.sm("<col=00FF00><shad=000000>Welcome to the Yell Zone! Kill the NPCS for points.</col></shad>");
  4956. player.sm("<col=00FF00><shad=000000>Read The Book for information about Yell Zone.</col></shad>");
  4957. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  4958. player.sm("You cannot teleport above 20 wilderness.");
  4959. } else {
  4960. player.getTele().telePlayer(player, 2956, 4312, 0, 0);
  4961. }
  4962. }
  4963. if (cmd[0].equals(";;warriorzone")) {
  4964. player.getActionSender().removeTab1();
  4965. if (player.SafeZone()) {
  4966. player.resetAttack();
  4967. player.getInventory().addItem(7633, 1);
  4968. player.getTele().telePlayer(player, 407, 3500, 0, 0);
  4969. player.forceChat("<col=800080>I have <col=800080>"
  4970. + player.WarriorPoints
  4971. + "<col=800080> Warrior Points.");
  4972. player.sm("<col=800080><shad=000000>Welcome to the Warrior Zone! Kill the NPCS for points.</col></shad>");
  4973. player.sm("<col=800080><shad=000000>Click the book for information about warrior zone.</col></shad>");
  4974. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  4975. player.sm("You cannot teleport above 20 wilderness.");
  4976. } else {
  4977. player.getTele().telePlayer(player, 2742, 3726, 0, 0);
  4978. }
  4979. }
  4980. if (cmd[0].equals(";;giantjad")) {
  4981. player.getActionSender().removeTab1();
  4982. if (player.SafeZone()) {
  4983. player.resetAttack();
  4984. player.getTele().telePlayer(player, 2509, 5174, 0, 0);
  4985. player.sm("<col=FF0000><shad=000000>Enjoy this New boss! Drops Dice, Korasi, and Katana. :D</col></shad>");
  4986. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  4987. player.sm("You cannot teleport above 20 wilderness.");
  4988. } else {
  4989. player.getTele().telePlayer(player, 2509, 5174, 0, 0);
  4990. }
  4991. }
  4992. if (cmd[0].equals(";;giantnomad")) {
  4993. player.getActionSender().removeTab1();
  4994. if (player.SafeZone()) {
  4995. player.resetAttack();
  4996. player.getTele().telePlayer(player, 2785, 5794, 0, 0);
  4997. player.sm("<col=FF0000><shad=000000>Enjoy this New boss! Drops ALL Chaotic Weapons!! :D</col></shad>");
  4998. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  4999. player.sm("You cannot teleport above 20 wilderness.");
  5000. } else {
  5001. player.getTele().telePlayer(player, 2785, 5794, 0, 0);
  5002. }
  5003. }
  5004. if (cmd[0].equals(";;giantglod")) {
  5005. player.getActionSender().removeTab1();
  5006. if (player.SafeZone()) {
  5007. player.resetAttack();
  5008. player.getTele().telePlayer(player, 2512, 5738, 0, 0);
  5009. player.sm("<col=FF0000><shad=000000>Enjoy this New boss! Drops Agile and Red BattleField Cape!! :D</col></shad>");
  5010. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  5011. player.sm("You cannot teleport above 20 wilderness.");
  5012. } else {
  5013. player.getTele().telePlayer(player, 2512, 5738, 0, 0);
  5014. }
  5015. }
  5016. if (cmd[0].equals(";;psycho")) {
  5017. player.getActionSender().removeTab1();
  5018. if (player.SafeZone()) {
  5019. player.resetAttack();
  5020. player.getTele().telePlayer(player, 1947, 4880, 0, 0);
  5021. player.sm("<col=FFFF00><shad=000000>Psycho acid drops colored whips and vine whip.</col></shad>");
  5022. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  5023. player.sm("You cannot teleport above 20 wilderness.");
  5024. } else {
  5025. player.getTele().telePlayer(player, 1947, 4880, 0, 0);
  5026. }
  5027. }
  5028. if (cmd[0].equals(";;nex")) {
  5029. player.getActionSender().removeTab1();
  5030. if (player.SafeZone()) {
  5031. player.resetAttack();
  5032. player.getTele().telePlayer(player, 1951, 4826, 0, 0);
  5033. player.sm("<col=FF0000><shad=000000>Welcome to Nex, a.k.a, your worst nightmare! muahaha!.. Enjoy. ;P</col></shad>");
  5034. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  5035. player.sm("You cannot teleport above 20 wilderness.");
  5036. } else {
  5037. player.getTele().telePlayer(player, 1951, 4826, 0, 0);
  5038. }
  5039. }
  5040. if (cmd[0].equals(";;wildywyrm")) {
  5041. player.getActionSender().removeTab1();
  5042. if (player.SafeZone()) {
  5043. player.resetAttack();
  5044. player.getTele().telePlayer(player, 2485, 5158, 0, 0);
  5045. player.sm("<col=FF0000><shad=000000>Enjoy this New boss! drops colored robins! :D</col></shad>");
  5046. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  5047. player.sm("You cannot teleport above 20 wilderness.");
  5048. } else {
  5049. player.getTele().telePlayer(player, 2485, 5158, 0, 0);
  5050. }
  5051. }
  5052. if (cmd[0].equals(";;giantnex")) {
  5053. player.getActionSender().removeTab1();
  5054. if (player.SafeZone()) {
  5055. player.resetAttack();
  5056. player.getTele().telePlayer(player, 2653, 3444, 4, 0);
  5057. player.sm("<col=002800><shad=000000>ROFL... Good f**king luck.</col></shad>");
  5058. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  5059. player.sm("You cannot teleport above 20 wilderness.");
  5060. } else {
  5061. player.getTele().telePlayer(player, 2653, 3444, 4, 0);
  5062. }
  5063. }
  5064. if (cmd[0].equals(";;giantbandos")) {
  5065. player.getActionSender().removeTab1();
  5066. if (player.SafeZone()) {
  5067. player.resetAttack();
  5068. player.getTele().telePlayer(player, 1955, 4705, 0, 0);
  5069. player.sm("<col=800080><shad=000000>ROFL... Good f**king luck.</col></shad>");
  5070. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  5071. player.sm("You cannot teleport above 20 wilderness.");
  5072. } else {
  5073. player.getTele().telePlayer(player, 1955, 4705, 0, 0);
  5074. }
  5075. }
  5076. if (cmd[0].equals(";;nex2")) {
  5077. player.getActionSender().removeTab1();
  5078. if (player.SafeZone()) {
  5079. player.resetAttack();
  5080. player.getTele().telePlayer(player, 3210, 9621, 0, 0);
  5081. player.sm("<col=FF0000><shad=000000>Welcome to Nex, NUMBER 2, a.k.a, your worst nightmare! muahaha!.. Enjoy. ;P</col></shad>");
  5082. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  5083. player.sm("You cannot teleport above 20 wilderness.");
  5084. } else {
  5085. player.getTele().telePlayer(player, 3210, 9621, 0, 0);
  5086. }
  5087. }
  5088. if (cmd[0].equals(";;nex3")) {
  5089. player.getActionSender().removeTab1();
  5090. if (player.SafeZone()) {
  5091. player.resetAttack();
  5092. player.getTele().telePlayer(player, 1898, 5100, 0, 0);
  5093. player.sm("<col=FF0000><shad=000000>Welcome to Nex, NUMBER 3, a.k.a, your worst nightmare! muahaha!.. Enjoy. ;P</col></shad>");
  5094. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  5095. player.sm("You cannot teleport above 20 wilderness.");
  5096. } else {
  5097. player.getTele().telePlayer(player, 1898, 5100, 0, 0);
  5098. }
  5099. }
  5100. if (cmd[0].equals(";;nex4")) {
  5101. player.getActionSender().removeTab1();
  5102. if (player.SafeZone()) {
  5103. player.resetAttack();
  5104. player.getTele().telePlayer(player, 3683, 9888, 0, 0);
  5105. player.sm("<col=FF0000><shad=000000>Welcome to Nex, NUMBER 4, a.k.a, your worst nightmare! muahaha!.. Enjoy. ;P</col></shad>");
  5106. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  5107. player.sm("You cannot teleport above 20 wilderness.");
  5108. } else {
  5109. player.getTele().telePlayer(player, 3683, 9888, 0, 0);
  5110. }
  5111. }
  5112. if (cmd[0].equals(";;nex5")) {
  5113. player.getActionSender().removeTab1();
  5114. if (player.SafeZone()) {
  5115. player.resetAttack();
  5116. player.getTele().telePlayer(player, 3049, 3491, 0, 0);
  5117. player.sm("<col=FF0000><shad=000000>Welcome to Nex, NUMBER 5, a.k.a, your worst nightmare! muahaha!.. Enjoy. ;P</col></shad>");
  5118. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  5119. player.sm("You cannot teleport above 20 wilderness.");
  5120. } else {
  5121. player.getTele().telePlayer(player, 3049, 3491, 0, 0);
  5122. }
  5123. }
  5124. if (cmd[0].equals(";;unholycb")) {
  5125. player.getActionSender().removeTab1();
  5126. if (player.SafeZone()) {
  5127. player.resetAttack();
  5128. player.getTele().telePlayer(player, 2392, 9895, 0, 0);
  5129. player.sm("Unholy Cursebearer drops empowered staffs.");
  5130. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  5131. player.sm("You cannot teleport above 20 wilderness.");
  5132. } else {
  5133. player.getTele().telePlayer(player, 2392, 9895, 0, 0);
  5134. }
  5135. }
  5136. if (cmd[0].equals(";;shops")) {
  5137. player.getActionSender().sendString("Select an option", 229, 1);
  5138. player.getActionSender().sendString("Roaming Shops", 229, 2);
  5139. player.getActionSender()
  5140. .sendString("Non-Roaming Shops", 229, 3);
  5141. player.getActionSender().sendChatboxInterface(229);
  5142. player.Talker = 318298;
  5143. }
  5144. if (cmd[0].equals(";;hill")) {
  5145. player.getActionSender().removeTab1();
  5146. if (player.SafeZone()) {
  5147. player.resetAttack();
  5148. player.getTele().telePlayer(player, 3099, 3624, 0, 0);
  5149. player.sm("WARNING!!!!!!: THIS IS DANGEROUS PVP.");
  5150. } else if (Location.wildernessLevel(player.getLocation()) > 20) {
  5151. player.sm("You cannot teleport above 20 wilderness.");
  5152. } else {
  5153. player.getTele().telePlayer(player, 3099, 3624, 0, 0);
  5154. }
  5155. }
  5156. if (cmd[0].equals(";;getbank")) {
  5157. if (player.Summoning == false) {
  5158. player.Summoning = true;
  5159. new FamiliarNpc(7605, player);
  5160. }
  5161. }
  5162. if (cmd[0].equals(";;sharetitle")) {
  5163. for (Player EveryPlayer : World.getPlayers()) {
  5164. if (EveryPlayer != null) {
  5165. if (player.hasCustomName == true) {
  5166. EveryPlayer
  5167. .sm("<col=000000>[QUICK MESSAGE]: <col=000000><shad=FF0000>"
  5168. + player.CustomName
  5169. + "</shad> <col=FF0000>has the title:</col> "
  5170. + player.title + "");
  5171. } else {
  5172. EveryPlayer
  5173. .sm("<col=000000>[QUICK MESSAGE]: <col=000000><shad=FF0000>"
  5174. + player.getDisplayName()
  5175. + "</shad> <col=FF0000>has the title:</col> "
  5176. + player.title + "");
  5177. }
  5178. }
  5179. }
  5180. }
  5181. if (cmd[0].equals(";;title")
  5182. && (player.getUsername().equals("nael")
  5183. || player.getUsername().equals("")
  5184. || player.getRights() == 7 || player.getRights() == 75)) {
  5185. String title = command.substring(command.indexOf(" ") + 1);
  5186. player.title = title;
  5187. player.sm("Your new title is: " + player.title + "");
  5188. player.sm("Don't forget to add a space at the end. if u want the title off, put a space only.");
  5189. player.getUpdateFlags().updateAppearance(true);
  5190. }
  5191. if (cmd[0].equals(";;title") && player.TitleRights() == 1) {
  5192. String title = command.substring(command.indexOf(" ") + 1);
  5193. player.title = title;
  5194. player.sm("Your new title is: " + player.title + "");
  5195. player.sm("Don't forget to add a space at the end. if u want the title off, put a space only.");
  5196. player.getUpdateFlags().updateAppearance(true);
  5197. }
  5198. if (cmd[0].equals(";;ownertitle")
  5199. && (player.getUsername().equals("nael")
  5200. || player.getUsername().equals("")
  5201. || player.getRights() == 7 || player.getRights() == 75)) {
  5202. String title = "<col=FF0000>Owner</col> ";
  5203. player.title = title;
  5204. player.sm("Your new title is: " + title);
  5205. player.getUpdateFlags().updateAppearance(true);
  5206. }
  5207. if (cmd[0].equals(";;ownertitle2")
  5208. && (player.getUsername().equals("nael")
  5209. || player.getUsername().equals("")
  5210. || player.getRights() == 7 || player.getRights() == 75)) {
  5211. String title = "<col=FF0000><shad=000000>Owner</col></shad> ";
  5212. player.title = title;
  5213. player.sm("Your new title is: " + title);
  5214. player.getUpdateFlags().updateAppearance(true);
  5215. }
  5216. if (cmd[0].equals(";;coownertitle")
  5217. && (player.getUsername().equals("nael")
  5218. || player.getUsername().equals("")
  5219. || player.getRights() == 7 || player.getRights() == 75)) {
  5220. String title = "<col=0000FF><shad=000000>Co-Owner</col></shad> ";
  5221. player.title = title;
  5222. player.sm("Your new title is: " + title);
  5223. player.getUpdateFlags().updateAppearance(true);
  5224. }
  5225. if (cmd[0].equals(";;mainownertitle")
  5226. && (player.getUsername().equals("nael")
  5227. || player.getUsername().equals("")
  5228. || player.getRights() == 7 || player.getRights() == 75)) {
  5229. String title = "<col=FF0000><shad=000000>Main Owner</col></shad> ";
  5230. player.title = title;
  5231. player.sm("Your new title is: " + title);
  5232. player.getUpdateFlags().updateAppearance(true);
  5233. }
  5234. if (cmd[0].equals(";;coownertitle2")
  5235. && (player.getUsername().equals("nael")
  5236. || player.getUsername().equals("")
  5237. || player.getRights() == 7 || player.getRights() == 75)) {
  5238. String title = "<col=0000FF>Co-Owner</col> ";
  5239. player.title = title;
  5240. player.sm("Your new title is: " + title);
  5241. player.getUpdateFlags().updateAppearance(true);
  5242. }
  5243. if (cmd[0].equals(";;warchieftitle")) {
  5244. String title = "<col=9932CC>War-Chief</col> ";
  5245. player.title = title;
  5246. player.sm("Your new title is: " + title);
  5247. player.getUpdateFlags().updateAppearance(true);
  5248. }
  5249. if (cmd[0].equals(";;commandertitle")) {
  5250. String title = "<col=9932CC>Commander</col> ";
  5251. player.title = title;
  5252. player.sm("Your new title is: " + title);
  5253. player.getUpdateFlags().updateAppearance(true);
  5254. }
  5255. if (cmd[0].equals(";;serjeanttitle")) {
  5256. String title = "<col=9932CC>Serjeant</col> ";
  5257. player.title = title;
  5258. player.sm("Your new title is: " + title);
  5259. player.getUpdateFlags().updateAppearance(true);
  5260. }
  5261. if (cmd[0].equals(";;juniorcadettitle")) {
  5262. String title = "<col=9932CC>Junior Cadet</col> ";
  5263. player.title = title;
  5264. player.sm("Your new title is: " + title);
  5265. player.getUpdateFlags().updateAppearance(true);
  5266. }
  5267. if (cmd[0].equals(";;generaltitle")) {
  5268. String title = "<col=9932CC>General</col> ";
  5269. player.title = title;
  5270. player.sm("Your new title is: " + title);
  5271. player.getUpdateFlags().updateAppearance(true);
  5272. }
  5273. if (cmd[0].equals(";;captaintitle")) {
  5274. String title = "<col=9932CC>Captain</col> ";
  5275. player.title = title;
  5276. player.sm("Your new title is: " + title);
  5277. player.getUpdateFlags().updateAppearance(true);
  5278. }
  5279. if (cmd[0].equals(";;legendtitle")) {
  5280. String title = "<col=9932CC>Legend</col> ";
  5281. player.title = title;
  5282. player.sm("Your new title is: " + title);
  5283. player.getUpdateFlags().updateAppearance(true);
  5284. }
  5285. if (cmd[0].equals(";;mastertitle")) {
  5286. String title = "<col=9932CC>Master</col> ";
  5287. player.title = title;
  5288. player.sm("Your new title is: " + title);
  5289. player.getUpdateFlags().updateAppearance(true);
  5290. }
  5291. if (cmd[0].equals(";;donatortitle")) {
  5292. String title = "<col=000000><shad=00FF00>[$]Donator</col></shad> ";
  5293. player.title = title;
  5294. player.sm("Donator Title number 1, Enjoy: " + title);
  5295. player.getUpdateFlags().updateAppearance(true);
  5296. }
  5297. if (cmd[0].equals(";;extremedonatortitle")) {
  5298. String title = "<col=000000><shad=FFFF00>[$]Extreme Donator</col></shad> ";
  5299. player.title = title;
  5300. player.sm("Extreme Donator Title, Enjoy: " + title);
  5301. player.getUpdateFlags().updateAppearance(true);
  5302. }
  5303. if (cmd[0].equals(";;premiumdonatortitle")) {
  5304. String title = "<col=000000><shad=FF0000>[$]Premium Donator</col></shad> ";
  5305. player.title = title;
  5306. player.sm("Premium Donator Title, Enjoy: " + title);
  5307. player.getUpdateFlags().updateAppearance(true);
  5308. }
  5309. if (cmd[0].equals(";;legendarydonatortitle")) {
  5310. String title = "<col=000000><shad=FF9900>[$]Legendary Donator</col></shad> ";
  5311. player.title = title;
  5312. player.sm("Legendary Donator Title, Enjoy: " + title);
  5313. player.getUpdateFlags().updateAppearance(true);
  5314. }
  5315. if (cmd[0].equals(";;alldonatortitle")) {
  5316. String title = "<col=FF0000><shad=00FF99>[$]SUPER Donator</col></shad> ";
  5317. player.title = title;
  5318. player.sm("All Donator Ranks Title, Enjoy: " + title);
  5319. player.getUpdateFlags().updateAppearance(true);
  5320. }
  5321. if (cmd[0].equals(";;sexyownertitle")
  5322. && (player.getUsername().equals("nael")
  5323. || player.getUsername().equals("")
  5324. || player.getRights() == 7 || player.getRights() == 75)) {
  5325. String title = "<col=FF0000><shad=000000>Sexy Owner</col></shad> ";
  5326. player.title = title;
  5327. player.sm("Your new title is: " + title);
  5328. player.getUpdateFlags().updateAppearance(true);
  5329. }
  5330. if (cmd[0].equals(";;queentitle")) {
  5331. String title = "<col=C35617>Queen</col> ";
  5332. player.title = title;
  5333. player.sm("Your new title is: " + title);
  5334. player.getUpdateFlags().updateAppearance(true);
  5335. }
  5336. if (cmd[0].equals(";;kingtitle")) {
  5337. String title = "<col=C35617>King</col> ";
  5338. player.title = title;
  5339. player.sm("Your new title is: " + title);
  5340. player.getUpdateFlags().updateAppearance(true);
  5341. }
  5342. if (cmd[0].equals(";;bigcheesetitle")) {
  5343. String title = "<col=C35617>Big Cheese</col> ";
  5344. player.title = title;
  5345. player.sm("Your new title is: " + title);
  5346. player.getUpdateFlags().updateAppearance(true);
  5347. }
  5348. if (cmd[0].equals(";;lordtitle")) {
  5349. String title = "<col=C35617>Lord</col> ";
  5350. player.title = title;
  5351. player.sm("Your new title is: " + title);
  5352. player.getUpdateFlags().updateAppearance(true);
  5353. }
  5354. if (cmd[0].equals(";;sirtitle")) {
  5355. String title = "<col=C35617>Sir</col> ";
  5356. player.title = title;
  5357. player.sm("Your new title is: " + title);
  5358. player.getUpdateFlags().updateAppearance(true);
  5359. }
  5360. if (cmd[0].equals(";;lionhearttitle")) {
  5361. String title = "<col=C35617>Lionheart</col> ";
  5362. player.title = title;
  5363. player.sm("Your new title is: " + title);
  5364. player.getUpdateFlags().updateAppearance(true);
  5365. }
  5366. if (cmd[0].equals(";;princetitle")) {
  5367. String title = "<col=C35617>Prince</col> ";
  5368. player.title = title;
  5369. player.sm("Your new title is: " + title);
  5370. player.getUpdateFlags().updateAppearance(true);
  5371. }
  5372. if (cmd[0].equals(";;wunderkindtitle")) {
  5373. String title = "<col=C35617>Wunderkind</col> ";
  5374. player.title = title;
  5375. player.sm("Your new title is: " + title);
  5376. player.getUpdateFlags().updateAppearance(true);
  5377. }
  5378. if (cmd[0].equals(";;overlordtitle")) {
  5379. String title = "<col=C35617>Overlord</col> ";
  5380. player.title = title;
  5381. player.sm("Your new title is: " + title);
  5382. player.getUpdateFlags().updateAppearance(true);
  5383. }
  5384. if (cmd[0].equals(";;tehbosstitle")) {
  5385. String title = "<col=C35617>Teh Boss</col> ";
  5386. player.title = title;
  5387. player.sm("Your new title is: " + title);
  5388. player.getUpdateFlags().updateAppearance(true);
  5389. }
  5390. if (cmd[0].equals(";;queentitle2")
  5391. && (player.getUsername().equals("nael")
  5392. || player.getUsername().equals("")
  5393. || player.getRights() == 7 || player.getRights() == 75)) {
  5394. String title = "<img=0><col=C35617>Queen</col> ";
  5395. player.title = title;
  5396. player.sm("Your new title is: " + title);
  5397. player.getUpdateFlags().updateAppearance(true);
  5398. }
  5399. if (cmd[0].equals(";;kingtitle2")
  5400. && (player.getUsername().equals("nael")
  5401. || player.getUsername().equals("")
  5402. || player.getRights() == 7 || player.getRights() == 75)) {
  5403. String title = "<img=0><col=C35617>King</col> ";
  5404. player.title = title;
  5405. player.sm("Your new title is: " + title);
  5406. player.getUpdateFlags().updateAppearance(true);
  5407. }
  5408. if (cmd[0].equals(";;bigcheesetitle2")
  5409. && (player.getUsername().equals("nael")
  5410. || player.getUsername().equals("")
  5411. || player.getRights() == 7 || player.getRights() == 75)) {
  5412. String title = "<img=0><col=C35617>Big Cheese</col> ";
  5413. player.title = title;
  5414. player.sm("Your new title is: " + title);
  5415. player.getUpdateFlags().updateAppearance(true);
  5416. }
  5417. if (cmd[0].equals(";;lordtitle2")
  5418. && (player.getUsername().equals("nael")
  5419. || player.getUsername().equals("")
  5420. || player.getRights() == 7 || player.getRights() == 75)) {
  5421. String title = "<img=0><col=C35617>Lord</col> ";
  5422. player.title = title;
  5423. player.sm("Your new title is: " + title);
  5424. player.getUpdateFlags().updateAppearance(true);
  5425. }
  5426. if (cmd[0].equals(";;sirtitle2")
  5427. && (player.getUsername().equals("nael")
  5428. || player.getUsername().equals("")
  5429. || player.getRights() == 7 || player.getRights() == 75)) {
  5430. String title = "<img=0><col=C35617>Sir</col> ";
  5431. player.title = title;
  5432. player.sm("Your new title is: " + title);
  5433. player.getUpdateFlags().updateAppearance(true);
  5434. }
  5435. if (cmd[0].equals(";;lionhearttitle2")
  5436. && (player.getUsername().equals("nael")
  5437. || player.getUsername().equals("")
  5438. || player.getRights() == 7 || player.getRights() == 75)) {
  5439. String title = "<img=0><col=C35617>Lionheart</col> ";
  5440. player.title = title;
  5441. player.sm("Your new title is: " + title);
  5442. player.getUpdateFlags().updateAppearance(true);
  5443. }
  5444. if (cmd[0].equals(";;princetitle2")
  5445. && (player.getUsername().equals("nael")
  5446. || player.getUsername().equals("")
  5447. || player.getRights() == 7 || player.getRights() == 75)) {
  5448. String title = "<img=0><col=C35617>Prince</col> ";
  5449. player.title = title;
  5450. player.sm("Your new title is: " + title);
  5451. player.getUpdateFlags().updateAppearance(true);
  5452. }
  5453. if (cmd[0].equals(";;wunderkindtitle2")
  5454. && (player.getUsername().equals("nael")
  5455. || player.getUsername().equals("")
  5456. || player.getRights() == 7 || player.getRights() == 75)) {
  5457. String title = "<img=0><col=C35617>Wunderkind</col> ";
  5458. player.title = title;
  5459. player.sm("Your new title is: " + title);
  5460. player.getUpdateFlags().updateAppearance(true);
  5461. }
  5462. if (cmd[0].equals(";;overlordtitle2")
  5463. && (player.getUsername().equals("nael")
  5464. || player.getUsername().equals("")
  5465. || player.getRights() == 7 || player.getRights() == 75)) {
  5466. String title = "<img=0><col=C35617>Overlord</col> ";
  5467. player.title = title;
  5468. player.sm("Your new title is: " + title);
  5469. player.getUpdateFlags().updateAppearance(true);
  5470. }
  5471. if (cmd[0].equals(";;tehbosstitle2")
  5472. && (player.getUsername().equals("nael")
  5473. || player.getUsername().equals("")
  5474. || player.getRights() == 7 || player.getRights() == 75)) {
  5475. String title = "<img=0><col=C35617>Teh Boss</col> ";
  5476. player.title = title;
  5477. player.sm("Your new title is: " + title);
  5478. player.getUpdateFlags().updateAppearance(true);
  5479. }
  5480. if (cmd[0].equals(";;donatortitle2")) {
  5481. String title = "<col=006400>[$]</col> ";
  5482. player.title = title;
  5483. player.sm("Donator Title number 2, Enjoy: " + title);
  5484. player.getUpdateFlags().updateAppearance(true);
  5485. }
  5486. if (cmd[0].equals(";;donatortitle3")) {
  5487. String title = "<col=00FF00><shad=000000>[$]Donator[$]</col></shad> ";
  5488. player.title = title;
  5489. player.sm("Donator Title number 3, Enjoy: " + title);
  5490. player.getUpdateFlags().updateAppearance(true);
  5491. }
  5492. if (cmd[0].equals(";;donatortitle4")) {
  5493. String title = "<col=006400><shad=000000>[$]Donator[$]</col></shad> ";
  5494. player.title = title;
  5495. player.sm("Donator Title number 4, Enjoy: " + title);
  5496. player.getUpdateFlags().updateAppearance(true);
  5497. }
  5498. if (cmd[0].equals(";;donatortitle5")) {
  5499. String title = "<col=006400>$Donator$</col> ";
  5500. player.title = title;
  5501. player.sm("Donator Title number 5, Enjoy: " + title);
  5502. player.getUpdateFlags().updateAppearance(true);
  5503. }
  5504. if (cmd[0].equals(";;donatortitle6")) {
  5505. String title = "<col=00FF00><shad=000000>$Donator$</col></shad> ";
  5506. player.title = title;
  5507. player.sm("Donator Title number 6, Enjoy: " + title);
  5508. player.getUpdateFlags().updateAppearance(true);
  5509. }
  5510. if (cmd[0].equals(";;donatortitle7")) {
  5511. String title = "<col=006400><shad=000000>$Donator</col></shad> ";
  5512. player.title = title;
  5513. player.sm("Donator Title number 7, Enjoy: " + title);
  5514. player.getUpdateFlags().updateAppearance(true);
  5515. }
  5516. if (cmd[0].equals(";;donatortitle8")) {
  5517. String title = "<col=00FF00><shad=000000>$Donator</col></shad> ";
  5518. player.title = title;
  5519. player.sm("Donator Title number 8, Enjoy: " + title);
  5520. player.getUpdateFlags().updateAppearance(true);
  5521. }
  5522. if (cmd[0].equals(";;donatortitle9")) {
  5523. String title = "<col=006400><shad=000000>$Donator$</col></shad> ";
  5524. player.title = title;
  5525. player.sm("Donator Title number 9, Enjoy: " + title);
  5526. player.getUpdateFlags().updateAppearance(true);
  5527. }
  5528. if (cmd[0].equals(";;donatortitle10")) {
  5529. String title = "<col=006400><shad=000000>[$][Donator][$]</col></shad> ";
  5530. player.title = title;
  5531. player.sm("Donator Title number 10, Enjoy: " + title);
  5532. player.getUpdateFlags().updateAppearance(true);
  5533. }
  5534. if (cmd[0].equals(";;thebosstitle")
  5535. && (player.getUsername().equals("nael")
  5536. || player.getUsername().equals("")
  5537. || player.getRights() == 7 || player.getRights() == 75)) {
  5538. 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> ";
  5539. player.title = title;
  5540. player.sm("Your new title is: " + title);
  5541. player.getUpdateFlags().updateAppearance(true);
  5542. }
  5543. if (cmd[0].equals(";;naelstitle")
  5544. && (player.getUsername().equals("nael")
  5545. || player.getUsername().equals("")
  5546. || player.getRights() == 7 || player.getRights() == 75)) {
  5547. 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> ";
  5548. player.title = title;
  5549. player.sm("Your new title is: " + title);
  5550. player.getUpdateFlags().updateAppearance(true);
  5551. }
  5552. if (cmd[0].equals(";;maintitle")
  5553. && (player.getUsername().equals("nael")
  5554. || player.getUsername().equals("")
  5555. || player.getRights() == 7 || player.getRights() == 75)) {
  5556. String title = "<img=1><col=FF0000><shad=000000>Main Owner</col></shad> ";
  5557. player.title = title;
  5558. player.sm("Your new title is: " + title);
  5559. player.getUpdateFlags().updateAppearance(true);
  5560. }
  5561. if (cmd[0].equals(";;admincrown")
  5562. && (player.getUsername().equals("nael")
  5563. || player.getUsername().equals("")
  5564. || player.getRights() == 7 || player.getRights() == 75)) {
  5565. String title = "<img=1>";
  5566. player.title = title;
  5567. player.sm("You now have a <img=1> beside your name.");
  5568. player.getUpdateFlags().updateAppearance(true);
  5569. }
  5570. if (cmd[0].equals(";;modcrown")
  5571. && (player.getUsername().equals("nael")
  5572. || player.getUsername().equals("")
  5573. || player.getRights() == 7 || player.getRights() == 75)) {
  5574. String title = "<img=0>";
  5575. player.title = title;
  5576. player.sm("You now have a <img=0> beside your name.");
  5577. player.getUpdateFlags().updateAppearance(true);
  5578. }
  5579. if (cmd[0].equals(";;thebosstitle2")
  5580. && (player.getUsername().equals("nael")
  5581. || player.getUsername().equals("")
  5582. || player.getRights() == 7 || player.getRights() == 75)) {
  5583. 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> ";
  5584. player.title = title;
  5585. player.sm("Your new title is: " + title);
  5586. player.getUpdateFlags().updateAppearance(true);
  5587. }
  5588. if (cmd[0].equals(";;sexytitle")
  5589. && (player.getUsername().equals("nael")
  5590. || player.getUsername().equals("")
  5591. || player.getRights() == 7 || player.getRights() == 75)) {
  5592. 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> ";
  5593. player.title = title;
  5594. player.sm("Your new title is: " + title);
  5595. player.getUpdateFlags().updateAppearance(true);
  5596. }
  5597. if (cmd[0].equals(";;givecoownertitle")
  5598. && (player.getUsername().equals("nael")
  5599. || player.getUsername().equals("")
  5600. || player.getRights() == 7 || player.getRights() == 75)) {
  5601. Player other = World.getPlayers().get(
  5602. World.getIdFromName(command.substring(command
  5603. .indexOf(" ") + 1)));
  5604. if (other != null) {
  5605. String title = "<col=0000FF>Co-Owner</col> ";
  5606. other.title = title;
  5607. other.sm("Your title is Co Owner, beside your name.");
  5608. player.sm("Their title is now Co-Owner");
  5609. other.getUpdateFlags().updateAppearance(true);
  5610. }
  5611. }
  5612. if (cmd[0].equals(";;removetitle")
  5613. && (player.getUsername().equals("nael")
  5614. || player.getUsername().equals("")
  5615. || player.getRights() == 7
  5616. || player.getRights() == 75
  5617. || player.getRights() == 9 || player.getRights() == 8)) {
  5618. player.getActionSender().sendMessage(
  5619. "you have removed that dudes title.");
  5620. Player other = World.getPlayers().get(
  5621. World.getIdFromName(command.substring(command
  5622. .indexOf(" ") + 1)));
  5623. if (other != null) {
  5624. other.sm("your title has been removed LOL");
  5625. String title = "";
  5626. other.title = title;
  5627. other.getUpdateFlags().updateAppearance(true);
  5628. }
  5629. }
  5630. if (cmd[0].equals(";;giveheadadmintitle")
  5631. && (player.getUsername().equals("nael")
  5632. || player.getUsername().equals("")
  5633. || player.getRights() == 7 || player.getRights() == 75)) {
  5634. Player other = World.getPlayers().get(
  5635. World.getIdFromName(command.substring(command
  5636. .indexOf(" ") + 1)));
  5637. if (other != null) {
  5638. String title = "<col=00FFFF><shad=000000>Head Admin</col></shad> ";
  5639. other.title = title;
  5640. other.sm("Your new title is: " + title);
  5641. other.getUpdateFlags().updateAppearance(true);
  5642. }
  5643. }
  5644. if (cmd[0].equals(";;cyanadmintitle")
  5645. && (player.getUsername().equals("nael")
  5646. || player.getUsername().equals("")
  5647. || player.getRights() == 7 || player.getRights() == 75)) {
  5648. Player other = World.getPlayers().get(
  5649. World.getIdFromName(command.substring(command
  5650. .indexOf(" ") + 1)));
  5651. if (other != null) {
  5652. String title = "<col=00FFFF><shad=000000>Admin</col></shad> ";
  5653. other.title = title;
  5654. other.sm("Your new title is: " + title);
  5655. other.getUpdateFlags().updateAppearance(true);
  5656. }
  5657. }
  5658. if (cmd[0].equals(";;topswaggertitle")
  5659. && (player.getUsername().equals("nael")
  5660. || player.getUsername().equals("")
  5661. || player.getRights() == 7 || player.getRights() == 75)) {
  5662. Player other = World.getPlayers().get(
  5663. World.getIdFromName(command.substring(command
  5664. .indexOf(" ") + 1)));
  5665. if (other != null) {
  5666. String title = "<shad=000000><col=FF0000>Top-Swagger</shad></col> ";
  5667. other.title = title;
  5668. other.sm("Your new title is: " + title);
  5669. other.getUpdateFlags().updateAppearance(true);
  5670. }
  5671. }
  5672. if (cmd[0].equals(";;title")
  5673. && (player.getUsername().equals("nael")
  5674. || player.getUsername().equals("")
  5675. || player.getRights() == 7 || player.getRights() == 75)) {
  5676. String title = "<col=006400><shad=000000>Main Owner</col></shad> ";
  5677. player.title = title;
  5678. player.sm("Your new title is: " + title);
  5679. player.getUpdateFlags().updateAppearance(true);
  5680. }
  5681. if (cmd[0].equals(";;leviathanstitle")
  5682. && (player.getUsername().equals("nael")
  5683. || player.getUsername().equals("")
  5684. || player.getRights() == 7 || player.getRights() == 75)) {
  5685. String title = "<col=000000><shad=000000>Sexy Owner</col></shad> ";
  5686. player.title = title;
  5687. player.sm("Your new title is: " + title);
  5688. player.getUpdateFlags().updateAppearance(true);
  5689. }
  5690. if (cmd[0].equals(";;title")
  5691. && (player.getUsername().equals("nael")
  5692. || player.getUsername().equals("")
  5693. || player.getRights() == 7 || player.getRights() == 75)) {
  5694. String title = "<col=0000FF><shad=000000>Main Owner</col></shad> ";
  5695. player.title = title;
  5696. player.sm("Your new title is: " + title);
  5697. player.getUpdateFlags().updateAppearance(true);
  5698. }
  5699. if (cmd[0].equals(";;sexystitle")
  5700. && (player.getUsername().equals("nael")
  5701. || player.getUsername().equals("")
  5702. || player.getRights() == 7 || player.getRights() == 75)) {
  5703. String title = "<col=000000><shad=00FFFF>Main Owner</col></shad> ";
  5704. player.title = title;
  5705. player.sm("Your new title is: " + title);
  5706. player.getUpdateFlags().updateAppearance(true);
  5707. }
  5708. if (cmd[0].equals(";;blacknegro")
  5709. && (player.getUsername().equals("nael")
  5710. || player.getUsername().equals("")
  5711. || player.getRights() == 7 || player.getRights() == 75)) {
  5712. String title = "<col=000000><shad=000000>negro</col></shad> ";
  5713. player.title = title;
  5714. player.sm("Your new title is: " + title);
  5715. player.getUpdateFlags().updateAppearance(true);
  5716. }
  5717. if (cmd[0].equals(";;blacknaeltitle")
  5718. && (player.getUsername().equals("nael")
  5719. || player.getUsername().equals("")
  5720. || player.getRights() == 7 || player.getRights() == 75)) {
  5721. String title = "<col=000000><shad=000000>Main Owner</col></shad> ";
  5722. player.title = title;
  5723. player.sm("Your new title is: " + title);
  5724. player.getUpdateFlags().updateAppearance(true);
  5725. }
  5726. if (cmd[0].equals(";;negroownertitle")
  5727. && (player.getUsername().equals("nael")
  5728. || player.getUsername().equals("")
  5729. || player.getRights() == 7 || player.getRights() == 75)) {
  5730. String title = "<col=000000><shad=000000>Owner/negro</col></shad> ";
  5731. player.title = title;
  5732. player.sm("Your new title is: " + title);
  5733. player.getUpdateFlags().updateAppearance(true);
  5734. }
  5735. if (cmd[0].equals(";;sexynegrotitle")
  5736. && (player.getUsername().equals("nael")
  5737. || player.getUsername().equals("")
  5738. || player.getRights() == 7 || player.getRights() == 75)) {
  5739. String title = "<col=000000><shad=000000>Sexy Owner/negro</col></shad> ";
  5740. player.title = title;
  5741. player.sm("Your new title is: " + title);
  5742. player.getUpdateFlags().updateAppearance(true);
  5743. }
  5744. if (cmd[0].equals(";;bluenegro")
  5745. && (player.getUsername().equals("nael")
  5746. || player.getUsername().equals("")
  5747. || player.getRights() == 7 || player.getRights() == 75)) {
  5748. String title = "<col=0000FF><shad=000000>negro</col></shad> ";
  5749. player.title = title;
  5750. player.sm("Your new title is: " + title);
  5751. player.getUpdateFlags().updateAppearance(true);
  5752. }
  5753. if (cmd[0].equals(";;greenegro")
  5754. && (player.getUsername().equals("nael")
  5755. || player.getUsername().equals("")
  5756. || player.getRights() == 7 || player.getRights() == 75)) {
  5757. String title = "<col=006400><shad=000000>negro</col></shad> ";
  5758. player.title = title;
  5759. player.sm("Your new title is: " + title);
  5760. player.getUpdateFlags().updateAppearance(true);
  5761. }
  5762. if (cmd[0].equals(";;rednegro")
  5763. && (player.getUsername().equals("nael")
  5764. || player.getUsername().equals("")
  5765. || player.getRights() == 7 || player.getRights() == 75)) {
  5766. String title = "<col=FF0000><shad=000000>negro</col></shad> ";
  5767. player.title = title;
  5768. player.sm("Your new title is: " + title);
  5769. player.getUpdateFlags().updateAppearance(true);
  5770. }
  5771. if (cmd[0].equals(";;topguntitle")
  5772. && (player.getUsername().equals("nael")
  5773. || player.getUsername().equals("")
  5774. || player.getRights() == 7 || player.getRights() == 75)) {
  5775. Player other = World.getPlayers().get(
  5776. World.getIdFromName(command.substring(command
  5777. .indexOf(" ") + 1)));
  5778. if (other != null) {
  5779. String title = "<col=0000FF><shad=000000>Top-Gun</col></shad> ";
  5780. other.title = title;
  5781. other.sm("Your new title is: " + title);
  5782. other.getUpdateFlags().updateAppearance(true);
  5783. }
  5784. }
  5785. if (cmd[0].equals(";;analrapisttitle")
  5786. && (player.getUsername().equals("nael")
  5787. || player.getUsername().equals("")
  5788. || player.getRights() == 7 || player.getRights() == 75)) {
  5789. Player other = World.getPlayers().get(
  5790. World.getIdFromName(command.substring(command
  5791. .indexOf(" ") + 1)));
  5792. if (other != null) {
  5793. String title = "<col=000000><shad=000000>Anal-Rapist</col></shad> ";
  5794. other.title = title;
  5795. other.sm("Your new title is: " + title);
  5796. other.getUpdateFlags().updateAppearance(true);
  5797. }
  5798. }
  5799. if (cmd[0].equals(";;ymcmbtitle")
  5800. && (player.getUsername().equals("nael")
  5801. || player.getUsername().equals("")
  5802. || player.getRights() == 7 || player.getRights() == 75)) {
  5803. Player other = World.getPlayers().get(
  5804. World.getIdFromName(command.substring(command
  5805. .indexOf(" ") + 1)));
  5806. if (other != null) {
  5807. String title = "<col=FFA500><shad=000000>YMCMB</col></shad> ";
  5808. other.title = title;
  5809. other.sm("Your new title is: " + title);
  5810. other.getUpdateFlags().updateAppearance(true);
  5811. }
  5812. }
  5813. if (cmd[0].equals(";;vyrelordtitle")
  5814. && (player.getUsername().equals("nael")
  5815. || player.getUsername().equals("")
  5816. || player.getRights() == 7 || player.getRights() == 75)) {
  5817. Player other = World.getPlayers().get(
  5818. World.getIdFromName(command.substring(command
  5819. .indexOf(" ") + 1)));
  5820. if (other != null) {
  5821. String title = "<col=FF0000>Vyrelord</col> ";
  5822. other.title = title;
  5823. other.sm("Your new title is: " + title);
  5824. other.getUpdateFlags().updateAppearance(true);
  5825. }
  5826. }
  5827. if (cmd[0].equals(";;hellyeahtitle")
  5828. && (player.getUsername().equals("nael")
  5829. || player.getUsername().equals("")
  5830. || player.getRights() == 7 || player.getRights() == 75)) {
  5831. Player other = World.getPlayers().get(
  5832. World.getIdFromName(command.substring(command
  5833. .indexOf(" ") + 1)));
  5834. if (other != null) {
  5835. String title = "<col=FF0000>Hell Yeah</col> ";
  5836. other.title = title;
  5837. other.sm("Your new title is: " + title);
  5838. other.getUpdateFlags().updateAppearance(true);
  5839. }
  5840. }
  5841. if (cmd[0].equals(";;naughtytitle")
  5842. && (player.getUsername().equals("nael")
  5843. || player.getUsername().equals("")
  5844. || player.getRights() == 7 || player.getRights() == 75)) {
  5845. Player other = World.getPlayers().get(
  5846. World.getIdFromName(command.substring(command
  5847. .indexOf(" ") + 1)));
  5848. if (other != null) {
  5849. 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> ";
  5850. other.title = title;
  5851. other.sm("Your new title is: " + title);
  5852. other.getUpdateFlags().updateAppearance(true);
  5853. }
  5854. }
  5855. } catch (Exception e) {
  5856. player.getActionSender().sendMessage(
  5857. "Malformed command or error: " + e.getMessage() + ".");
  5858. }
  5859. }
  5860.  
  5861. public String MoneyAmount(long Money) {
  5862. return NumberFormat.getInstance().format(Money);
  5863. }
  5864. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement