Added event for when a world is saved (EyvindRM)
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -445,6 +445,12 @@ public abstract class Event {
|
||||
* @todo: add javadoc see comment
|
||||
*/
|
||||
ITEM_SPAWN (Category.WORLD),
|
||||
|
||||
/**
|
||||
* Called when a world is saved
|
||||
*
|
||||
*/
|
||||
WORLD_SAVED (Category.WORLD),
|
||||
|
||||
/**
|
||||
* Called when a World is loaded
|
||||
|
||||
@@ -23,6 +23,14 @@ public class WorldListener implements Listener {
|
||||
public void onChunkUnloaded(ChunkUnloadEvent event) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when a world is saved
|
||||
*
|
||||
* param event Relevant event details
|
||||
*/
|
||||
public void onWorldSaved(WorldEvent event) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when a World is loaded
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user