Package dev.kitteh.factions
Interface Participator
- 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 Summary
Modifier and TypeMethodDescriptionorg.bukkit.OfflinePlayerGets an OfflinePlayer for the given participator.default StringcolorLegacyStringTo(@Nullable Participator that) default StringdescribeToLegacy(@Nullable Participator that) default StringdescribeToLegacy(@Nullable Participator that, boolean uppercaseFirst) default voidSends a String.format-able message.voidSends a String.format-able message.default RelationrelationTo(@Nullable Participator that) default RelationrelationTo(@Nullable Participator that, boolean ignorePeaceful) voidsendMessage(net.kyori.adventure.text.Component component) Sends a component.default voidsendRichMessage(String miniMessage, net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) default net.kyori.adventure.text.format.TextColortextColorTo(@Nullable Participator that)
-
Method Details
-
asOfflinePlayer
org.bukkit.OfflinePlayer asOfflinePlayer()Gets an OfflinePlayer for the given participator.- Returns:
- offline player representation
-
msgLegacy
Sends a String.format-able message.- Parameters:
str- stringargs- args
-
msgLegacy
Sends a String.format-able message.- Parameters:
translation- translatableargs- 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
-
describeToLegacy
-
relationTo
-
relationTo
-
textColorTo
-
colorLegacyStringTo
-