Advertisement
Guest User

Untitled

a guest
Apr 29th, 2013
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.18 KB | None | 0 0
  1. package me.michael.tutorial;
  2.  
  3. import java.util.logging.Logger;
  4.  
  5. import org.bukkit.Bukkit;
  6. import org.bukkit.ChatColor;
  7. import org.bukkit.GameMode;
  8. import org.bukkit.Location;
  9. import org.bukkit.Material;
  10. import org.bukkit.World;
  11. import org.bukkit.command.Command;
  12. import org.bukkit.command.CommandSender;
  13. import org.bukkit.entity.Player;
  14. import org.bukkit.inventory.ItemStack;
  15. import org.bukkit.plugin.PluginDescriptionFile;
  16. import org.bukkit.plugin.PluginManager;
  17. import org.bukkit.plugin.java.JavaPlugin;
  18.  
  19. public class Main extends JavaPlugin {
  20. public final Logger logger = Logger.getLogger("Minecraft");
  21. public static Main plugin;
  22. public final MyPlayerListener pl = new MyPlayerListener();
  23. public String day1 = this.getConfig().getString("day1week1");
  24. public String day1week1reward = this.getConfig().getString("day1week1reward");
  25.  
  26. @Override
  27. public void onDisable() {
  28. PluginDescriptionFile pdfFile = this.getDescription();
  29. this.logger.info(pdfFile.getName() + " Version " + pdfFile.getVersion()
  30. + " Has been deactivated");
  31. }
  32.  
  33. @Override
  34. public void onEnable() {
  35. PluginDescriptionFile pdfFile = this.getDescription();
  36. this.logger.info(pdfFile.getName() + " Version " + pdfFile.getVersion()
  37. + " Has been activated");
  38. getConfig().options().copyDefaults(true);
  39. saveConfig();
  40. PluginManager pm = getServer().getPluginManager();
  41. pm.registerEvents(this.pl, this);
  42.  
  43. }
  44.  
  45. public boolean onCommand(CommandSender sender, Command cmd,
  46. String commandLabel, String[] args) {
  47. Player player = (Player) sender;
  48. World world = player.getWorld();
  49. if (commandLabel.equalsIgnoreCase("ping")) {
  50. if (player.hasPermission("fissionplugin.ping")) {
  51. player.sendMessage("Pong");
  52. }
  53. } else if (commandLabel.equalsIgnoreCase("heal")) {
  54. if (player.hasPermission("fissionplugin.heal")) {
  55. player.setHealth(20);
  56. player.sendMessage(ChatColor.DARK_GREEN
  57. + "You have been healed!");
  58. } else {
  59. player.sendMessage(ChatColor.DARK_RED
  60. + "You don't have permission!");
  61.  
  62. }
  63. } else if (commandLabel.equalsIgnoreCase("fullheal")) {
  64. if (player.hasPermission("fissionplugin.heal.full")) {
  65. player.setFoodLevel(20);
  66. player.setHealth(20);
  67. player.setFireTicks(0);
  68. player.sendMessage(ChatColor.DARK_GREEN
  69. + "You have been healed!");
  70. }
  71. } else if (commandLabel.equalsIgnoreCase("fly")) {
  72. if (args.length == 0) {
  73. if (player.hasPermission("fissionplugin.fly")) {
  74. player.setAllowFlight(true);
  75. player.setFlying(true);
  76. }
  77. } else if (args.length == 1) {
  78. player.setAllowFlight(false);
  79. player.setFlying(false);
  80. }
  81.  
  82. } else if (commandLabel.equalsIgnoreCase("flyoff")) {
  83. if (player.hasPermission("fissionplugin.fly")) {
  84. player.setAllowFlight(false);
  85. player.setFlying(false);
  86.  
  87. }
  88.  
  89. } else if (commandLabel.equalsIgnoreCase("gb")) {
  90. if (player.hasPermission("fissionplugin.group1")) {
  91. player.sendMessage(ChatColor.GRAY
  92. + "You are in the regular player group!");
  93. } else if (player.hasPermission("fissionplugin.admin")) {
  94. player.sendMessage(ChatColor.RED
  95. + "You are in the administrative group!");
  96. }
  97. } else if (commandLabel.equalsIgnoreCase("survival")) {
  98. if (player.hasPermission("fissionplugin.survival")) {
  99. Bukkit.broadcastMessage(ChatColor.BLUE
  100. + player.getDisplayName()
  101. + " Has changed their game-mode!");
  102. player.setGameMode(GameMode.SURVIVAL);
  103. player.sendMessage(ChatColor.GOLD + "You are now in survival!");
  104. }
  105. } else if (commandLabel.equalsIgnoreCase("creative")) {
  106. if (player.hasPermission("fissionplugin.creative")) {
  107. Bukkit.broadcastMessage(ChatColor.BLUE
  108. + player.getDisplayName()
  109. + " Has changed their game-mode!");
  110. player.setGameMode(GameMode.CREATIVE);
  111. player.sendMessage(ChatColor.BLUE + "You are now in creative!");
  112. }
  113. } else if (commandLabel.equalsIgnoreCase("adventure")) {
  114. if (player.hasPermission("fissionplugin.adventure")) {
  115. Bukkit.broadcastMessage(ChatColor.BLUE
  116. + player.getDisplayName()
  117. + " Has changed their gamemode!");
  118. player.setGameMode(GameMode.ADVENTURE);
  119. player.sendMessage(ChatColor.BLUE
  120. + "You have changed your gamemode to adventure mode!");
  121.  
  122. }
  123. } else if (commandLabel.equalsIgnoreCase("staff")) {
  124. if (player.hasPermission("fissionplugin.stafflist")) {
  125. player.sendMessage(getConfig().getString("Staff"));
  126. }
  127. } else if (commandLabel.equalsIgnoreCase("tp")) {
  128. if (player.hasPermission("fissionplugin.teleport")) {
  129. if (args.length == 0) {
  130. player.sendMessage(ChatColor.DARK_RED + "No permission");
  131. } else if (args.length == 1) {
  132. Player targetPlayer = player.getServer().getPlayer(args[0]);
  133. Location location = targetPlayer.getLocation();
  134. player.teleport(location);
  135. } else if (args.length == 2) {
  136. Player targetPlayer = player.getServer().getPlayer(args[0]);
  137. Player targetPlayer1 = player.getServer()
  138. .getPlayer(args[1]);
  139. Location targetPlayerLocation = targetPlayer.getLocation();
  140. Location targetPlayer1Location = targetPlayer.getLocation();
  141. targetPlayer.teleport(targetPlayer1Location);
  142. }
  143. }
  144. } else if (commandLabel.equalsIgnoreCase("/m")) {
  145. if (player.hasPermission("fissionplugin.message")) {
  146. if (args.length == 0) {
  147. player.sendMessage(ChatColor.DARK_RED
  148. + "Not enough arguments");
  149. }
  150. if (args.length == 1) {
  151. player.sendMessage(ChatColor.DARK_RED
  152. + "Not enough arguments");
  153. }
  154. if (args.length == 2) {
  155. Player targetMessagePlayer = player.getServer().getPlayer(
  156. args[0]);
  157. targetMessagePlayer.sendMessage(ChatColor.BLUE + "["
  158. + player.getDisplayName() + "] " + args[1]);
  159. }
  160. }
  161. } else if (commandLabel.equalsIgnoreCase("time")) {
  162. if (player.hasPermission("fissionplugin.world.time")) {
  163. if (args[0].equalsIgnoreCase("day")) {
  164. world.setTime(12000);
  165. player.sendMessage(ChatColor.YELLOW
  166. + "You have changed the time to day");
  167. }
  168. if (args[0].equalsIgnoreCase("night")) {
  169. world.setTime(18000);
  170. player.sendMessage(ChatColor.YELLOW
  171. + "You have changed the time to night");
  172. }
  173. if (args.length == 0) {
  174. player.sendMessage(ChatColor.DARK_RED
  175. + "Correct use: /time <day/night>");
  176. }
  177. }
  178. } else if (commandLabel.equalsIgnoreCase("broadcast")) {
  179. if (player.hasPermission("fissionplugin.broadcast")) {
  180. if (args.length == 0) {
  181. player.sendMessage(ChatColor.DARK_RED + "NO arguments");
  182. }
  183. if (args.length == 1) {
  184. Bukkit.broadcastMessage(ChatColor.BLUE + "["
  185. + player.getDisplayName() + "]" + "[Console]"
  186. + ChatColor.GREEN + " " + args[0]);
  187. }
  188. if (args.length == 2) {
  189. Bukkit.broadcastMessage(ChatColor.BLUE + "["
  190. + player.getDisplayName() + "]" + "[Console]"
  191. + ChatColor.GREEN + " " + args[0] + " " + args[1]);
  192. }
  193. if (args.length == 3) {
  194. Bukkit.broadcastMessage(ChatColor.BLUE + "["
  195. + player.getDisplayName() + "]" + "[Console]"
  196. + ChatColor.GREEN + " " + args[0] + " " + args[1]
  197. + " " + args[2]);
  198. }
  199. if (args.length == 4) {
  200. Bukkit.broadcastMessage(ChatColor.BLUE + "["
  201. + player.getDisplayName() + "]" + "[Console]"
  202. + ChatColor.GREEN + " " + args[0] + " " + args[1]
  203. + " " + args[2] + " " + args[3]);
  204. }
  205. if (args.length == 5) {
  206. Bukkit.broadcastMessage(ChatColor.BLUE + "["
  207. + player.getDisplayName() + "]" + "[Console]"
  208. + ChatColor.GREEN + " " + args[0] + " " + args[1]
  209. + " " + args[2] + " " + args[3] + " " + args[4]);
  210. }
  211. if (args.length == 6) {
  212. Bukkit.broadcastMessage(ChatColor.BLUE + "["
  213. + player.getDisplayName() + "]" + "[Console]"
  214. + ChatColor.GREEN + " " + args[0] + " " + args[1]
  215. + " " + args[2] + " " + args[3] + " " + args[4]
  216. + " " + args[5]);
  217. }
  218. if (args.length == 7) {
  219. Bukkit.broadcastMessage(ChatColor.BLUE + "["
  220. + player.getDisplayName() + "]" + "[Console]"
  221. + ChatColor.GREEN + " " + args[0] + " " + args[1]
  222. + " " + args[2] + " " + args[3] + " " + args[4]
  223. + " " + args[5] + " " + args[6]);
  224. }
  225. if (args.length == 8) {
  226. Bukkit.broadcastMessage(ChatColor.BLUE + "["
  227. + player.getDisplayName() + "]" + "[Console]"
  228. + ChatColor.GREEN + " " + args[0] + " " + args[1]
  229. + " " + args[2] + " " + args[3] + " " + args[4]
  230. + " " + args[5] + " " + args[6] + " " + args[7]);
  231. }
  232. if (args.length == 9) {
  233. Bukkit.broadcastMessage(ChatColor.BLUE + "["
  234. + player.getDisplayName() + "]" + "[Console]"
  235. + ChatColor.GREEN + " " + args[0] + " " + args[1]
  236. + " " + args[2] + " " + args[3] + " " + args[4]
  237. + " " + args[5] + " " + args[6] + " " + args[7]
  238. + " " + args[8]);
  239. }
  240. if (args.length == 10) {
  241. Bukkit.broadcastMessage(ChatColor.BLUE + "["
  242. + player.getDisplayName() + "]" + "[Console]"
  243. + ChatColor.GREEN + " " + args[0] + " " + args[1]
  244. + " " + args[2] + " " + args[3] + " " + args[4]
  245. + " " + args[5] + " " + args[6] + " " + args[7]
  246. + " " + args[8] + " " + args[9]);
  247. }
  248. if (args.length == 11) {
  249. Bukkit.broadcastMessage(ChatColor.BLUE + "["
  250. + player.getDisplayName() + "]" + "[Console]"
  251. + ChatColor.GREEN + " " + args[0] + " " + args[1]
  252. + " " + args[2] + " " + args[3] + " " + args[4]
  253. + " " + args[5] + " " + args[6] + " " + args[7]
  254. + " " + args[8] + " " + args[9] + " " + args[10]);
  255. }
  256. if (args.length == 12) {
  257. Bukkit.broadcastMessage(ChatColor.BLUE + "["
  258. + player.getDisplayName() + "]" + "[Console]"
  259. + ChatColor.GREEN + " " + args[0] + " " + args[1]
  260. + " " + args[2] + " " + args[3] + " " + args[4]
  261. + " " + args[5] + " " + args[6] + " " + args[7]
  262. + " " + args[8] + " " + args[9] + " " + args[10]
  263. + " " + args[11]);
  264. }
  265. if (args.length == 13) {
  266. Bukkit.broadcastMessage(ChatColor.BLUE + "["
  267. + player.getDisplayName() + "]" + "[Console]"
  268. + ChatColor.GREEN + " " + args[0] + " " + args[1]
  269. + " " + args[2] + " " + args[3] + " " + args[4]
  270. + " " + args[5] + " " + args[6] + " " + args[7]
  271. + " " + args[8] + " " + args[9] + " " + args[10]
  272. + " " + args[11] + " " + args[12]);
  273. }
  274. if (args.length == 14) {
  275. Bukkit.broadcastMessage(ChatColor.BLUE + "["
  276. + player.getDisplayName() + "]" + "[Console]"
  277. + ChatColor.GREEN + " " + args[0] + " " + args[1]
  278. + " " + args[2] + " " + args[3] + " " + args[4]
  279. + " " + args[5] + " " + args[6] + " " + args[7]
  280. + " " + args[8] + " " + args[9] + " " + args[10]
  281. + " " + args[11] + " " + args[12] + " " + args[13]);
  282. }
  283. if (args.length == 15) {
  284. Bukkit.broadcastMessage(ChatColor.BLUE + "["
  285. + player.getDisplayName() + "]" + "[Console]"
  286. + ChatColor.GREEN + " " + args[0] + " " + args[1]
  287. + " " + args[2] + " " + args[3] + " " + args[4]
  288. + " " + args[5] + " " + args[6] + " " + args[7]
  289. + " " + args[8] + " " + args[9] + " " + args[10]
  290. + " " + args[11] + " " + args[12] + " " + args[13]
  291. + "" + args[14]);
  292. }
  293. if (args.length == 16) {
  294. Bukkit.broadcastMessage(ChatColor.BLUE + "["
  295. + player.getDisplayName() + "]" + "[Console]"
  296. + ChatColor.GREEN + " " + args[0] + " " + args[1]
  297. + " " + args[2] + " " + args[3] + " " + args[4]
  298. + " " + args[5] + " " + args[6] + " " + args[7]
  299. + " " + args[8] + " " + args[9] + " " + args[10]
  300. + " " + args[11] + " " + args[12] + " " + args[13]
  301. + "" + args[14] + " " + args[15]);
  302. }
  303. if (args.length == 17) {
  304. Bukkit.broadcastMessage(ChatColor.BLUE + "["
  305. + player.getDisplayName() + "]" + "[Console]"
  306. + ChatColor.GREEN + " " + args[0] + " " + args[1]
  307. + " " + args[2] + " " + args[3] + " " + args[4]
  308. + " " + args[5] + " " + args[6] + " " + args[7]
  309. + " " + args[8] + " " + args[9] + " " + args[10]
  310. + " " + args[11] + " " + args[12] + " " + args[13]
  311. + "" + args[14] + " " + args[15] + " " + args[16]);
  312. }
  313. }
  314. } else if (commandLabel.equalsIgnoreCase("wt")) {
  315. if (player.hasPermission("fissionplugin.weather")) {
  316. if (args[0].equalsIgnoreCase("sun")) {
  317. world.setStorm(false);
  318. }
  319. if (args[0].equalsIgnoreCase("storm")) {
  320. world.setStorm(true);
  321. }
  322. }
  323. } else if (commandLabel.equalsIgnoreCase("nick")) {
  324. if (player.hasPermission("fissionplugin.namechange")) {
  325. if (args.length == 1) {
  326. player.setDisplayName(args[0]);
  327. player.sendMessage(ChatColor.BLUE
  328. + "Your nickname is now: " + args[0]);
  329. }
  330. }
  331. } else if (commandLabel.equalsIgnoreCase("nickother")) {
  332. if (player.hasPermission("fissionplugin.namechange.other")) {
  333. if (args.length == 2) {
  334. Player targetNamePlayer = getServer().getPlayer(args[0]);
  335. targetNamePlayer.setDisplayName(args[1]);
  336. targetNamePlayer.sendMessage(ChatColor.BLUE
  337. + "Your nickname is now: " + args[1]);
  338. player.sendMessage(ChatColor.DARK_BLUE
  339. + "You have changed " + args[0] + " Nickname to: "
  340. + args[1]);
  341. }
  342. }
  343. } else if (commandLabel.equalsIgnoreCase("gmc")) {
  344. if (player.hasPermission("fissionplugin.gamemode")) {
  345. if (player.getGameMode() == GameMode.CREATIVE) {
  346. player.setGameMode(GameMode.SURVIVAL);
  347. player.sendMessage(ChatColor.BLUE
  348. + "Your gamemode is now: " + player.getGameMode());
  349. }
  350. if (player.getGameMode() == GameMode.SURVIVAL) {
  351. player.setGameMode(GameMode.CREATIVE);
  352. player.sendMessage(ChatColor.BLUE
  353. + "Your gamemode is now: " + player.getGameMode());
  354. }
  355. }
  356. } else if (commandLabel.equalsIgnoreCase("/ban")) {
  357. if (player.hasPermission("fissionplugin.admin.ban")) {
  358. if (args.length == 2) {
  359. Player targetBanPlayer = getServer().getPlayer(args[0]);
  360. targetBanPlayer.kickPlayer(args[1]);
  361. targetBanPlayer.setBanned(true);
  362. }
  363. if (args[0] == player.getName()) {
  364. player.sendMessage(ChatColor.DARK_RED
  365. + "You can't ban yourself!");
  366. }
  367. }
  368. } else if (commandLabel.equalsIgnoreCase("/kick")) {
  369. if (player.hasPermission("fissionplugin.admin.kick")) {
  370. if (args.length == 2) {
  371. Player targetKickPlayer = getServer()
  372. .getPlayer(args[0]);
  373. targetKickPlayer.kickPlayer(args[1]);
  374. }
  375. }
  376. } else if (commandLabel.equalsIgnoreCase("/msg")) {
  377. if (player.hasPermission("fissionplugin.message")) {
  378. if (args.length == 0) {
  379. player.sendMessage(ChatColor.DARK_RED
  380. + "Not enough arguments");
  381. }
  382. if (args.length == 1) {
  383. Bukkit.broadcastMessage(ChatColor.GREEN + "["
  384. + player.getDisplayName() + "]"
  385. + ChatColor.GREEN + " " + args[0]);
  386. }
  387. if (args.length == 2) {
  388. Bukkit.broadcastMessage(ChatColor.GREEN + "["
  389. + player.getDisplayName() + "]"
  390. + ChatColor.GREEN + " " + args[0] + " "
  391. + args[1]);
  392. }
  393. if (args.length == 3) {
  394. Bukkit.broadcastMessage(ChatColor.GREEN + "["
  395. + player.getDisplayName() + "]"
  396. + ChatColor.GREEN + " " + args[0] + " "
  397. + args[1] + " " + args[2]);
  398. }
  399. if (args.length == 4) {
  400. Bukkit.broadcastMessage(ChatColor.GREEN + "["
  401. + player.getDisplayName() + "]"
  402. + ChatColor.GREEN + " " + args[0] + " "
  403. + args[1] + " " + args[2] + " " + args[3]);
  404. }
  405. if (args.length == 5) {
  406. Bukkit.broadcastMessage(ChatColor.GREEN + "["
  407. + player.getDisplayName() + "]"
  408. + ChatColor.GREEN + " " + args[0] + " "
  409. + args[1] + " " + args[2] + " " + args[3] + " "
  410. + args[4]);
  411. }
  412. if (args.length == 6) {
  413. Bukkit.broadcastMessage(ChatColor.GREEN + "["
  414. + player.getDisplayName() + "]"
  415. + ChatColor.GREEN + " " + args[0] + " "
  416. + args[1] + " " + args[2] + " " + args[3] + " "
  417. + args[4] + " " + args[5]);
  418. }
  419. if (args.length == 7) {
  420. Bukkit.broadcastMessage(ChatColor.GREEN + "["
  421. + player.getDisplayName() + "]"
  422. + ChatColor.GREEN + " " + args[0] + " "
  423. + args[1] + " " + args[2] + " " + args[3] + " "
  424. + args[4] + " " + args[5] + " " + args[6]);
  425. }
  426. if (args.length == 8) {
  427. Bukkit.broadcastMessage(ChatColor.GREEN + "["
  428. + player.getDisplayName() + "]"
  429. + ChatColor.GREEN + " " + args[0] + " "
  430. + args[1] + " " + args[2] + " " + args[3] + " "
  431. + args[4] + " " + args[5] + " " + args[6] + " "
  432. + args[7]);
  433. }
  434. if (args.length == 9) {
  435. Bukkit.broadcastMessage(ChatColor.GREEN + "["
  436. + player.getDisplayName() + "]"
  437. + ChatColor.GREEN + " " + args[0] + " "
  438. + args[1] + " " + args[2] + " " + args[3] + " "
  439. + args[4] + " " + args[5] + " " + args[6] + " "
  440. + args[7] + " " + args[8]);
  441. }
  442. if (args.length == 10) {
  443. Bukkit.broadcastMessage(ChatColor.GREEN + "["
  444. + player.getDisplayName() + "]"
  445. + ChatColor.GREEN + " " + args[0] + " "
  446. + args[1] + " " + args[2] + " " + args[3] + " "
  447. + args[4] + " " + args[5] + " " + args[6] + " "
  448. + args[7] + " " + args[8] + " " + args[9]);
  449. }
  450. if (args.length == 11) {
  451. Bukkit.broadcastMessage(ChatColor.GREEN + "["
  452. + player.getDisplayName() + "]"
  453. + ChatColor.GREEN + " " + args[0] + " "
  454. + args[1] + " " + args[2] + " " + args[3] + " "
  455. + args[4] + " " + args[5] + " " + args[6] + " "
  456. + args[7] + " " + args[8] + " " + args[9] + " "
  457. + args[10]);
  458. }
  459. if (args.length == 12) {
  460. Bukkit.broadcastMessage(ChatColor.GREEN + "["
  461. + player.getDisplayName() + "]"
  462. + ChatColor.GREEN + " " + args[0] + " "
  463. + args[1] + " " + args[2] + " " + args[3] + " "
  464. + args[4] + " " + args[5] + " " + args[6] + " "
  465. + args[7] + " " + args[8] + " " + args[9] + " "
  466. + args[10] + " " + args[11]);
  467. }
  468. if (args.length == 13) {
  469. Bukkit.broadcastMessage(ChatColor.GREEN + "["
  470. + player.getDisplayName() + "]"
  471. + ChatColor.GREEN + " " + args[0] + " "
  472. + args[1] + " " + args[2] + " " + args[3] + " "
  473. + args[4] + " " + args[5] + " " + args[6] + " "
  474. + args[7] + " " + args[8] + " " + args[9] + " "
  475. + args[10] + " " + args[11] + " " + args[12]);
  476. }
  477. if (args.length == 14) {
  478. Bukkit.broadcastMessage(ChatColor.GREEN + "["
  479. + player.getDisplayName() + "]"
  480. + ChatColor.GREEN + " " + args[0] + " "
  481. + args[1] + " " + args[2] + " " + args[3] + " "
  482. + args[4] + " " + args[5] + " " + args[6] + " "
  483. + args[7] + " " + args[8] + " " + args[9] + " "
  484. + args[10] + " " + args[11] + " " + args[12]
  485. + " " + args[13]);
  486. }
  487. if (args.length == 15) {
  488. Bukkit.broadcastMessage(ChatColor.GREEN + "["
  489. + player.getDisplayName() + "]"
  490. + ChatColor.GREEN + " " + args[0] + " "
  491. + args[1] + " " + args[2] + " " + args[3] + " "
  492. + args[4] + " " + args[5] + " " + args[6] + " "
  493. + args[7] + " " + args[8] + " " + args[9] + " "
  494. + args[10] + " " + args[11] + " " + args[12]
  495. + " " + args[13] + "" + args[14]);
  496. }
  497. if (args.length == 16) {
  498. Bukkit.broadcastMessage(ChatColor.GREEN + "["
  499. + player.getDisplayName() + "]"
  500. + ChatColor.GREEN + " " + args[0] + " "
  501. + args[1] + " " + args[2] + " " + args[3] + " "
  502. + args[4] + " " + args[5] + " " + args[6] + " "
  503. + args[7] + " " + args[8] + " " + args[9] + " "
  504. + args[10] + " " + args[11] + " " + args[12]
  505. + " " + args[13] + "" + args[14] + " "
  506. + args[15]);
  507. }
  508. if (args.length == 17) {
  509. Bukkit.broadcastMessage(ChatColor.GREEN + "["
  510. + player.getDisplayName() + "]"
  511. + ChatColor.GREEN + " " + args[0] + " "
  512. + args[1] + " " + args[2] + " " + args[3] + " "
  513. + args[4] + " " + args[5] + " " + args[6] + " "
  514. + args[7] + " " + args[8] + " " + args[9] + " "
  515. + args[10] + " " + args[11] + " " + args[12]
  516. + " " + args[13] + "" + args[14] + " "
  517. + args[15] + " " + args[16]);
  518. }
  519. }
  520. }
  521. return false;
  522. }
  523. {
  524. }
  525. {
  526. }
  527. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement