26.06.2015, 08:59
I don't particularly agree with the method of spawn protection (spawning them in a virtual world), but that's just up to preferences.
What I do deem wrong, however, is that you use a random number generator to decide which virtual world the player is sent off to. Random numbers are not guaranteed unique, meaning multiple players could end up in the same virtual world, which is obviously not what you want. A simpler and guaranteed unique number would be to simply use the player's ID.
What I do deem wrong, however, is that you use a random number generator to decide which virtual world the player is sent off to. Random numbers are not guaranteed unique, meaning multiple players could end up in the same virtual world, which is obviously not what you want. A simpler and guaranteed unique number would be to simply use the player's ID.