We weren't supposed to break things *that* hard. Plugins still need to update but here's a TEMPORARY fix.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
package org.bukkit.event.world;
|
||||
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.plugin.AuthorNagException;
|
||||
|
||||
/**
|
||||
* Handles all World related events
|
||||
@@ -29,6 +30,8 @@ public class WorldListener implements Listener {
|
||||
* @param event Relevant event details
|
||||
*/
|
||||
public void onWorldSave(WorldSaveEvent event) {
|
||||
onWorldSave((WorldEvent)event);
|
||||
throw new AuthorNagException("onWorldSave has been replaced with a new signature, (WorldSaveEvent)");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -37,9 +40,11 @@ public class WorldListener implements Listener {
|
||||
* @param event Relevant event details
|
||||
*/
|
||||
public void onWorldLoad(WorldLoadEvent event) {
|
||||
onWorldLoad((WorldEvent)event);
|
||||
throw new AuthorNagException("onWorldLoad has been replaced with a new signature, (WorldLoadEvent)");
|
||||
}
|
||||
|
||||
// Prevent compilation of old signatures TODO: Remove after 1.4
|
||||
@Deprecated public final void onWorldLoad(WorldEvent event) {}
|
||||
@Deprecated public final void onWorldSave(WorldEvent event) {}
|
||||
// TODO: Remove after RB
|
||||
@Deprecated public void onWorldLoad(WorldEvent event) {}
|
||||
@Deprecated public void onWorldSave(WorldEvent event) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user