Cant Teleport Players To a Specified DIM

Discussion in 'Plugin Development' started by Bowbuck2, Jan 7, 2017.

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


    Hello Everyone,

    I am Developing a Plugin that allows a player to be Revived or sent to another Dimension (DIM22) called the Afterlife, For some reason when in my code i am unable to Teleport players to this specified Dimension, I Get No Errors in the console And I also have my code set up to tell the player if that dimension could not be found but that message does not appear to the player, so the world does exist. my code will be in a URL Below Any Help is appreciated, thank you!
  2. @Bowbuck2
    1. No need to cast e.getEntity it already returns player
    2. Instead of doing 2 if statements for if it exists, just do an if else
    3. What does PlayerActions.isDead return and you shouldn't static abuse
    4. Any reason why t is a double rather than an int?
    5. Use ++ rather then X = X + 1
    6. The p.isOnline will ALWAYS return true so you can remove that check
    7. You already check if the world exists, you don't need to do it again

    So what exactly doesn't work? Do you have any errors? Did you debug?
  3. if (Bukkit.getServer().getWorlds().contains(afterlife)) {

    What does this return? True?
Thread Status:
Not open for further replies.

Share This Page