类 GroupRenamedEvent

java.lang.Object
org.bukkit.event.Event
cn.lunadeer.dominion.events.CallableEvent
cn.lunadeer.dominion.events.ResultEvent
cn.lunadeer.dominion.events.group.GroupRenamedEvent
所有已实现的接口:
org.bukkit.event.Cancellable

public class GroupRenamedEvent extends ResultEvent
Event triggered when a group is renamed within a dominion.
  • 构造器详细资料

    • GroupRenamedEvent

      public GroupRenamedEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion, @NotNull @NotNull GroupDTO group, @NotNull @NotNull String newName)
      Constructs a new GroupRenamedEvent.
      参数:
      operator - the command sender who initiated the event
      dominion - the dominion to which the group belongs
      group - the group being renamed
      newName - the new name of the group
  • 方法详细资料

    • getDominion

      @NotNull public @NotNull DominionDTO getDominion()
      Gets the dominion to which the group belongs.
      返回:
      the dominion
    • getGroup

      @NotNull public @NotNull GroupDTO getGroup()
      Gets the group being renamed.
      返回:
      the group
    • setGroup

      public void setGroup(@NotNull @NotNull GroupDTO group)
      Sets the group being renamed.
      参数:
      group - the group to set
    • setNewName

      public void setNewName(@NotNull @NotNull String newName)
      Sets the new name of the group.
      参数:
      newName - the new name to set
    • getNewNameColored

      public String getNewNameColored()
      Gets the new name of the group with color codes.
      返回:
      the new name of the group with color codes
    • getNewNamePlain

      public String getNewNamePlain()
      Gets the plain text new name of the group without color codes.
      返回:
      the plain text new name of the group
    • getOldNameColored

      public String getOldNameColored()
      Gets the old name of the group with color codes.
      返回:
      the old name of the group with color codes
    • getOldNamePlain

      public String getOldNamePlain()
      Gets the plain text old name of the group without color codes.
      返回:
      the plain text old name of the group