I was working on a warp system where you would be able to teleport between different locations with beacons, like in the attached image. I have a few questions about this, so I'll ask them in one post.
First of all, I will probably be adding a bunch of these warp stations to my server, so I don't really wanna hardcode all the locations and their corresponding names. I have looked for a HashMap of some kind on the documentation site, but I couldn't seem to find one. Is there a way to make these key-value type lists?
Second, when the player steps on a beacon of a station, it should check if the player has already discovered the station, and if not it should give a message like "You have unlocked <location name> Warp Station" and add the location to the player's list of warp locations. However, I couldn't find how to add an item to a list, so I would like to know how this is done.
Third and last, when the player steps on a beacon, the player should get a chat message asking where to warp to, with clickable options. I have done clickable chat messages before, but I wouldn't knownhow to do this in a flexible way.
Thanks in advance for any help.