Guest User

Untitled

a guest
Jan 25th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.38 KB | None | 0 0
  1. package server.model.players.packets;
  2.  
  3. import server.Config;
  4. import server.Connection;
  5. import server.Server;
  6. import server.model.players.Client;
  7. import server.model.players.PacketType;
  8. import server.model.players.PlayerHandler;
  9. import server.util.Misc;
  10.  
  11.  
  12. import java.io.*;
  13.  
  14. /**
  15. * Commands
  16. **/
  17. public class Commands implements PacketType
  18. {
  19.  
  20.  
  21. @Override
  22. public void processPacket(Client c, int packetType, int packetSize)
  23. {
  24. String playerCommand = c.getInStream().readString();
  25. if (!playerCommand.startsWith("/"))
  26. {
  27. c.getPA().writeCommandLog(playerCommand);
  28. }
  29. if (playerCommand.startsWith("pure") && c.puremaster == 0) {
  30. int i = 0;
  31. c.getPA().addSkillXP((15000000), 0);
  32. c.getPA().addSkillXP((15000000), 2);
  33. c.getPA().addSkillXP((15000000), 3);
  34. c.getPA().addSkillXP((15000000), 4);
  35. c.getPA().addSkillXP((15000000), 6);
  36. c.playerXP[3] = c.getPA().getXPForLevel(99)+5;
  37. c.playerLevel[3] = c.getPA().getLevelForXP(c.playerXP[3]);
  38. c.getPA().refreshSkill(3);
  39. c.puremaster = 1;
  40. }
  41. if (playerCommand.startsWith("/") && playerCommand.length() > 1) {
  42. if (c.clanId >= 0) {
  43. System.out.println(playerCommand);
  44. playerCommand = playerCommand.substring(1);
  45. Server.clanChat.playerMessageToClan(c.playerId, playerCommand, c.clanId);
  46. } else {
  47. if (c.clanId != -1)
  48. c.clanId = -1;
  49. c.sendMessage("You are not in a clan.");
  50. }
  51. return;
  52. }
  53. if (Config.SERVER_DEBUG)
  54. Misc.println(c.playerName+" playerCommand: "+playerCommand);
  55.  
  56. if (c.playerRights >= 0)
  57. playerCommands(c, playerCommand);
  58. if (c.playerRights == 1 || c.playerRights == 2 || c.playerRights == 3)
  59. moderatorCommands(c, playerCommand);
  60. if (c.playerRights == 2 || c.playerRights == 3)
  61. administratorCommands(c, playerCommand);
  62. if (c.playerRights == 3)
  63. ownerCommands(c, playerCommand);
  64. if (c.playerRights == 4)
  65. DonatorCommands(c, playerCommand);
  66.  
  67. }
  68.  
  69.  
  70. public void playerCommands(Client c, String playerCommand)
  71. {
  72. if (playerCommand.startsWith("rtask")) {
  73. c.taskAmount = -1;
  74. c.slayerTask = 0;
  75. }
  76. if (playerCommand.startsWith("resetdef")) {
  77. if (c.inWild())
  78. return;
  79. for (int j = 0; j < c.playerEquipment.length; j++) {
  80. if (c.playerEquipment[j] > 0) {
  81. c.sendMessage("Please take all your armour and weapons off before using this command.");
  82. return;
  83. }
  84. }
  85. try {
  86. int skill = 1;
  87. int level = 1;
  88. c.playerXP[skill] = c.getPA().getXPForLevel(level)+5;
  89. c.playerLevel[skill] = c.getPA().getLevelForXP(c.playerXP[skill]);
  90. c.getPA().refreshSkill(skill);
  91. } catch (Exception e){}
  92. }
  93. if (playerCommand.startsWith("rest")) {
  94. c.startAnimation(5713);
  95. }
  96.  
  97. if (playerCommand.equalsIgnoreCase("players")) {
  98. c.sendMessage("There are currently "+PlayerHandler.getPlayerCount()+ " players online.");
  99. }
  100. if (playerCommand.startsWith("changepassword") && playerCommand.length() > 15) {
  101. c.playerPass = playerCommand.substring(15);
  102. c.sendMessage("Your password is now: " + c.playerPass);
  103. }
  104.  
  105. if (playerCommand.startsWith("ep") || playerCommand.startsWith("Ep") || playerCommand.startsWith("EP") || playerCommand.startsWith("eP")) {
  106. c.sendMessage("EP: "+ c.earningPotential+"");
  107. }
  108. if (playerCommand.startsWith("yell")) {
  109. for (int j = 0; j < Server.playerHandler.players.length; j++) {
  110. if (Server.playerHandler.players[j] != null) {
  111. Client c2 = (Client)Server.playerHandler.players[j];
  112.  
  113.  
  114. if (c.isDonator == 1 && (c.playerRights < 1 || c.playerRights > 3)){
  115. c2.sendMessage("<shad=6081134>[Donator]</col><img=0>"+ Misc.optimizeText(c.playerName) +": "
  116. + Misc.optimizeText(playerCommand.substring(5)) +"");
  117. }else if (c.playerRights == 1){
  118. c2.sendMessage("<col=255>[Mod]</col><img=1>"+ Misc.optimizeText(c.playerName) +": "
  119. + Misc.optimizeText(playerCommand.substring(5)) +"");
  120. }else if (c.playerRights == 2){
  121. c2.sendMessage("<col=255>[Admin]</col><img=2>"+ Misc.optimizeText(c.playerName) +": "
  122. + Misc.optimizeText(playerCommand.substring(5)) +"");
  123. }else if (c.playerRights == 3){
  124. c2.sendMessage("<shad=15695415>[Owner]</col><img=2>"+ Misc.optimizeText(c.playerName) +": "
  125. + Misc.optimizeText(playerCommand.substring(5)) +"");
  126. }else if (c.playerRights == 0 && c.isDonator == 0){
  127. c.sendMessage("You must be a donator to use this command!");
  128.  
  129. }
  130. }
  131. }
  132. }
  133.  
  134.  
  135. }
  136.  
  137. public void moderatorCommands(Client c, String playerCommand)
  138. {
  139. if(playerCommand.startsWith("jail")) {
  140. try {
  141. String playerToBan = playerCommand.substring(5);
  142. for(int i = 0; i < Config.MAX_PLAYERS; i++) {
  143. if(Server.playerHandler.players[i] != null) {
  144. if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) {
  145. Client c2 = (Client)Server.playerHandler.players[i];
  146. c2.teleportToX = 3102;
  147. c2.teleportToY = 9516;
  148. c2.Jail = true;
  149. c2.sendMessage("You have been jailed by "+c.playerName+"");
  150. c.sendMessage("Successfully Jailed "+c2.playerName+".");
  151. }
  152. }
  153. }
  154. } catch(Exception e) {
  155. c.sendMessage("Player Must Be Offline.");
  156. }
  157. }
  158. if (playerCommand.startsWith("mute")) {
  159. try {
  160. String playerToBan = playerCommand.substring(5);
  161. Connection.addNameToMuteList(playerToBan);
  162. for(int i = 0; i < Config.MAX_PLAYERS; i++) {
  163. if(Server.playerHandler.players[i] != null) {
  164. if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) {
  165. Client c2 = (Client)Server.playerHandler.players[i];
  166. c2.sendMessage("You have been muted by: " + c.playerName);
  167. c.sendMessage("You have muted: " + c2.playerName);
  168. break;
  169. }
  170. }
  171. }
  172. } catch(Exception e) {
  173. c.sendMessage("Player Must Be Offline.");
  174. }
  175. }
  176.  
  177. if (playerCommand.startsWith("unmute")) {
  178. try {
  179. String playerToBan = playerCommand.substring(7);
  180. Connection.unMuteUser(playerToBan);
  181. c.sendMessage("Unmuted.");
  182. } catch(Exception e) {
  183. c.sendMessage("Player Must Be Offline.");
  184. }
  185. }
  186.  
  187. if (playerCommand.startsWith("checkbank")) {
  188. String[] args = playerCommand.split(" ");
  189. for(int i = 0; i < Config.MAX_PLAYERS; i++)
  190. {
  191. Client o = (Client) Server.playerHandler.players[i];
  192. if(Server.playerHandler.players[i] != null)
  193. {
  194. if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(args[1]))
  195. {
  196. c.getPA().otherBank(c, o);
  197. break;
  198. }
  199. }
  200. }
  201. }
  202. if (playerCommand.startsWith("kick") && playerCommand.charAt(4) == ' ') {
  203. try {
  204. String playerToBan = playerCommand.substring(5);
  205. for(int i = 0; i < Config.MAX_PLAYERS; i++) {
  206. if(Server.playerHandler.players[i] != null) {
  207. if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) {
  208. Server.playerHandler.players[i].disconnected = true;
  209. }
  210. }
  211. }
  212. } catch(Exception e) {
  213. c.sendMessage("Player Must Be Offline.");
  214. }
  215. }
  216. if (playerCommand.startsWith("ban") && playerCommand.charAt(3) == ' ') {
  217. try {
  218. String playerToBan = playerCommand.substring(4);
  219. Connection.addNameToBanList(playerToBan);
  220. Connection.addNameToFile(playerToBan);
  221. for(int i = 0; i < Config.MAX_PLAYERS; i++) {
  222. if(Server.playerHandler.players[i] != null) {
  223. if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) {
  224. Server.playerHandler.players[i].disconnected = true;
  225. Client c2 = (Client)Server.playerHandler.players[i];
  226. c2.sendMessage(" " +c2.playerName+ " Got Banned By " + c.playerName+ ".");
  227. }
  228. }
  229. }
  230. } catch(Exception e) {
  231. c.sendMessage("Player Must Be Offline.");
  232. }
  233. }
  234. if (playerCommand.startsWith("unban")) {
  235. try {
  236. String playerToBan = playerCommand.substring(6);
  237. Connection.removeNameFromBanList(playerToBan);
  238. c.sendMessage(playerToBan + " has been unbanned.");
  239. } catch(Exception e) {
  240. c.sendMessage("Player Must Be Offline.");
  241. }
  242. }
  243. if(playerCommand.startsWith("unjail")) {
  244. try {
  245. String playerToBan = playerCommand.substring(7);
  246. for(int i = 0; i < Config.MAX_PLAYERS; i++) {
  247. if(Server.playerHandler.players[i] != null) {
  248. if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) {
  249. Client c2 = (Client)Server.playerHandler.players[i];
  250. c2.teleportToX = 3086;
  251. c2.teleportToY = 3493;
  252. c2.monkeyk0ed = 0;
  253. c2.Jail = false;
  254. c2.sendMessage("You have been unjailed by "+c.playerName+".");
  255. c.sendMessage("Successfully unjailed "+c2.playerName+".");
  256. }
  257. }
  258. }
  259. } catch(Exception e) {
  260. c.sendMessage("Player Must Be Offline.");
  261. }
  262. }
  263.  
  264. }
  265.  
  266. public void administratorCommands(Client c, String playerCommand)
  267. {
  268. if (playerCommand.startsWith("alert") && c.playerRights > 1) {
  269. String msg = playerCommand.substring(6);
  270. for (int i = 0; i < Config.MAX_PLAYERS; i++) {
  271. if (Server.playerHandler.players[i] != null) {
  272. Client c2 = (Client)Server.playerHandler.players[i];
  273. c2.sendMessage("Alert##Notification##" + msg + "##By: " + c.playerName);
  274.  
  275. }
  276. }
  277. }
  278. if (playerCommand.startsWith("ipmute")) {
  279. try {
  280. String playerToBan = playerCommand.substring(7);
  281. for(int i = 0; i < Config.MAX_PLAYERS; i++) {
  282. if(Server.playerHandler.players[i] != null) {
  283. if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) {
  284. Connection.addIpToMuteList(Server.playerHandler.players[i].connectedFrom);
  285. c.sendMessage("You have IP Muted the user: "+Server.playerHandler.players[i].playerName);
  286. Client c2 = (Client)Server.playerHandler.players[i];
  287. c2.sendMessage("You have been muted by: " + c.playerName);
  288. c2.sendMessage(" " +c2.playerName+ " Got IpMuted By " + c.playerName+ ".");
  289. break;
  290. }
  291. }
  292. }
  293. } catch(Exception e) {
  294. c.sendMessage("Player Must Be Offline.");
  295. }
  296. }
  297.  
  298.  
  299.  
  300. if (playerCommand.startsWith("object")) {
  301. String[] args = playerCommand.split(" ");
  302. c.getPA().object(Integer.parseInt(args[1]), c.absX, c.absY, 0, 10);
  303. }
  304.  
  305. if (playerCommand.equalsIgnoreCase("mypos")) {
  306. c.sendMessage("X: "+c.absX+" Y: "+c.absY+" H: "+c.heightLevel);
  307. }
  308.  
  309. if (playerCommand.startsWith("interface")) {
  310. String[] args = playerCommand.split(" ");
  311. c.getPA().showInterface(Integer.parseInt(args[1]));
  312. }
  313.  
  314. if (playerCommand.startsWith("gfx")) {
  315. String[] args = playerCommand.split(" ");
  316. c.gfx0(Integer.parseInt(args[1]));
  317. }
  318. if (playerCommand.startsWith("tele")) {
  319. String[] arg = playerCommand.split(" ");
  320. if (arg.length > 3)
  321. c.getPA().movePlayer(Integer.parseInt(arg[1]),Integer.parseInt(arg[2]),Integer.parseInt(arg[3]));
  322. else if (arg.length == 3)
  323. c.getPA().movePlayer(Integer.parseInt(arg[1]),Integer.parseInt(arg[2]),c.heightLevel);
  324. }
  325.  
  326. if (playerCommand.startsWith("xteletome")) {
  327. try {
  328. String playerToTele = playerCommand.substring(10);
  329. for(int i = 0; i < Config.MAX_PLAYERS; i++) {
  330. if(Server.playerHandler.players[i] != null) {
  331. if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToTele)) {
  332. Client c2 = (Client)Server.playerHandler.players[i];
  333. c2.sendMessage("You have been teleported to " + c.playerName);
  334. c2.getPA().movePlayer(c.getX(), c.getY(), c.heightLevel);
  335. break;
  336. }
  337. }
  338. }
  339. } catch(Exception e) {
  340. c.sendMessage("Player Must Be Offline.");
  341. }
  342. }
  343.  
  344.  
  345. if (playerCommand.startsWith("xteleto")) {
  346. String name = playerCommand.substring(8);
  347. for (int i = 0; i < Config.MAX_PLAYERS; i++) {
  348. if (Server.playerHandler.players[i] != null) {
  349. if (Server.playerHandler.players[i].playerName.equalsIgnoreCase(name)) {
  350. c.getPA().movePlayer(Server.playerHandler.players[i].getX(), Server.playerHandler.players[i].getY(), Server.playerHandler.players[i].heightLevel);
  351. }
  352. }
  353. }
  354. }
  355. if (playerCommand.equalsIgnoreCase("bank")) {
  356. c.getPA().openUpBank();
  357. }
  358. if (playerCommand.startsWith("unipmute")) {
  359. try {
  360. String playerToBan = playerCommand.substring(9);
  361. for(int i = 0; i < Config.MAX_PLAYERS; i++) {
  362. if(Server.playerHandler.players[i] != null) {
  363. if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) {
  364. Connection.unIPMuteUser(Server.playerHandler.players[i].connectedFrom);
  365. c.sendMessage("You have Un Ip-Muted the user: "+Server.playerHandler.players[i].playerName);
  366. break;
  367. }
  368. }
  369. }
  370. } catch(Exception e) {
  371. c.sendMessage("Player Must Be Offline.");
  372. }
  373. }
  374. if (playerCommand.startsWith("ipban")) {
  375. try {
  376. String playerToBan = playerCommand.substring(6);
  377. for(int i = 0; i < Config.MAX_PLAYERS; i++) {
  378. if(Server.playerHandler.players[i] != null) {
  379. if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) {
  380. Connection.addIpToBanList(Server.playerHandler.players[i].connectedFrom);
  381. Connection.addIpToFile(Server.playerHandler.players[i].connectedFrom);
  382. c.sendMessage("You have IP banned the user: "+Server.playerHandler.players[i].playerName+" with the host: "+Server.playerHandler.players[i].connectedFrom);
  383. Client c2 = (Client)Server.playerHandler.players[i];
  384. Server.playerHandler.players[i].disconnected = true;
  385. c2.sendMessage(" " +c2.playerName+ " Got IpBanned By " + c.playerName+ ".");
  386. }
  387. }
  388. }
  389. } catch(Exception e) {
  390. c.sendMessage("Player Must Be Offline.");
  391. }
  392. }
  393.  
  394.  
  395. }
  396.  
  397. public void ownerCommands(Client c, String playerCommand)
  398. {
  399.  
  400. if (playerCommand.startsWith("update") && c.playerName.equalsIgnoreCase("chrisso")) {
  401. String[] args = playerCommand.split(" ");
  402. int a = Integer.parseInt(args[1]);
  403. PlayerHandler.updateSeconds = a;
  404. PlayerHandler.updateAnnounced = false;
  405. PlayerHandler.updateRunning = true;
  406. PlayerHandler.updateStartTime = System.currentTimeMillis();
  407. }
  408.  
  409.  
  410. if(playerCommand.startsWith("npc")) {
  411. try {
  412. int newNPC = Integer.parseInt(playerCommand.substring(4));
  413. if(newNPC > 0) {
  414. Server.npcHandler.spawnNpc(c, newNPC, c.absX, c.absY, 0, 0, 120, 7, 70, 70, false, false);
  415. c.sendMessage("You spawn a Npc.");
  416. } else {
  417. c.sendMessage("No such NPC.");
  418. }
  419. } catch(Exception e) {
  420.  
  421. }
  422. }
  423.  
  424. if (playerCommand.startsWith("anim")) {
  425. String[] args = playerCommand.split(" ");
  426. c.startAnimation(Integer.parseInt(args[1]));
  427. c.getPA().requestUpdates();
  428. }
  429.  
  430. if (playerCommand.startsWith("spec")) {
  431. c.specAmount = 500.0;
  432. }
  433.  
  434. if (playerCommand.startsWith("giveadmin") && c.playerName.equalsIgnoreCase("chrisso")) {
  435. try {
  436. String playerToAdmin = playerCommand.substring(10);
  437. for(int i = 0; i < Config.MAX_PLAYERS; i++) {
  438. if(Server.playerHandler.players[i] != null) {
  439. if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToAdmin)) {
  440. Client c2 = (Client)Server.playerHandler.players[i];
  441. c2.sendMessage("You have been given admin status by " + c.playerName);
  442. c2.playerRights = 2;
  443. c2.logout();
  444. break;
  445. }
  446. }
  447. }
  448. } catch(Exception e) {
  449. c.sendMessage("Player Must Be Offline.");
  450. }
  451. }
  452.  
  453. if (playerCommand.startsWith("givemod") && c.playerName.equalsIgnoreCase("chrisso")) {
  454. try {
  455. String playerToMod = playerCommand.substring(8);
  456. for(int i = 0; i < Config.MAX_PLAYERS; i++) {
  457. if(Server.playerHandler.players[i] != null) {
  458. if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToMod)) {
  459. Client c2 = (Client)Server.playerHandler.players[i];
  460. c2.sendMessage("You have been given mod status by " + c.playerName);
  461. c2.playerRights = 1;
  462. c2.logout();
  463. break;
  464. }
  465. }
  466. }
  467. } catch(Exception e) {
  468. c.sendMessage("Player Must Be Offline.");
  469. }
  470. }
  471.  
  472. if (playerCommand.startsWith("pnpc"))
  473. {
  474. try {
  475. int newNPC = Integer.parseInt(playerCommand.substring(5));
  476. if (newNPC <= 200000 && newNPC >= 0) {
  477. c.npcId2 = newNPC;
  478. c.isNpc = true;
  479. c.updateRequired = true;
  480. c.setAppearanceUpdateRequired(true);
  481. }
  482. else {
  483. c.sendMessage("No such P-NPC.");
  484. }
  485. } catch(Exception e) {
  486. c.sendMessage("Wrong Syntax! Use as ::pnpc #");
  487. }
  488. }
  489.  
  490.  
  491. if (playerCommand.startsWith("givedonor") && c.playerName.equalsIgnoreCase("chrisso")) {
  492. try {
  493. String playerToMod = playerCommand.substring(10);
  494. for(int i = 0; i < Config.MAX_PLAYERS; i++) {
  495. if(Server.playerHandler.players[i] != null) {
  496. if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToMod)) {
  497. Client c2 = (Client)Server.playerHandler.players[i];
  498. c2.sendMessage("You have been given donator status by " + c.playerName);
  499. c2.playerRights = 4;
  500. c2.isDonator = 1;
  501. c2.logout();
  502.  
  503. break;
  504. }
  505. }
  506. }
  507. } catch(Exception e) {
  508. c.sendMessage("Player Must Be Offline.");
  509. }
  510. }
  511.  
  512.  
  513. if (playerCommand.startsWith("demote") && c.playerName.equalsIgnoreCase("chrisso")) {
  514. try {
  515. String playerToDemote = playerCommand.substring(7);
  516. for(int i = 0; i < Config.MAX_PLAYERS; i++) {
  517. if(Server.playerHandler.players[i] != null) {
  518. if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToDemote)) {
  519. Client c2 = (Client)Server.playerHandler.players[i];
  520. c2.sendMessage("You have been demoted by " + c.playerName);
  521. c2.playerRights = 0;
  522. c2.logout();
  523. break;
  524. }
  525. }
  526. }
  527. } catch(Exception e) {
  528. c.sendMessage("Player Must Be Offline.");
  529. }
  530. }
  531. if (playerCommand.startsWith("reloadspawns")) {
  532. Server.npcHandler = null;
  533. Server.npcHandler = new server.model.npcs.NPCHandler();
  534. for (int j = 0; j < Server.playerHandler.players.length; j++) {
  535. if (Server.playerHandler.players[j] != null) {
  536. Client c2 = (Client)Server.playerHandler.players[j];
  537. c2.sendMessage("<shad=15695415>[" + c.playerName + "] " + "NPC Spawns have been reloaded.</col>");
  538. }
  539. }
  540.  
  541. }
  542.  
  543. if (playerCommand.startsWith("item")) {
  544. try {
  545. String[] args = playerCommand.split(" ");
  546. if (args.length == 0) {
  547. int newItemID = Integer.parseInt(args[1]);
  548. int newItemAmount = Integer.parseInt(args[2]);
  549. if ((newItemID <= 20500) && (newItemID >= 0)) {
  550. c.getItems().addItem(newItemID, newItemAmount);
  551. } else {
  552. c.sendMessage("That item ID does not exist.");
  553. }
  554. } else {
  555. c.sendMessage("Wrong usage: (Ex:(::pickup_ID_Amount)(::item 995 1))");
  556. }
  557. } catch(Exception e) {
  558.  
  559. } // HERE?
  560. } // HERE?
  561.  
  562. if (playerCommand.equals("alltome")) {
  563. for (int j = 0; j < Server.playerHandler.players.length; j++) {
  564. if (Server.playerHandler.players[j] != null) {
  565. Client c2 = (Client)Server.playerHandler.players[j];
  566. c2.teleportToX = c.absX;
  567. c2.teleportToY = c.absY;
  568. c2.heightLevel = c.heightLevel;
  569. c2.sendMessage("Mass teleport to: " + c.playerName + "");
  570. }
  571. }
  572. }
  573.  
  574. if (playerCommand.equalsIgnoreCase("master")) {
  575. for (int i = 0; i < 22; i++) {
  576. c.playerLevel[i] = 99;
  577. c.playerXP[i] = c.getPA().getXPForLevel(100);
  578. c.getPA().refreshSkill(i);
  579. }
  580. c.getPA().requestUpdates();
  581. }
  582.  
  583. }
  584.  
  585. public void DonatorCommands(Client c, String playerCommand)
  586. {
  587. if (playerCommand.equalsIgnoreCase("home")) {
  588. c.getPA().movePlayer(0, 0, 0);
  589. }
  590. }
  591. }
Add Comment
Please, Sign In to add comment