1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Partial and/or full world reset plugin

Discussion in 'Requests' started by artulloss, Mar 26, 2018.

  1. artulloss

    artulloss Witch

    Messages:
    63
    GitHub:
    artulloss
    I have no clue how to do this other than saving and exporting as a schematic then readding it where it originally was or zipping the world then extracting it later. I'd want this to be on a timer basis it would be really useful for making a build area or a pvp zone where people can build structures that get reset eventually. The full world reset would be useful for hosting UHCs and more. If someone actually makes this, thank you so much.
     
  2. Daniktheboss

    Daniktheboss Baby Zombie

    Messages:
    144
    GitHub:
    daniktheboss
    One way is you can have a copy, and just delete the old and rewrite with the backup
     
    artulloss likes this.
  3. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    try telling us what you planned it to be used for
    and what features you need expect and wish to have
    partial reset will probably be harder then full reset
     
    artulloss likes this.
  4. artulloss

    artulloss Witch

    Messages:
    63
    GitHub:
    artulloss
    I'd want for build uhc because the issue is can't automatically reset the world after it. I'd want it to have a command like /worldreset worldname and a timer function /worldreset timer worldname hours/mins
     
  5. MioTaku

    MioTaku Witch

    Messages:
    69
    GitHub:
    uselesswaifu
    I think it'd be easier to have this reset feature, coded within BuildUHC rather than having another plugin. Useless I am mistaken and there is no BuildUHC plugin. o_O
     
  6. artulloss

    artulloss Witch

    Messages:
    63
    GitHub:
    artulloss
    No working BuildUHC plugin on api 11 mate, It would be nice if it were like made as something other plugins can easily reference to reset worlds because I'm sure it would make plugin development easier that way, like for mini games, for example the problem with the hungergames/skywars plugin for alpha 10 was that it didn't reset worlds

    https://github.com/InfinityGamers/HungerGames-UPDATED/issues/69
     
  7. korado531m7

    korado531m7 Slime

    Messages:
    77
    GitHub:
    korado531m7
    Unload the level without saving, then load it.
    $name is world name
    PHP:
    $this->getServer()->getLevelByName($name)->setAutoSave(false);
    $this->getServer()->unloadLevel($this->getServer()->getLevelByName($name),true);
    $this->getServer()->loadLevel($name);
     
    artulloss and NickTehUnicorn like this.
  8. Daniktheboss

    Daniktheboss Baby Zombie

    Messages:
    144
    GitHub:
    daniktheboss
    OR, you can just set auto save off...
     
    artulloss likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.