类 DominionRenameEvent

所有已实现的接口:
org.bukkit.event.Cancellable

@Experimental public class DominionRenameEvent extends DominionModifyEvent
Event triggered when a Dominion is renamed in the Dominion system.
  • 构造器详细资料

    • DominionRenameEvent

      public DominionRenameEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion, @NotNull @NotNull String newName)
      Constructs a new DominionRenameEvent.
      参数:
      operator - the command sender who initiated the event
      dominion - the dominion to be renamed
      newName - the new name for the dominion
  • 方法详细资料

    • getNewName

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

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

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