Class KonquestPlayerPrefixEvent

java.lang.Object
org.bukkit.event.Event

public class KonquestPlayerPrefixEvent extends KonquestPlayerEvent
Called after a player changes their accomplishment prefix.
  • Constructor Details

    • KonquestPlayerPrefixEvent

      public KonquestPlayerPrefixEvent(KonquestAPI konquest, KonquestPlayer player, String prefix, boolean isDisabled)
      Default constructor
      Parameters:
      konquest - The API instance
      player - The player
      prefix - The prefix
      isDisabled - Is the prefix disabled
  • Method Details

    • getPrefix

      public String getPrefix()
      Gets the current prefix of the player, as shown in chat. When isDisabled returns true, no prefix will show in chat, and the prefix will be an empty string.
      Returns:
      The prefix, or an empty string when disabled
    • isDisabled

      public boolean isDisabled()
      Checks whether the player disabled their prefix.
      Returns:
      True when the prefix was disabled, else false