Package dev.satyrn.xpeconomy.api.economy
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 TypeMethodDescription@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
load()
Loads player account data from storage.void
save()
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
Checks if an account exists for a given player UUID.- Parameters:
uuid
- The player UUID.- Returns:
- Whether the account exists.
-
createAccount
Creates an account for a player.- Parameters:
player
- The player instance.- Returns:
- The new account.
-
getAccount
Gets an account with a specific player UUID.- Parameters:
uuid
- The player UUID- Returns:
- The account instance.
-