I tried using player.get(Keys.RESPAWN_LOCATIONS).get() to get the Map<UUID, RewspawnLocation> then using the RespawnLocation.builder to create a new respawn point, using .put() to update the map and finally player.offer(Keys.RESPAWN_LOCATIONS, map) to update the values. Player.offer returns isSuccessful = true and I can retrieve the correct value from map after using put(). But when I die I still spawn at the usual point.
Something weird: The original map retrieved is empty (shouldn’t there at least be ONE respawn point for a world?)
Feels like this would be a common and easy thing to do, but I just can’t find a solution for it.