Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resetting a map for matches.

Comments in 'Plugin Development' started by Legoboy0215, Mar 12, 2016.

  1. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    I have a way myself, but you know, life is all about trying new stuff. Is literally scheduling a Asynchronous task to copy a folder better then just a single line of code to setAutoSave to false, then unlod+load level?

    Are there any differences?
  2. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    I personally use that one:
    https://forums.pocketmine.net/threads/how-to-reset-map.15404/#post-149954

    (Last post).

    I use it because it doesnt require a task and also seems to be very simple.
    Ritch likes this.
  3. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    I have something like that, but improved with an Async task. I am asking of the setAutoSave way ;)
  4. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    I think it doesnt work, as I tested that by myself the levels were only reset when I restarted the server, I also did loadLevel()

Share This Page

Advertisement