Package net.blueva.arcade.api.ui
Interface VoteMenuAPI<M>
public interface VoteMenuAPI<M>
API for registering games in the vote menu system.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisRegistered(String gameId) Check if a game is registered.voidRegister a game in the vote menu.voidunregisterGame(String gameId) Unregister a game from the vote menu.
-
Method Details
-
registerGame
Register a game in the vote menu.- Parameters:
gameId- Game ID (e.g., "race")material- Material to display in menuname- Display name (supports MiniMessage format)lore- Lore lines (supports MiniMessage format and {votes} placeholder)
-
unregisterGame
Unregister a game from the vote menu.- Parameters:
gameId- Game ID
-
isRegistered
Check if a game is registered.- Parameters:
gameId- Game ID- Returns:
- true if registered
-