Class AccountModule
java.lang.Object
com.haven.havenplugin.AccountModule
- All Implemented Interfaces:
Module
Registers account-related HTTP routes with
ApiModule and owns the
AccountManager instance.
Token verification in other modules
Use
directly — it is stateless and requires no reference to this module.
invalid reference
com.haven.havenplugin.api.accounts.TokenManager#verifyToken(String)
Sending alerts from other modules
AccountModule accounts = plugin.getModule(AccountModule.class);
if (accounts != null) accounts.addUserAlert(uuid, "shop", "Your order shipped.");
plugin.yml
The following entry must be present in plugin.yml:
commands:
onlineaccount:
description: Manage your pvc-utils.xyz online account
usage: /onlineaccount [verify ]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddUserAlert(String uuid, String alertType, String message) Append a JSON alert to a user'sdynamicData.json.Command names this module owns, matching entries in plugin.yml.org.bukkit.command.CommandExecutorgetExecutor(String command) List<org.bukkit.event.Listener> getName()org.bukkit.command.TabCompletergetTabCompleter(String command) voidvoidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Module
reloadConfig
-
Constructor Details
-
AccountModule
public AccountModule()
-
-
Method Details
-
onEnable
-
onDisable
-
getName
-
getListeners
- Specified by:
getListenersin interfaceModule
-
getCommands
Description copied from interface:ModuleCommand names this module owns, matching entries in plugin.yml.- Specified by:
getCommandsin interfaceModule
-
getExecutor
- Specified by:
getExecutorin interfaceModule
-
getTabCompleter
- Specified by:
getTabCompleterin interfaceModule
-
addUserAlert
-