Maps Reset with Server Restart

Discussion in 'Plugin Development' started by KeybordPiano459, Feb 3, 2013.

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

    KeybordPiano459

    I've been working on my plugin, Newspaper, recently, and I got it to work last night so that text would be seen on maps. However, I was testing it some more this morning, and when I restarted my server to update CBukkit, I realized that my map got wiped, and now it's just a default minecraft map. How do I make it so that my MapRenderer is used on that map and every other map when the server restarts?
     
  2. Offline

    KeybordPiano459

    Bump...

    As in putting 'getServer().dispatchCommand(getServer().getConsoleSender(), "save-all");' in my onDisable()? Didn't work.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
  3. Offline

    desht

    No, /save-all has got absolutely nothing to do with custom map renderers.

    Map renderers are not persistent. You need to apply your custom renderer(s) when your plugin starts up. This means you need some way of persisting the map ID that you originally applied your renderer to.

    http://forums.bukkit.org/threads/question-about-maprenderers.124976/
     
Thread Status:
Not open for further replies.

Share This Page