Interface Participator

All Known Subinterfaces:
Faction, FPlayer
All Known Implementing Classes:
JSONFaction, JSONFPlayer, MemoryFaction, MemoryFPlayer

@AvailableSince("4.0.0") @NonExtendable @NullMarked public interface Participator
Describes an entity participating in Factions, i.e. a player or faction.
  • Method Details

    • asOfflinePlayer

      org.bukkit.OfflinePlayer asOfflinePlayer()
      Gets an OfflinePlayer for the given participator.
      Returns:
      offline player representation
    • msgLegacy

      @Obsolete void msgLegacy(String str, Object... args)
      Sends a String.format-able message.
      Parameters:
      str - string
      args - args
    • msgLegacy

      @Obsolete default void msgLegacy(TL translation, Object... args)
      Sends a String.format-able message.
      Parameters:
      translation - translatable
      args - args
    • sendMessage

      void sendMessage(net.kyori.adventure.text.Component component)
      Sends a component.
      Parameters:
      component - component
    • sendRichMessage

      default void sendRichMessage(String miniMessage, net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers)
    • describeToLegacy

      @Obsolete default String describeToLegacy(@Nullable Participator that)
    • describeToLegacy

      @Obsolete default String describeToLegacy(@Nullable Participator that, boolean uppercaseFirst)
    • relationTo

      default Relation relationTo(@Nullable Participator that)
    • relationTo

      default Relation relationTo(@Nullable Participator that, boolean ignorePeaceful)
    • textColorTo

      default net.kyori.adventure.text.format.TextColor textColorTo(@Nullable Participator that)
    • colorLegacyStringTo

      @Obsolete default String colorLegacyStringTo(@Nullable Participator that)