Package nl.minetopiasdb.api.playerdata
Class PrefixManager
java.lang.Object
nl.minetopiasdb.api.playerdata.PrefixManager
Class for handling multiple prefixes with the /prefix menu.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a prefix to a playerstatic PrefixManager
Get the instance of PrefixHandler.getPrefixes
(UUID uuid) Get a list of prefixes the provided player has access toovoid
removeFromCache
(UUID uuid) Remove a UUID from cachevoid
removePrefix
(UUID uuid, String prefix) Remove a prefix from a playervoid
Remove all the prefixes a player has.void
Swap all prefixes from UUID a to UUID b
-
Constructor Details
-
PrefixManager
public PrefixManager()
-
-
Method Details
-
getInstance
Get the instance of PrefixHandler.- Returns:
- instance of PrefixHandler.
-
getPrefixes
Get a list of prefixes the provided player has access too- Parameters:
uuid
- UUID of the player- Returns:
- list of prefixes
-
removeFromCache
Remove a UUID from cache- Parameters:
uuid
- UUID of player
-
addPrefix
Add a prefix to a player- Parameters:
uuid
- UUID of playerprefix
- Prefix
-
removePrefix
Remove a prefix from a player- Parameters:
uuid
- UUID of playerprefix
- Prefix
-
reset
Remove all the prefixes a player has.- Parameters:
uuid
- UUID of the player.
-
swap
Swap all prefixes from UUID a to UUID b- Parameters:
a
- uuid 1b
- uuid 2
-