mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Added missing getHandlerList() static method to events
This commit is contained in:
1 parent
87d16f1b7a
commit
142cfee358
4 files changed
+28
-3
No files matched your search
@@ -47,6 +47,10 @@ public class PlayerHomeUpdateEvent extends Event implements Cancellable {
|
||||
return HANDLER_LIST;
|
||||
}
|
||||
|
||||
public static HandlerList getHandlerList() {
|
||||
return HANDLER_LIST;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Player involved in this event
|
||||
*
|
||||
|
||||
@@ -18,8 +18,9 @@ public class PlayerSetHomeEvent extends Event implements Cancellable {
|
||||
|
||||
/**
|
||||
* An event, fired when a player sets a Home
|
||||
*
|
||||
* @param player the Player setting the Home
|
||||
* @param home the Home being set
|
||||
* @param home the Home being set
|
||||
*/
|
||||
public PlayerSetHomeEvent(Player player, Home home) {
|
||||
this.player = player;
|
||||
@@ -42,8 +43,13 @@ public class PlayerSetHomeEvent extends Event implements Cancellable {
|
||||
return HANDLER_LIST;
|
||||
}
|
||||
|
||||
public static HandlerList getHandlerList() {
|
||||
return HANDLER_LIST;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the player involved in this event
|
||||
*
|
||||
* @return the Player who is setting the home
|
||||
*/
|
||||
public Player getPlayer() {
|
||||
@@ -52,6 +58,7 @@ public class PlayerSetHomeEvent extends Event implements Cancellable {
|
||||
|
||||
/**
|
||||
* Get the Home being set
|
||||
*
|
||||
* @return the Home being set
|
||||
*/
|
||||
public Home getHome() {
|
||||
|
||||
@@ -18,8 +18,9 @@ public class PlayerSetWarpEvent extends Event implements Cancellable {
|
||||
|
||||
/**
|
||||
* An event, fired when a Player sets a Warp
|
||||
*
|
||||
* @param player the Player setting the warp
|
||||
* @param warp the Warp being set
|
||||
* @param warp the Warp being set
|
||||
*/
|
||||
public PlayerSetWarpEvent(Player player, Warp warp) {
|
||||
this.player = player;
|
||||
@@ -42,8 +43,13 @@ public class PlayerSetWarpEvent extends Event implements Cancellable {
|
||||
return HANDLER_LIST;
|
||||
}
|
||||
|
||||
public static HandlerList getHandlerList() {
|
||||
return HANDLER_LIST;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Player involved in this event
|
||||
*
|
||||
* @return the Player who is setting the warp
|
||||
*/
|
||||
public Player getPlayer() {
|
||||
@@ -52,6 +58,7 @@ public class PlayerSetWarpEvent extends Event implements Cancellable {
|
||||
|
||||
/**
|
||||
* Get the Warp being set
|
||||
*
|
||||
* @return the Warp that is being set
|
||||
*/
|
||||
public Warp getWarp() {
|
||||
|
||||
@@ -22,8 +22,9 @@ public class PlayerWarpUpdateEvent extends Event implements Cancellable {
|
||||
* 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.
|
||||
* Does not fire when a player sets a Warp.
|
||||
*
|
||||
* @param player The Player who is updating the Warp
|
||||
* @param warp The Warp being changed
|
||||
* @param warp The Warp being changed
|
||||
*/
|
||||
public PlayerWarpUpdateEvent(Player player, Warp warp) {
|
||||
this.player = player;
|
||||
@@ -46,8 +47,13 @@ public class PlayerWarpUpdateEvent extends Event implements Cancellable {
|
||||
return HANDLER_LIST;
|
||||
}
|
||||
|
||||
public static HandlerList getHandlerList() {
|
||||
return HANDLER_LIST;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Player involved in this event
|
||||
*
|
||||
* @return the Player who updated the Warp
|
||||
*/
|
||||
public Player getPlayer() {
|
||||
@@ -56,6 +62,7 @@ public class PlayerWarpUpdateEvent extends Event implements Cancellable {
|
||||
|
||||
/**
|
||||
* Get the Warp being updated
|
||||
*
|
||||
* @return the Warp being updated
|
||||
*/
|
||||
public Warp getWarp() {
|
||||
|
||||
Reference in new issue
Block a user