Guest User

Untitled

a guest
Nov 16th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.17 KB | None | 0 0
  1. package me.Kjordo711.Bukkit.SearchAndDestroy;
  2.  
  3. import java.util.ArrayList;
  4. import java.util.Collection;
  5. import java.util.logging.Logger;
  6.  
  7. import org.bukkit.Bukkit;
  8. import org.bukkit.ChatColor;
  9. import org.bukkit.GameMode;
  10. import org.bukkit.Location;
  11. import org.bukkit.Material;
  12. import org.bukkit.command.Command;
  13. import org.bukkit.command.CommandSender;
  14. import org.bukkit.enchantments.Enchantment;
  15. import org.bukkit.enchantments.EnchantmentWrapper;
  16. import org.bukkit.entity.Item;
  17. import org.bukkit.entity.Player;
  18. import org.bukkit.inventory.ItemStack;
  19. import org.bukkit.plugin.PluginDescriptionFile;
  20. import org.bukkit.plugin.java.JavaPlugin;
  21. import org.bukkit.potion.PotionEffect;
  22. import org.bukkit.potion.PotionEffectType;
  23.  
  24. public class SearchAndDestroy extends JavaPlugin{
  25.  
  26. private Logger log = Logger.getLogger("Minecraft");
  27.  
  28. public ArrayList<String> blueTeam = new ArrayList<String>();
  29.  
  30. public ArrayList<String> greenTeam = new ArrayList<String>();
  31.  
  32. public int teamDecider = 0;
  33. ItemStack blueWool = new ItemStack( Material.WOOL, 1, (byte)11 );
  34. ItemStack emeraldBlock = new ItemStack( Material.EMERALD_BLOCK);
  35.  
  36. //Blue
  37. double bluex = 869;
  38. double bluey = 5.0;
  39. double bluez = 818.0;
  40.  
  41.  
  42. //Green
  43. double greenx = 817;
  44. double greeny = 5.0;
  45. double greenz = 831;
  46.  
  47. /*
  48. player.removePotionEffect(PotionEffectType.CONFUSION);
  49. player.removePotionEffect(PotionEffectType.BLINDNESS);
  50. player.removePotionEffect(PotionEffectType.DAMAGE_RESISTANCE);
  51. player.removePotionEffect(PotionEffectType.FAST_DIGGING);
  52. player.removePotionEffect(PotionEffectType.FIRE_RESISTANCE);
  53. player.removePotionEffect(PotionEffectType.HARM);
  54. player.removePotionEffect(PotionEffectType.HEAL);
  55. player.removePotionEffect(PotionEffectType.HUNGER);
  56. player.removePotionEffect(PotionEffectType.INCREASE_DAMAGE);
  57. player.removePotionEffect(PotionEffectType.INVISIBILITY);
  58. player.removePotionEffect(PotionEffectType.NIGHT_VISION);
  59. player.removePotionEffect(PotionEffectType.POISON);
  60. player.removePotionEffect(PotionEffectType.REGENERATION);
  61. player.removePotionEffect(PotionEffectType.SLOW);
  62. player.removePotionEffect(PotionEffectType.SLOW_DIGGING);
  63. player.removePotionEffect(PotionEffectType.SPEED);
  64. player.removePotionEffect(PotionEffectType.WATER_BREATHING);
  65. player.removePotionEffect(PotionEffectType.WEAKNESS);
  66.  
  67.  
  68. */
  69.  
  70.  
  71. public void onEnable(){
  72. this.logMessage("[SnD] Has Been Enabled");
  73. getServer().getPluginManager().registerEvents(new sndPlayerListener(this), this);
  74. }
  75.  
  76. public void onDisable(){
  77. this.logMessage("[SnD] has been disabled");
  78. }
  79.  
  80. public void logMessage(String msg){
  81. PluginDescriptionFile pdFile = this.getDescription();
  82. this.log.info(pdFile.getName() + " " + pdFile.getVersion() + ": " + msg);
  83. }
  84. public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
  85.  
  86. Player player = (Player) sender;
  87.  
  88. if(cmd.getName().equalsIgnoreCase("Join")){
  89.  
  90. teamDecider++;
  91. if(teamDecider == 3){
  92. teamDecider = 1;
  93.  
  94.  
  95. }
  96.  
  97.  
  98. if(teamDecider == 1){
  99. String playerName = player.getName();
  100. Location blueSpawn = new Location(player.getPlayer().getServer().getWorld("DoomsDay"), bluex, bluey, bluez);
  101. player.teleport(blueSpawn);
  102. blueTeam.add(playerName);
  103. player.getInventory().setHelmet(blueWool);
  104. player.sendMessage("You are on the " + ChatColor.BLUE + "Blue Team!");
  105. player.sendMessage("Use " + ChatColor.GOLD + "/Class " + ChatColor.WHITE + "To Choose A Class");
  106. player.getInventory().clear();
  107. }
  108.  
  109.  
  110. if(teamDecider == 2){
  111. String playerName = player.getName();
  112. Location greenSpawn = new Location(player.getPlayer().getServer().getWorld("DoomsDay"), greenx, greeny, greenz);
  113. player.teleport(greenSpawn);
  114. greenTeam.add(playerName);
  115. player.getInventory().setHelmet(emeraldBlock);
  116. player.sendMessage("You are on the " + ChatColor.GREEN + "Green Team!");
  117. player.sendMessage("Use " + ChatColor.GOLD + "/Class " + ChatColor.GRAY + "To Choose A Class");
  118. player.getInventory().clear();
  119.  
  120. }
  121. if(greenTeam.contains(player)){
  122. player.sendMessage(ChatColor.RED + "You already are on the " + ChatColor.GREEN + "Green Team!");
  123.  
  124. }
  125. if(blueTeam.contains(player)){
  126. player.sendMessage(ChatColor.RED + "You already are on the " + ChatColor.GREEN + "Green Team!");
  127.  
  128. }
  129.  
  130.  
  131. return true;
  132.  
  133.  
  134.  
  135. }
  136.  
  137. if(cmd.getName().equalsIgnoreCase("Class")){
  138. String playerName = player.getName();
  139.  
  140. player.sendMessage("Normal Class List:");
  141. player.sendMessage(ChatColor.BLUE + "Scout");
  142. player.sendMessage(ChatColor.BLUE + "Medic");
  143. player.sendMessage(ChatColor.BLUE + "Ninja");
  144. player.sendMessage(ChatColor.BLUE + "Ranger");
  145. player.sendMessage(ChatColor.BLUE + "Tank");
  146. player.sendMessage(ChatColor.BLUE + "Assault");
  147. player.sendMessage(ChatColor.GOLD + "Do /<classname> to choose the class");
  148.  
  149. return true;
  150.  
  151.  
  152. }
  153.  
  154.  
  155. if(cmd.getName().equalsIgnoreCase("Scout")){
  156. String playerName = player.getName();
  157.  
  158.  
  159. player.getInventory().clear();
  160. player.updateInventory();
  161.  
  162.  
  163. if(greenTeam.contains(playerName)){
  164.  
  165. Location greenSpawn = new Location(player.getPlayer().getServer().getWorld("DoomsDay"), greenx, greeny, greenz);
  166. player.teleport(greenSpawn);
  167. player.getInventory().setBoots(new ItemStack(Material.LEATHER_BOOTS));
  168. player.getInventory().setLeggings(new ItemStack(Material.LEATHER_LEGGINGS));
  169. player.getInventory().setChestplate(new ItemStack(Material.LEATHER_CHESTPLATE));
  170. player.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 99999999, 3));
  171. player.addPotionEffect(new PotionEffect(PotionEffectType.JUMP, 999999999, 3));
  172. player.getInventory().setItemInHand(new ItemStack(Material.STONE_SWORD));
  173. player.getInventory().addItem(new ItemStack(Material.COOKED_BEEF, 16));
  174. player.updateInventory();
  175.  
  176.  
  177. player.removePotionEffect(PotionEffectType.CONFUSION);
  178. player.removePotionEffect(PotionEffectType.BLINDNESS);
  179. player.removePotionEffect(PotionEffectType.DAMAGE_RESISTANCE);
  180. player.removePotionEffect(PotionEffectType.FAST_DIGGING);
  181. player.removePotionEffect(PotionEffectType.FIRE_RESISTANCE);
  182. player.removePotionEffect(PotionEffectType.HARM);
  183. player.removePotionEffect(PotionEffectType.HEAL);
  184. player.removePotionEffect(PotionEffectType.HUNGER);
  185. player.removePotionEffect(PotionEffectType.INCREASE_DAMAGE);
  186. player.removePotionEffect(PotionEffectType.INVISIBILITY);
  187. player.removePotionEffect(PotionEffectType.NIGHT_VISION);
  188. player.removePotionEffect(PotionEffectType.POISON);
  189. player.removePotionEffect(PotionEffectType.REGENERATION);
  190. player.removePotionEffect(PotionEffectType.SLOW);
  191. player.removePotionEffect(PotionEffectType.SLOW_DIGGING);
  192. player.removePotionEffect(PotionEffectType.WATER_BREATHING);
  193. player.removePotionEffect(PotionEffectType.WEAKNESS);
  194.  
  195.  
  196.  
  197. }
  198. if(blueTeam.contains(playerName)){
  199.  
  200.  
  201. Location blueSpawn = new Location(player.getPlayer().getServer().getWorld("DoomsDay"), bluex, bluey, bluez);
  202. player.teleport(blueSpawn);
  203. player.getInventory().setBoots(new ItemStack(Material.LEATHER_BOOTS));
  204. player.getInventory().setLeggings(new ItemStack(Material.LEATHER_LEGGINGS));
  205. player.getInventory().setChestplate(new ItemStack(Material.LEATHER_CHESTPLATE));
  206. player.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 99999999, 3));
  207. player.addPotionEffect(new PotionEffect(PotionEffectType.JUMP, 99999999, 3));
  208. player.getInventory().setItemInHand(new ItemStack(Material.STONE_SWORD));
  209. player.getInventory().addItem(new ItemStack(Material.COOKED_BEEF, 16));
  210. player.updateInventory();
  211.  
  212. player.removePotionEffect(PotionEffectType.CONFUSION);
  213. player.removePotionEffect(PotionEffectType.BLINDNESS);
  214. player.removePotionEffect(PotionEffectType.DAMAGE_RESISTANCE);
  215. player.removePotionEffect(PotionEffectType.FAST_DIGGING);
  216. player.removePotionEffect(PotionEffectType.FIRE_RESISTANCE);
  217. player.removePotionEffect(PotionEffectType.HARM);
  218. player.removePotionEffect(PotionEffectType.HEAL);
  219. player.removePotionEffect(PotionEffectType.HUNGER);
  220. player.removePotionEffect(PotionEffectType.INCREASE_DAMAGE);
  221. player.removePotionEffect(PotionEffectType.INVISIBILITY);
  222. player.removePotionEffect(PotionEffectType.NIGHT_VISION);
  223. player.removePotionEffect(PotionEffectType.POISON);
  224. player.removePotionEffect(PotionEffectType.REGENERATION);
  225. player.removePotionEffect(PotionEffectType.SLOW);
  226. player.removePotionEffect(PotionEffectType.SLOW_DIGGING);
  227. player.removePotionEffect(PotionEffectType.WATER_BREATHING);
  228. player.removePotionEffect(PotionEffectType.WEAKNESS);
  229.  
  230. }
  231.  
  232. return true;
  233.  
  234. }
  235. if(cmd.getName().equalsIgnoreCase("Assault")){
  236. String playerName = player.getName();
  237.  
  238.  
  239. player.getInventory().clear();
  240. player.updateInventory();
  241.  
  242.  
  243. if(greenTeam.contains(playerName)){
  244.  
  245. Location greenSpawn = new Location(player.getPlayer().getServer().getWorld("DoomsDay"), greenx, greeny, greenz);
  246. player.teleport(greenSpawn);
  247. player.getInventory().setBoots(new ItemStack(Material.IRON_BOOTS));
  248. player.getInventory().setLeggings(new ItemStack(Material.IRON_LEGGINGS));
  249. player.getInventory().setChestplate(new ItemStack(Material.IRON_CHESTPLATE));
  250. player.getInventory().setItemInHand(new ItemStack(Material.IRON_SWORD));
  251. player.getInventory().addItem(new ItemStack(Material.COOKED_BEEF, 16));
  252. player.updateInventory();
  253.  
  254.  
  255. player.removePotionEffect(PotionEffectType.CONFUSION);
  256. player.removePotionEffect(PotionEffectType.BLINDNESS);
  257. player.removePotionEffect(PotionEffectType.DAMAGE_RESISTANCE);
  258. player.removePotionEffect(PotionEffectType.FAST_DIGGING);
  259. player.removePotionEffect(PotionEffectType.FIRE_RESISTANCE);
  260. player.removePotionEffect(PotionEffectType.HARM);
  261. player.removePotionEffect(PotionEffectType.HEAL);
  262. player.removePotionEffect(PotionEffectType.HUNGER);
  263. player.removePotionEffect(PotionEffectType.INCREASE_DAMAGE);
  264. player.removePotionEffect(PotionEffectType.INVISIBILITY);
  265. player.removePotionEffect(PotionEffectType.NIGHT_VISION);
  266. player.removePotionEffect(PotionEffectType.POISON);
  267. player.removePotionEffect(PotionEffectType.REGENERATION);
  268. player.removePotionEffect(PotionEffectType.SLOW);
  269. player.removePotionEffect(PotionEffectType.SLOW_DIGGING);
  270. player.removePotionEffect(PotionEffectType.WATER_BREATHING);
  271. player.removePotionEffect(PotionEffectType.WEAKNESS);
  272.  
  273.  
  274.  
  275. }
  276. if(blueTeam.contains(playerName)){
  277.  
  278.  
  279. Location blueSpawn = new Location(player.getPlayer().getServer().getWorld("DoomsDay"), bluex, bluey, bluez);
  280. player.teleport(blueSpawn);
  281. player.getInventory().setBoots(new ItemStack(Material.IRON_BOOTS));
  282. player.getInventory().setLeggings(new ItemStack(Material.IRON_LEGGINGS));
  283. player.getInventory().setChestplate(new ItemStack(Material.IRON_CHESTPLATE));
  284. player.getInventory().setItemInHand(new ItemStack(Material.IRON_SWORD));
  285. player.getInventory().addItem(new ItemStack(Material.COOKED_BEEF, 16));
  286. player.updateInventory();
  287.  
  288. player.removePotionEffect(PotionEffectType.CONFUSION);
  289. player.removePotionEffect(PotionEffectType.BLINDNESS);
  290. player.removePotionEffect(PotionEffectType.DAMAGE_RESISTANCE);
  291. player.removePotionEffect(PotionEffectType.FAST_DIGGING);
  292. player.removePotionEffect(PotionEffectType.FIRE_RESISTANCE);
  293. player.removePotionEffect(PotionEffectType.HARM);
  294. player.removePotionEffect(PotionEffectType.HEAL);
  295. player.removePotionEffect(PotionEffectType.HUNGER);
  296. player.removePotionEffect(PotionEffectType.INCREASE_DAMAGE);
  297. player.removePotionEffect(PotionEffectType.INVISIBILITY);
  298. player.removePotionEffect(PotionEffectType.NIGHT_VISION);
  299. player.removePotionEffect(PotionEffectType.POISON);
  300. player.removePotionEffect(PotionEffectType.REGENERATION);
  301. player.removePotionEffect(PotionEffectType.SLOW);
  302. player.removePotionEffect(PotionEffectType.SLOW_DIGGING);
  303. player.removePotionEffect(PotionEffectType.WATER_BREATHING);
  304. player.removePotionEffect(PotionEffectType.WEAKNESS);
  305.  
  306. }
  307. return true;
  308.  
  309.  
  310.  
  311. }
  312. if(cmd.getName().equalsIgnoreCase("Ranger")){
  313. String playerName = player.getName();
  314.  
  315.  
  316. player.getInventory().clear();
  317. player.updateInventory();
  318.  
  319.  
  320. if(greenTeam.contains(playerName)){
  321.  
  322.  
  323. Location greenSpawn = new Location(player.getPlayer().getServer().getWorld("DoomsDay"), greenx, greeny, greenz);
  324. player.teleport(greenSpawn);
  325. player.getInventory().setBoots(new ItemStack(Material.LEATHER_BOOTS));
  326. player.getInventory().setLeggings(new ItemStack(Material.LEATHER_LEGGINGS));
  327. player.getInventory().setChestplate(new ItemStack(Material.LEATHER_CHESTPLATE));
  328. player.getInventory().addItem(new ItemStack(Material.STONE_SWORD));
  329. ItemStack bow = new ItemStack(Material.BOW);
  330. player.getInventory().setItemInHand(new ItemStack(Material.BOW));
  331. bow.addEnchantment(Enchantment.ARROW_INFINITE, 1);
  332. bow.addEnchantment(Enchantment.ARROW_DAMAGE, 3);
  333. player.getInventory().addItem(new ItemStack(Material.COOKED_BEEF, 16));
  334. player.getInventory().addItem(new ItemStack(Material.ARROW, 1));
  335. player.updateInventory();
  336.  
  337.  
  338. player.removePotionEffect(PotionEffectType.CONFUSION);
  339. player.removePotionEffect(PotionEffectType.BLINDNESS);
  340. player.removePotionEffect(PotionEffectType.DAMAGE_RESISTANCE);
  341. player.removePotionEffect(PotionEffectType.FAST_DIGGING);
  342. player.removePotionEffect(PotionEffectType.FIRE_RESISTANCE);
  343. player.removePotionEffect(PotionEffectType.HARM);
  344. player.removePotionEffect(PotionEffectType.HEAL);
  345. player.removePotionEffect(PotionEffectType.HUNGER);
  346. player.removePotionEffect(PotionEffectType.INCREASE_DAMAGE);
  347. player.removePotionEffect(PotionEffectType.INVISIBILITY);
  348. player.removePotionEffect(PotionEffectType.NIGHT_VISION);
  349. player.removePotionEffect(PotionEffectType.POISON);
  350. player.removePotionEffect(PotionEffectType.REGENERATION);
  351. player.removePotionEffect(PotionEffectType.SLOW);
  352. player.removePotionEffect(PotionEffectType.SLOW_DIGGING);
  353. player.removePotionEffect(PotionEffectType.WATER_BREATHING);
  354. player.removePotionEffect(PotionEffectType.WEAKNESS);
  355.  
  356.  
  357.  
  358. }
  359. if(blueTeam.contains(playerName)){
  360.  
  361.  
  362. Location blueSpawn = new Location(player.getPlayer().getServer().getWorld("DoomsDay"), bluex, bluey, bluez);
  363. player.teleport(blueSpawn);
  364. player.getInventory().setBoots(new ItemStack(Material.LEATHER_BOOTS));
  365. player.getInventory().setLeggings(new ItemStack(Material.LEATHER_LEGGINGS));
  366. player.getInventory().setChestplate(new ItemStack(Material.LEATHER_CHESTPLATE));
  367. player.getInventory().addItem(new ItemStack(Material.STONE_SWORD));
  368. ItemStack bow = new ItemStack(Material.BOW);
  369. bow.addEnchantment(Enchantment.ARROW_INFINITE, 1);
  370. bow.addEnchantment(Enchantment.ARROW_DAMAGE, 3);
  371. player.getInventory().setItemInHand(new ItemStack(Material.BOW));
  372. player.getInventory().addItem(new ItemStack(Material.COOKED_BEEF, 16));
  373. player.getInventory().addItem(new ItemStack(Material.ARROW, 1));
  374. player.updateInventory();
  375.  
  376. player.removePotionEffect(PotionEffectType.CONFUSION);
  377. player.removePotionEffect(PotionEffectType.BLINDNESS);
  378. player.removePotionEffect(PotionEffectType.DAMAGE_RESISTANCE);
  379. player.removePotionEffect(PotionEffectType.FAST_DIGGING);
  380. player.removePotionEffect(PotionEffectType.FIRE_RESISTANCE);
  381. player.removePotionEffect(PotionEffectType.HARM);
  382. player.removePotionEffect(PotionEffectType.HEAL);
  383. player.removePotionEffect(PotionEffectType.HUNGER);
  384. player.removePotionEffect(PotionEffectType.INCREASE_DAMAGE);
  385. player.removePotionEffect(PotionEffectType.INVISIBILITY);
  386. player.removePotionEffect(PotionEffectType.NIGHT_VISION);
  387. player.removePotionEffect(PotionEffectType.POISON);
  388. player.removePotionEffect(PotionEffectType.REGENERATION);
  389. player.removePotionEffect(PotionEffectType.SLOW);
  390. player.removePotionEffect(PotionEffectType.SLOW_DIGGING);
  391. player.removePotionEffect(PotionEffectType.WATER_BREATHING);
  392. player.removePotionEffect(PotionEffectType.WEAKNESS);
  393.  
  394. }
  395. return true;
  396.  
  397.  
  398.  
  399. }
  400. if(cmd.getName().equalsIgnoreCase("Tank")){
  401. String playerName = player.getName();
  402.  
  403.  
  404. player.getInventory().clear();
  405. player.updateInventory();
  406.  
  407.  
  408. if(greenTeam.contains(playerName)){
  409.  
  410.  
  411. Location greenSpawn = new Location(player.getPlayer().getServer().getWorld("DoomsDay"), greenx, greeny, greenz);
  412. player.teleport(greenSpawn);
  413. player.getInventory().setBoots(new ItemStack(Material.DIAMOND_BOOTS));
  414. player.getInventory().setLeggings(new ItemStack(Material.IRON_LEGGINGS));
  415. player.getInventory().setChestplate(new ItemStack(Material.DIAMOND_CHESTPLATE));
  416. ItemStack sword = new ItemStack(Material.DIAMOND_SWORD);
  417. sword.addEnchantment(Enchantment.DAMAGE_ALL, 1);
  418. player.getInventory().setItemInHand(new ItemStack(Material.DIAMOND_SWORD));
  419. player.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, 99999999, 1));
  420. player.updateInventory();
  421.  
  422.  
  423. player.removePotionEffect(PotionEffectType.CONFUSION);
  424. player.removePotionEffect(PotionEffectType.BLINDNESS);
  425. player.removePotionEffect(PotionEffectType.DAMAGE_RESISTANCE);
  426. player.removePotionEffect(PotionEffectType.FAST_DIGGING);
  427. player.removePotionEffect(PotionEffectType.FIRE_RESISTANCE);
  428. player.removePotionEffect(PotionEffectType.HARM);
  429. player.removePotionEffect(PotionEffectType.HEAL);
  430. player.removePotionEffect(PotionEffectType.HUNGER);
  431. player.removePotionEffect(PotionEffectType.INCREASE_DAMAGE);
  432. player.removePotionEffect(PotionEffectType.INVISIBILITY);
  433. player.removePotionEffect(PotionEffectType.NIGHT_VISION);
  434. player.removePotionEffect(PotionEffectType.POISON);
  435. player.removePotionEffect(PotionEffectType.REGENERATION);
  436. player.removePotionEffect(PotionEffectType.SLOW);
  437. player.removePotionEffect(PotionEffectType.SLOW_DIGGING);
  438. player.removePotionEffect(PotionEffectType.WATER_BREATHING);
  439. player.removePotionEffect(PotionEffectType.WEAKNESS);
  440.  
  441.  
  442.  
  443. }
  444. if(blueTeam.contains(playerName)){
  445.  
  446.  
  447. Location blueSpawn = new Location(player.getPlayer().getServer().getWorld("DoomsDay"), bluex, bluey, bluez);
  448. player.teleport(blueSpawn);
  449. player.getInventory().setBoots(new ItemStack(Material.DIAMOND_BOOTS));
  450. player.getInventory().setLeggings(new ItemStack(Material.IRON_LEGGINGS));
  451. player.getInventory().setChestplate(new ItemStack(Material.DIAMOND_CHESTPLATE));
  452. ItemStack sword = new ItemStack(Material.DIAMOND_SWORD);
  453. sword.addEnchantment(Enchantment.DAMAGE_ALL, 1);
  454. player.getInventory().setItemInHand(new ItemStack(Material.DIAMOND_SWORD));
  455. player.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, 99999999, 1));
  456. player.updateInventory();
  457.  
  458. player.removePotionEffect(PotionEffectType.CONFUSION);
  459. player.removePotionEffect(PotionEffectType.BLINDNESS);
  460. player.removePotionEffect(PotionEffectType.DAMAGE_RESISTANCE);
  461. player.removePotionEffect(PotionEffectType.FAST_DIGGING);
  462. player.removePotionEffect(PotionEffectType.FIRE_RESISTANCE);
  463. player.removePotionEffect(PotionEffectType.HARM);
  464. player.removePotionEffect(PotionEffectType.HEAL);
  465. player.removePotionEffect(PotionEffectType.HUNGER);
  466. player.removePotionEffect(PotionEffectType.INCREASE_DAMAGE);
  467. player.removePotionEffect(PotionEffectType.INVISIBILITY);
  468. player.removePotionEffect(PotionEffectType.NIGHT_VISION);
  469. player.removePotionEffect(PotionEffectType.POISON);
  470. player.removePotionEffect(PotionEffectType.REGENERATION);
  471. player.removePotionEffect(PotionEffectType.SLOW);
  472. player.removePotionEffect(PotionEffectType.SLOW_DIGGING);
  473. player.removePotionEffect(PotionEffectType.WATER_BREATHING);
  474. player.removePotionEffect(PotionEffectType.WEAKNESS);
  475.  
  476. }
  477. return true;
  478.  
  479.  
  480.  
  481. }
  482. return false;
  483.  
  484.  
  485.  
  486. }
  487. }
Add Comment
Please, Sign In to add comment