WorldSaveEvent never called.

Discussion in 'Plugin Development' started by Paradox, Jun 15, 2012.

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

    Paradox

    I'm attempting to add a feature to my plugin where it saves its state whenever the world saves itself. I figured the WorldSaveEvent would be called whenever this happens but as it turns out this event is never called at all!

    If anyone knows how I could get the behavior I want please let me know or else if someone can get WorldSaveEvent to be called when the world saves please let me know how you did it.

    Code:
        @EventHandler
        public void onWorldSave(WorldSaveEvent e) {
            plugin.getLogger().info("World Save Event!");
        }
    I've tried using all the different priorities and using ignoreCancelled = false as well but I cannot get this event to trigger.
     
  2. dit you try /save-all?
     
  3. Offline

    Paradox

    That's not really what I meant. I mean how do I check when the world is being saved, not how do I save it.
     
  4. Offline

    TheSourceCode95

    I know this post is really old, but I'd like to bump it.
    This problem is still not fixed, the event still doesn't get called. What would be the best way to work around this and to execute code when the world gets saved?
     
Thread Status:
Not open for further replies.

Share This Page