Already stopping when 1 person dies

Discussion in 'Plugin Development' started by Nibbit, Dec 31, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Nibbit

    Hello!
    I recently finished my UHC Plugin and I had 1 problem (I probably typed something wrong or idk) But my game already ends even if 1 player has died! :/ Code :
    http://pastebin.com/5TaMFr12
    I already spent like 2 weeks fixing this bug I don't know what I have done wrong xD
     
  2. Offline

    Zombie_Striker

    Code:
    @SuppressWarnings("unused")     private Main plugin;
    
    You do not need an instance of Main in the main class.
    Code:
        World mainw = Bukkit.getWorld("UHC");
    
    You are getting the world before the plugin has even been enabled (and as such, before the world has been loaded)

    Still looking for your problem.
     
  3. Offline

    Nibbit

    Thats the problem! Im ending my game in the public void DeathPath (Or something like that name)
    And yes 1 class! Because I suck at Multi classes :D
    Thanks! I didn't see those problems at first because it doesn't give me any errors :D

    EDIT : Yep! DeathPath :
    http://hastebin.com/axolukavep.avrasm
     
Thread Status:
Not open for further replies.

Share This Page