Minecraft Survival Games Plugin Coding?

Gu
- in Plugins
5

I want to code a Survival Games plug-in, but I do not know how to set a different spawnpoint for each player in the PlayerJoinEvent, so if several players enter the round each will be teleported to another spawnpoint (see picture).

Thanks in advance!

Minecraft Survival Games Plugin Coding
Sl

Make a list with SpawnLocations and delete the used spawn with each new player. (Can you save super in configs with a command)

Re

Please refer:

If you knew the basics, you would know what to do.

Gu

Are you always on the look-out for a good question?

La

An array of locations where you can spawn. Then via random select one and check whether already occupied. If yes, then again

Re

Such questions with the same background come daily, so it is no longer worthwhile to write new texts.