PlayerGyms (Plotme kind of)

Discussion in 'Plugin Development' started by Fhbgsdhkfbl, Apr 24, 2014.

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

    Fhbgsdhkfbl

    Hey bukkit forums, me and my friend are developing a plugin called "PlayerGyms"
    and it's basically setting warps
    When they do /setgym <NameOFGym> they will make there own gym(Similar to are warp)
    when they do /delgym <NameOfGym> ONLY THE PLAYER Can delete the warp
    They can only have 1 Gym.

    We need to save the coords when they set the gym.

    So if you can help us a bit, I'd appreciate it!
     
  2. Offline

    PluginStudios

    Fhbgsdhkfbl so, think about this. There is two ways to do this:
    1. Save separate values for x, y, and z for each gym
    2. Save them all in the same value and seperate with commas.

    Both ways are efficent.
    To get location:
    e.x player.getLocation().getBlockX();
     
  3. Offline

    killerman747

    Fhbgsdhkfbl
    Do what PluginStudios directed and save the location and name of the warp to a config. Then when deleting the warp, make sure the player deleting is matches that name of the owner for that warp in the config.
     
Thread Status:
Not open for further replies.

Share This Page