Interface Accounts


public interface Accounts
Account lookup and creation.
  • Method Summary

    Modifier and Type
    Method
    Description
    byId(UUID accountId)
    Finds an account by id.
    find(String namespacedKey)
    Finds an account by its namespaced key, for example "capitalbank:savings:<uuid>".
    player(UUID playerId)
    The player's account, created on first use.
    plugin(org.bukkit.plugin.Plugin owner, String key)
    The calling plugin's own account "<plugin>:<key>" (lower-case), created on first use.
  • Method Details

    • player

      Account player(UUID playerId)
      The player's account, created on first use.
    • plugin

      Account plugin(org.bukkit.plugin.Plugin owner, String key)
      The calling plugin's own account "<plugin>:<key>" (lower-case), created on first use.
    • find

      Optional<Account> find(String namespacedKey)
      Finds an account by its namespaced key, for example "capitalbank:savings:<uuid>".
    • byId

      Optional<Account> byId(UUID accountId)
      Finds an account by id.