Class ServerKeybindPersistence

java.lang.Object
dev.munebase.dynamickeybinds.server.ServerKeybindPersistence

public final class ServerKeybindPersistence extends Object
Server-side keybind persistence. Stores keybinds in the server's world data directory.
  • Method Details

    • loadKeybinds

      public static List<StoredKeybind> loadKeybinds(Path worldDataPath, String playerUUID)
      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 directory
      playerUUID - Player UUID as string
      keybinds - List of keybinds to save