Interface AccountManager

All Known Implementing Classes:
MySQLAccountManager, PlayerAccountManagerBase, YamlAccountManager

public interface AccountManager
Manages, creates, saves, and loads player accounts.
Since:
1.0-SNAPSHOT
Author:
Isabel Maskrey
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Account
    createAccount(@NotNull org.bukkit.OfflinePlayer player)
    Creates an account for a player.
    @Nullable Account
    getAccount(@NotNull UUID uuid)
    Gets an account with a specific player UUID.
    boolean
    hasAccount(@NotNull UUID uuid)
    Checks if an account exists for a given player UUID.
    void
    Loads player account data from storage.
    void
    Saves player account data to storage.
  • Method Details

    • load

      void load()
      Loads player account data from storage.
    • save

      void save()
      Saves player account data to storage.
    • hasAccount

      boolean hasAccount(@NotNull @NotNull UUID uuid)
      Checks if an account exists for a given player UUID.
      Parameters:
      uuid - The player UUID.
      Returns:
      Whether the account exists.
    • createAccount

      @NotNull @NotNull Account createAccount(@NotNull @NotNull org.bukkit.OfflinePlayer player)
      Creates an account for a player.
      Parameters:
      player - The player instance.
      Returns:
      The new account.
    • getAccount

      @Nullable @Nullable Account getAccount(@NotNull @NotNull UUID uuid)
      Gets an account with a specific player UUID.
      Parameters:
      uuid - The player UUID
      Returns:
      The account instance.