We weren't supposed to break things *that* hard. Plugins still need to update but here's a TEMPORARY fix.

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot
2011-03-31 22:51:26 +01:00
parent d15ff4b638
commit 19ec204cc9
5 changed files with 36 additions and 14 deletions

View File

@@ -1,6 +1,7 @@
package org.bukkit.event.vehicle;
import org.bukkit.event.Listener;
import org.bukkit.plugin.AuthorNagException;
/**
* Listener for vehicle events.
@@ -74,8 +75,10 @@ public class VehicleListener implements Listener {
* @param event
*/
public void onVehicleUpdate(VehicleUpdateEvent event) {
onVehicleUpdate((VehicleEvent)event);
throw new AuthorNagException("onVehicleUpdate has been replaced with a new signature, (VehicleUpdateEvent)");
}
// Prevent compilation of old signatures TODO: Remove after 1.4
@Deprecated public final void onVehicleUpdate(VehicleEvent event) {}
// TODO: Remove after RB
@Deprecated public void onVehicleUpdate(VehicleEvent event) {}
}