Rename packages to lower case

This commit is contained in:
Daniil Z committed 2021-02-28 23:12:14 +03:00
1 parent eed97287b3
commit d61d76f3f3
76 files changed
+166 -171

No files matched your search

@@ -0,0 +1,67 @@
package me.william278.huskhomes2.api.events;
import me.william278.huskhomes2.objects.Home;
import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
/**
* An event, fired when a home is updated
* Fires when a player renames a Home, updates its' location, changes its' name, changes whether or not it is public/private.
* Also fires when it is deleted
*/
public class PlayerHomeUpdateEvent extends Event implements Cancellable {
private final Player player;
private final Home home;
private static final HandlerList HANDLER_LIST = new HandlerList();
private boolean isCancelled;
/**
* An event, fired when a home is updated
* Fires when a player renames a Home, updates its' location, changes its' name, changes whether or not it is public/private, or when it is deleted
* Does not fire when a player sets a Home
*
* @param player The Player who is updating the Home
* @param home The Home being changed
*/
public PlayerHomeUpdateEvent(Player player, Home home) {
this.player = player;
this.home = home;
this.isCancelled = false;
}
@Override
public boolean isCancelled() {
return isCancelled;
}
@Override
public void setCancelled(boolean cancelled) {
this.isCancelled = cancelled;
}
@Override
public HandlerList getHandlers() {
return HANDLER_LIST;
}
/**
* Get the Player involved in this event
*
* @return the Player who updated the home
*/
public Player getPlayer() {
return player;
}
/**
* Get the Player involved in this event
*
* @return the Home being updated
*/
public Home getHome() {
return home;
}
}