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

Reset level minigame

Comments in 'Plugin Development' started by MyNameIsTriXz, Sep 17, 2016.

  1. EntirelyQuartz
    Offline

    EntirelyQuartz New Member

    Joined:
    Aug 9, 2016
    Posts:
    15
    Minecraft User:
    EntirelyQuartz
    applqpak likes this.
  2. CrazedMiner
    Offline

    CrazedMiner Notable Member Plugin Developer

    Joined:
    Jan 31, 2015
    Posts:
    348
    Plugins:
    2
    Minecraft User:
    CrazedMinerYT
    The best method in my opinion that you can use it to save a cache of the chunks you want to reset as they're loaded and then replace the chunks on the level instance your mini-game just finished running on. This method eliminates the whole file saving/deleting process and saves everything in the server memory (RAM).
    ImagicalGamer and applqpak like this.
  3. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Why is everyone ignoring the least memory cosyming method? Just simply not let the level save at all. setAutoSave() does exactly that.
  4. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    I will try that thx

Share This Page

Advertisement