Solved WildTP Plugin

Discussion in 'Plugin Development' started by BrianGames12, Dec 30, 2017.

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

    BrianGames12

    So I've made a simple random teleportation plugin that teleports a player within a set radius.

    The issue I'm having is that people have multiple worlds, and I want to make an option to set the world or worlds the player is teleported to no matter the world they’re in.

    Here is my working code which has the wild command, a cool down, and it automatically teleports the players to ground.

    Here are the files for eclipse: https://www.dropbox.com/sh/bjo7sac2hkupd9x/AAATxuOvqfdXYCYXzIMw_bgxa?dl=0

    Thanks
     
    KingOfTheEast01 likes this.
  2. Offline

    KingOfTheEast01

    How do you plan on implementing this? Will the player get to choose the world they teleport to, or will the administration be able to choose a world for them to use no matter what in a file of some sort?
     
  3. Offline

    BrianGames12

    I would want it so the administration could put the world or worlds names in the config.
     
  4. Offline

    timtower Administrator Administrator Moderator

  5. Offline

    KingOfTheEast01

    You can make a config for them to put the name of the world in, and use that name to locate the world and move them there. I'm still curious about one thing though. Would you still be moving them in a general vicinity from their relative location in their current world if they weren't already in that world, or rather from a specified location in that world? If it was a new location, you could also have them specify that in the config as well.
     
  6. Offline

    BrianGames12

    Thank you both for your responses. I've decided to set two different modes in my configuration.

    Mode 1: Randomly teleports players in the world they are currently in.
    Mode 2: Teleports players to a set world in the config.

    Thank you so much again,
    Brian
     
    KingOfTheEast01 likes this.
Thread Status:
Not open for further replies.

Share This Page