Solved NullPointerException by teleporting a player

Discussion in 'Plugin Development' started by Arkt0s, Apr 21, 2021.

  1. Offline


    I am making a plugin that teleport you in a different world. I made the gui and make when you click on slot 0 for exemple, it teleport you in a world but only the slot 4 can teleport me at a world and it work. For the others slots it give me an error. Here is the error :
    The main class :
    and the GUI class :
    (Sorry for bad explanation I am French)

    I solved the problem (happy ending)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Apr 21, 2021

Share This Page