Solved Save World

Discussion in 'Plugin Development' started by LandinosMC, Jun 26, 2017.

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

    LandinosMC

    How to save vorld
    I want to make This
    1.I do /sethub
    2.Than Plugin Get World I am In and save it
    3.Then When I run Command /hub or /lobby plugin Will teleport Player Who Do the Command to World that I set to Hub, but using /mvtp <World For Hub>
    I dont Want Full Code
    I want How to:
    Save World
    Make Plugin to Do Command /mvtp <World That I set For Hub> (On a player Who do /hub or /lobby)

    READ THIS:
    I Have Code for running Commands as Player And To do /mvtp <World That I set> But I set When Someone do /hub or /lobby to run /mvtp RainbowMountains (What Is My Hub World)
    But I want to share This To Public And To be world What Admin sets wit /sethub

    Thanks

    I looked All the way thru forums For This And I didnt Found What I want

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 26, 2017
  2. Offline

    Caderape2

    @LandinosMC World has a save method. Once did you can just duplicate the world folder.
    It's what you're asking ?
     
  3. Offline

    Horsey

    Use player#getWorld(); to get the world a player is in.
    Then save that world's name by world#getName();
    Then use Bukkit.getWorld(worldName); to get the world.
     
  4. Offline

    Zombie_Striker

    @LandinosMC
    If you want a hub plugin, you can use LobbyAPI, a plugin I have made. It does this, and is continually being updated. Click the link in my signature if you are interested.
     
  5. Offline

    LandinosMC

    @Zombie_Striker Yeah But I wont World Menu

    @Horsey Thanks But How to then Actualy Load That World in other .java file
    (I mean i have sethub.java and how to load that saved world in hub.java and lobby.java)

    @Horsey Can I do Something Like This
    player.chat("/mvtp + "<How to do saved World?>");

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 27, 2017
  6. Offline

    Horsey

    You can use static + getters and setters. If you don't know what that means, you should learn Java before bukkit.
     
    Plugers11 likes this.
Thread Status:
Not open for further replies.

Share This Page