Package dev.aura.bungeechat.api.hook
Interface BungeeChatHook
-
- All Superinterfaces:
Comparable<BungeeChatHook>
public interface BungeeChatHook extends Comparable<BungeeChatHook>
This interface is used to get prefixes and suffixes for users from Permission plugins.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default int
compareTo(BungeeChatHook other)
Optional<String>
getPrefix(BungeeChatAccount account)
Get the active prefix for the passed account.int
getPriority()
Retrieves the priority of this hook.Optional<String>
getSuffix(BungeeChatAccount account)
Get the active suffix for the passed account.
-
-
-
Method Detail
-
getPrefix
Optional<String> getPrefix(BungeeChatAccount account)
Get the active prefix for the passed account.- Parameters:
account
- Account to get the prefix for- Returns:
- Prefix of the Account, if it exists, else
Optional.empty()
-
getSuffix
Optional<String> getSuffix(BungeeChatAccount account)
Get the active suffix for the passed account.- Parameters:
account
- Account to get the suffix for- Returns:
- Suffix of the Account, if it exists, else
Optional.empty()
-
getPriority
int getPriority()
Retrieves the priority of this hook. Higher priority means the hook is checked earlier.- Returns:
- Numeric priority of this hook
-
compareTo
default int compareTo(BungeeChatHook other)
- Specified by:
compareTo
in interfaceComparable<BungeeChatHook>
-
-