Removing 14 deprecated methods per http://bit.ly/mO2f4d
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package org.bukkit.event.player;
|
||||
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.plugin.AuthorNagException;
|
||||
|
||||
/**
|
||||
* Handles all events thrown in relation to a Player
|
||||
@@ -14,20 +13,14 @@ public class PlayerListener implements Listener {
|
||||
*
|
||||
* @param event Relevant event details
|
||||
*/
|
||||
public void onPlayerJoin(PlayerJoinEvent event) {
|
||||
onPlayerJoin((PlayerEvent) event);
|
||||
throw new AuthorNagException("onPlayerJoin has been replaced with a new signature, (PlayerJoinEvent)");
|
||||
}
|
||||
public void onPlayerJoin(PlayerJoinEvent event) {}
|
||||
|
||||
/**
|
||||
* Called when a player leaves a server
|
||||
*
|
||||
* @param event Relevant event details
|
||||
*/
|
||||
public void onPlayerQuit(PlayerQuitEvent event) {
|
||||
onPlayerQuit((PlayerEvent) event);
|
||||
throw new AuthorNagException("onPlayerQuit has been replaced with a new signature, (PlayerQuitEvent)");
|
||||
}
|
||||
public void onPlayerQuit(PlayerQuitEvent event) {}
|
||||
|
||||
/**
|
||||
* Called when a player gets kicked from the server
|
||||
@@ -49,10 +42,7 @@ public class PlayerListener implements Listener {
|
||||
*
|
||||
* @param event Relevant event details
|
||||
*/
|
||||
public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) {
|
||||
onPlayerCommandPreprocess((PlayerChatEvent) event);
|
||||
throw new AuthorNagException("onPlayerCommandPreprocess has been replaced with a new signature, (PlayerCommandPreprocessEvent)");
|
||||
}
|
||||
public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) {}
|
||||
|
||||
/**
|
||||
* Called when a player attempts to move location in a world
|
||||
@@ -66,10 +56,7 @@ public class PlayerListener implements Listener {
|
||||
*
|
||||
* @param event Relevant event details
|
||||
*/
|
||||
public void onPlayerTeleport(PlayerTeleportEvent event) {
|
||||
onPlayerTeleport((PlayerMoveEvent) event);
|
||||
throw new AuthorNagException("onPlayerTeleport has been replaced with a new signature, (PlayerTeleportEvent)");
|
||||
}
|
||||
public void onPlayerTeleport(PlayerTeleportEvent event) {}
|
||||
|
||||
/**
|
||||
* Called when a player respawns
|
||||
@@ -189,10 +176,4 @@ public class PlayerListener implements Listener {
|
||||
* @param event Relevant event details
|
||||
*/
|
||||
public void onPlayerPortal(PlayerPortalEvent event) {}
|
||||
|
||||
// TODO: Remove after RB
|
||||
@Deprecated public void onPlayerQuit(PlayerEvent event) {}
|
||||
@Deprecated public void onPlayerCommandPreprocess(PlayerChatEvent event) {}
|
||||
@Deprecated public void onPlayerTeleport(PlayerMoveEvent event) {}
|
||||
@Deprecated public void onPlayerJoin(PlayerEvent event) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user