Class DominionSetMapColorEvent
java.lang.Object
org.bukkit.event.Event
cn.lunadeer.dominion.events.CallableEvent
cn.lunadeer.dominion.events.ResultEvent
cn.lunadeer.dominion.events.dominion.modify.DominionModifyEvent
cn.lunadeer.dominion.events.dominion.modify.DominionSetMapColorEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
Event that handles setting the map color of a dominion.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionDominionSetMapColorEvent(@NotNull org.bukkit.command.CommandSender operator, @NotNull DominionDTO dominion, @NotNull org.bukkit.Color newColor) Constructs a new DominionSetMapColorEvent. -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.ColorGets the new color of the dominion.@NotNull org.bukkit.ColorGets the old color of the dominion.voidsetNewColor(@NotNull org.bukkit.Color newColor) Sets the new color for the dominion.Methods inherited from class cn.lunadeer.dominion.events.dominion.modify.DominionModifyEvent
afterModified, getDominion, getFutureToComplete, setDominionMethods inherited from class cn.lunadeer.dominion.events.ResultEvent
getOperator, isCancelled, setCancelledMethods inherited from class cn.lunadeer.dominion.events.CallableEvent
call, getHandlerList, getHandlersMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
DominionSetMapColorEvent
public DominionSetMapColorEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion, @NotNull @NotNull org.bukkit.Color newColor) Constructs a new DominionSetMapColorEvent.- Parameters:
operator- the command sender who initiated the eventdominion- the dominion whose map color is being setnewColor- the new color to set for the dominion
-
-
Method Details
-
getOldColor
@NotNull public @NotNull org.bukkit.Color getOldColor()Gets the old color of the dominion.- Returns:
- the old color
-
setNewColor
public void setNewColor(@NotNull @NotNull org.bukkit.Color newColor) Sets the new color for the dominion.- Parameters:
newColor- the new color to set
-
getNewColor
@NotNull public @NotNull org.bukkit.Color getNewColor()Gets the new color of the dominion.- Returns:
- the new color
-