Class DominionRenameEvent

All Implemented Interfaces:
org.bukkit.event.Cancellable

public class DominionRenameEvent extends DominionModifyEvent
Event triggered when a Dominion is renamed in the Dominion system.
  • Constructor Details

    • DominionRenameEvent

      public DominionRenameEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion, @NotNull @NotNull String newName)
      Constructs a new DominionRenameEvent.
      Parameters:
      operator - the command sender who initiated the event
      dominion - the dominion to be renamed
      newName - the new name for the dominion
  • Method Details

    • getNewName

      @NotNull public @NotNull String getNewName()
      Gets the new name of the dominion.
      Returns:
      the new name
    • getOldName

      @NotNull public @NotNull String getOldName()
      Gets the old name of the dominion.
      Returns:
      the old name
    • setNewName

      public void setNewName(@NotNull @NotNull String newName)
      Sets the new name for the dominion.
      Parameters:
      newName - the new name to set