[1.8.8] ERROR, TP or Something, idk

Discussion in 'Spigot Plugin Development' started by TheDaChicken, Apr 15, 2017.

  1. Hello, I am creating a Game Plugin and I am getting this error:

    The Whole ERROR:
    [Server thread/WARN]: [DiamondMiner-Micro_Battles] Task #7 for DiamondMiner-Micro_Battles v1.0 generated an exception

    Main.class Waring Big: https://pastebin.com/gdhT9DwB

    The Error might not be the whole error but it is.
     
  2. 1. This cant be the whole error LOL
    2. Why is your whole code (2700 lines!) in one class!?
     
  3. @kanoxx
    In The Log file, It has the whole error: https://pastebin.com/6VcRN9ks
    because there are lot of timers and I like timers to be in my Main class
     
  4. This line at 177 gives the error
    Code (Text):
    block.setTypeIdAndData(blocks[index], blockData[index], true);
     
  5. Also the reason why your code is so big is because you have written it very inefficient. Instead of just doing: "The time starts in N seconds" you are doing it for every second with the exact same code which generates over 1500 lines of code