Class ServerKeybindPersistence
java.lang.Object
dev.munebase.dynamickeybinds.server.ServerKeybindPersistence
Server-side keybind persistence. Stores keybinds in the server's world data directory.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<StoredKeybind>loadKeybinds(Path worldDataPath, String playerUUID) Load keybinds for a player from the server world.static voidsaveKeybinds(Path worldDataPath, String playerUUID, List<StoredKeybind> keybinds) Save keybinds for a player to the server world.
-
Method Details
-
loadKeybinds
Load keybinds for a player from the server world.- Parameters:
worldDataPath- Path to the world's data directory (e.g., server/world/data)playerUUID- Player UUID as string- Returns:
- List of stored keybinds, empty if none found
-
saveKeybinds
public static void saveKeybinds(Path worldDataPath, String playerUUID, List<StoredKeybind> keybinds) Save keybinds for a player to the server world.- Parameters:
worldDataPath- Path to the world's data directoryplayerUUID- Player UUID as stringkeybinds- List of keybinds to save
-