public class IslandRateEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandRateEvent(SuperiorPlayer superiorPlayer,
SuperiorPlayer ratingPlayer,
Island island,
Rating rating)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
SuperiorPlayer |
getPlayer()
Get the player that changed the rating of the other player.
|
Rating |
getRating()
Get the rating given to the island.
|
SuperiorPlayer |
getRatingPlayer()
Get the player that its rating was changed.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
getHandlerList, getHandlers, getIsland
public IslandRateEvent(@Nullable SuperiorPlayer superiorPlayer, SuperiorPlayer ratingPlayer, Island island, Rating rating)
superiorPlayer
- The player that changed the rating of the other player.
If null, the rating was changed by console.ratingPlayer
- The player that its rating was changed.island
- The island that was rated.rating
- The rating given to the island.@Nullable public SuperiorPlayer getPlayer()
public SuperiorPlayer getRatingPlayer()
public Rating getRating()
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable