I need help with a teleport plugin!

Discussion in 'Spigot Plugin Help' started by energyy_, Jun 5, 2017.

  1. Hey, I'm trying to create a teleport plugin where you type example /north and get to the north side of the spawn.
    So I'm wondering how to create the code so when i type /north i get to x, y, z coordinates. I know this is very simple for the expienced "coders" but I'm new and need help.. :3
  2. Next time put ir in the Spigot Development thread.
    Code (Text):
    Player player;
    Location location = new Location(x, y, z);
    • Like Like x 1
  3. You set the coordinates with a command and save them in the config (you need x, y, z, yaw, pitch and the world). Then if you type /north you create the location and teleport [WRONG SECTION for this post]
  4. As guys write u write it in bad section and solution u have it..