Class UnknownSelector

java.lang.Object
dev.kitteh.factions.permissible.selector.AbstractSelector
dev.kitteh.factions.permissible.selector.UnknownSelector
All Implemented Interfaces:
PermSelector

@AvailableSince("4.0.0") @NullMarked public class UnknownSelector extends AbstractSelector
  • Constructor Details

    • UnknownSelector

      public UnknownSelector(String text)
  • Method Details

    • text

      public String text()
    • test

      public boolean test(Selectable selectable, Faction faction)
      Description copied from interface: PermSelector
      Tests if the given selectable matches this selector.
      Parameters:
      selectable - selectable
      faction - faction context
      Returns:
      true if matches
    • serialize

      public String serialize()
      Description copied from interface: PermSelector
      Serializes this selector for storage. Unlikely to need to override.
      Returns:
      serialized selector
    • serializeValue

      public String serializeValue()
      Description copied from interface: PermSelector
      Serializes the value of this selector for storage.
      Returns:
      serialized value
    • displayValue

      public net.kyori.adventure.text.Component displayValue(Faction context)
      Description copied from interface: PermSelector
      Gets the value of this selector for display in chat. Default is plain text without any decoration.
      Parameters:
      context - faction context
      Returns:
      display value