Class PrefixManager

java.lang.Object
nl.minetopiasdb.api.playerdata.PrefixManager

public class PrefixManager extends Object
Class for handling multiple prefixes with the /prefix menu.
  • Constructor Details

    • PrefixManager

      public PrefixManager()
  • Method Details

    • getInstance

      public static PrefixManager getInstance()
      Get the instance of PrefixHandler.
      Returns:
      instance of PrefixHandler.
    • getPrefixes

      public List<String> getPrefixes(UUID uuid)
      Get a list of prefixes the provided player has access too
      Parameters:
      uuid - UUID of the player
      Returns:
      list of prefixes
    • removeFromCache

      public void removeFromCache(UUID uuid)
      Remove a UUID from cache
      Parameters:
      uuid - UUID of player
    • addPrefix

      public void addPrefix(UUID uuid, String prefix)
      Add a prefix to a player
      Parameters:
      uuid - UUID of player
      prefix - Prefix
    • removePrefix

      public void removePrefix(UUID uuid, String prefix)
      Remove a prefix from a player
      Parameters:
      uuid - UUID of player
      prefix - Prefix
    • reset

      public void reset(UUID uuid)
      Remove all the prefixes a player has.
      Parameters:
      uuid - UUID of the player.
    • swap

      public void swap(UUID a, UUID b)
      Swap all prefixes from UUID a to UUID b
      Parameters:
      a - uuid 1
      b - uuid 2