Does anyone know why the error? RespawnEvent [Resolved]

Discussion in 'Spigot Plugin Development' started by Hecker, Jun 24, 2015.

  1. When the player contain the list of warp when respawn it will be teleported to the lobby of the warp but an error
     

    Attached Files:

  2. Events.java line 37 is returning a null pointer exception which means you are trying to find something that doesn't exist, whether it be a player that doesn't exists etc, always check if something is null before using it, and also... Next time don't come to the forums, use this tutorial to help you solve these simple problems yourself https://bukkit.org/threads/how-to-r...ubleshoot-your-own-plugins-by-yourself.32457/

    And I can't help you fix the code if you give me a snippet because I don't know what line 37 of Event.java is
     
  3. World w = Bukkit.getServer().getWorld(plugin.getConfig().getString(
     
  4. Is the String from the Config loaded correctly?
    Is there even a world with that name?

    Putting in some debugging messages would help.