Interface IPartyPreRenameEvent

    • Method Detail

      • getParty

        @NotNull
        @NotNull Party getParty()
        Get the party that is getting renamed
        Returns:
        the Party
      • getOldPartyName

        @Nullable
        @Nullable String getOldPartyName()
        Get the old party name
        Returns:
        the old name of the party
      • getNewPartyName

        @Nullable
        @Nullable String getNewPartyName()
        Get the new party name
        Returns:
        the new name of the party
      • setNewPartyName

        void setNewPartyName​(String name)
        Set the new name of the party
        Parameters:
        name - the party name to set
      • getPartyPlayer

        @Nullable
        @Nullable PartyPlayer getPartyPlayer()
        Get the player who performed the command
        Returns:
        the PartyPlayer or null if not executed by a player
      • isAdmin

        boolean isAdmin()
        Is it an admin renaming?
        Returns:
        true if the rename has been performed by an admin