Class DominionSetMapColorEvent

All Implemented Interfaces:
org.bukkit.event.Cancellable

public class DominionSetMapColorEvent extends DominionModifyEvent
Event that handles setting the map color of a dominion.
  • 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 event
      dominion - the dominion whose map color is being set
      newColor - 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