Advertisement
Guest User

Untitled

a guest
Apr 15th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. public static void Stop() {
  2. Bukkit.getScheduler().cancelAllTasks();
  3. CheckT.stopTimer();
  4. GameT.stopTimer();
  5. LobbyT.start();
  6. ArrayLists.Blue.clear();
  7. ArrayLists.BlueDead.clear();
  8. ArrayLists.Red.clear();
  9. ArrayLists.RedDead.clear();
  10. for (Player player : ArrayLists.Game) { // <---- Line 30
  11. ArrayLists.Game.remove(player);
  12. ArrayLists.Lobby.add(player);
  13.  
  14. int X = (int) Main.main().getConfig().getDouble("Spawn.X");
  15. int Y = (int) Main.main().getConfig().getDouble("Spawn.Y");
  16. int Z = (int) Main.main().getConfig().getDouble("Spawn.Z");
  17.  
  18. Location loc = new Location(Bukkit.getWorld("world"), X + 0.5, Y + 0.5, Z + 0.5);
  19.  
  20. player.teleport(loc);
  21. player.getInventory().clear();
  22. }
  23. }
  24.  
  25. Line 82 in CheckT is the Stop() initialisation.
  26.  
  27. Plugin FrogBall v0.1 generated an exception while executing task 17
  28. java.util.ConcurrentModificationException: null
  29. at java.util.ArrayList$Itr.checkForComodification(Unknown Source) ~[?:1.8.0_151]
  30. at java.util.ArrayList$Itr.next(Unknown Source) ~[?:1.8.0_151]
  31. at me.FrogTerra.FrogBall.Game.Stop(Game.java:30) ~[?:?]
  32. at me.FrogTerra.FrogBall.Timers.CheckT$1.run(CheckT.java:82) ~[?:?]
  33. at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:58) ~[craftbukkit.jar:git-Bukkit-9060bfa]
  34. at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52) [craftbukkit.jar:git-Bukkit-9060bfa]
  35. at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_151]
  36. at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_151]
  37. at java.lang.Thread.run(Unknown Source) [?:1.8.0_151]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement