Added missing getHandlerList() static method to events

This commit is contained in:
WiIIiam278 committed 2021-05-10 21:10:07 +01:00
1 parent 87d16f1b7a
commit 142cfee358
4 files changed
+25

No files matched your search

@@ -47,6 +47,10 @@ public class PlayerHomeUpdateEvent extends Event implements Cancellable {
return HANDLER_LIST; return HANDLER_LIST;
} }
public static HandlerList getHandlerList() {
return HANDLER_LIST;
}
/** /**
* Get the Player involved in this event * Get the Player involved in this event
* *
@@ -18,6 +18,7 @@ public class PlayerSetHomeEvent extends Event implements Cancellable {
/** /**
* An event, fired when a player sets a Home * An event, fired when a player sets a Home
*
* @param player the Player setting the Home * @param player the Player setting the Home
* @param home the Home being set * @param home the Home being set
*/ */
@@ -42,8 +43,13 @@ public class PlayerSetHomeEvent extends Event implements Cancellable {
return HANDLER_LIST; return HANDLER_LIST;
} }
public static HandlerList getHandlerList() {
return HANDLER_LIST;
}
/** /**
* Get the player involved in this event * Get the player involved in this event
*
* @return the Player who is setting the home * @return the Player who is setting the home
*/ */
public Player getPlayer() { public Player getPlayer() {
@@ -52,6 +58,7 @@ public class PlayerSetHomeEvent extends Event implements Cancellable {
/** /**
* Get the Home being set * Get the Home being set
*
* @return the Home being set * @return the Home being set
*/ */
public Home getHome() { public Home getHome() {
@@ -18,6 +18,7 @@ public class PlayerSetWarpEvent extends Event implements Cancellable {
/** /**
* An event, fired when a Player sets a Warp * An event, fired when a Player sets a Warp
*
* @param player the Player setting the warp * @param player the Player setting the warp
* @param warp the Warp being set * @param warp the Warp being set
*/ */
@@ -42,8 +43,13 @@ public class PlayerSetWarpEvent extends Event implements Cancellable {
return HANDLER_LIST; return HANDLER_LIST;
} }
public static HandlerList getHandlerList() {
return HANDLER_LIST;
}
/** /**
* Get the Player involved in this event * Get the Player involved in this event
*
* @return the Player who is setting the warp * @return the Player who is setting the warp
*/ */
public Player getPlayer() { public Player getPlayer() {
@@ -52,6 +58,7 @@ public class PlayerSetWarpEvent extends Event implements Cancellable {
/** /**
* Get the Warp being set * Get the Warp being set
*
* @return the Warp that is being set * @return the Warp that is being set
*/ */
public Warp getWarp() { public Warp getWarp() {
@@ -22,6 +22,7 @@ public class PlayerWarpUpdateEvent extends Event implements Cancellable {
* An event, fired when a Warp is updated. * An event, fired when a Warp is updated.
* Fires when a player renames a Warp, updates its' location, changes its' name or when it is deleted. * Fires when a player renames a Warp, updates its' location, changes its' name or when it is deleted.
* Does not fire when a player sets a Warp. * Does not fire when a player sets a Warp.
*
* @param player The Player who is updating the Warp * @param player The Player who is updating the Warp
* @param warp The Warp being changed * @param warp The Warp being changed
*/ */
@@ -46,8 +47,13 @@ public class PlayerWarpUpdateEvent extends Event implements Cancellable {
return HANDLER_LIST; return HANDLER_LIST;
} }
public static HandlerList getHandlerList() {
return HANDLER_LIST;
}
/** /**
* Get the Player involved in this event * Get the Player involved in this event
*
* @return the Player who updated the Warp * @return the Player who updated the Warp
*/ */
public Player getPlayer() { public Player getPlayer() {
@@ -56,6 +62,7 @@ public class PlayerWarpUpdateEvent extends Event implements Cancellable {
/** /**
* Get the Warp being updated * Get the Warp being updated
*
* @return the Warp being updated * @return the Warp being updated
*/ */
public Warp getWarp() { public Warp getWarp() {