Random Spawn
Random Spawn is a simple plugin that spawns players at a random location in the world on their first login (configurable) and when they die. Sleeping in a bed disables the random spawn function and players will respawn at their bed when they die.
This is the first plugin I made. The idea for this plugin came from NuclearW's SpawnArea. I've used that for a while on my own server but thought it could use some extra features, so I tried to make one myself.
Thanks to NuclearW and Bretflann for being awesome and letting me use some of their code!
Thanks to WayGroovy and Francis Fenderson for donating!
Features:
- Random Spawn will not spawn players in:
- lava
- cacti
- water
- fire
- You can set a border where the players will random spawn inside
- After a player has lain or slept in a bed he won't be random spawned anymore and he will re-spawn at their bed if he dies
- This can be disabled when setting usebeds: false in the world.yml
- You can configure if players will be random spawned on there first join. (if false they will spawn at the map's default spawnpoint)
- you can set the first spawn location with the /setspawn command
- You can exclude players from being random spawned using the RandomSpawn.exclude permission node
- Random Spawn spawns players in a set area. You can define this area per world in the worlds.yml.
- Multiworld compatable
- Random Spawn signs. Type: [RandomSpawn] on the first line of a sign. To specify a world, type the world name on the second line. Configurable in config.yml.
- Custom messages after respawning.
- Spawning on command. since 2.4
When updating to version 1.6, please remove all the yml's and reconfigure them!
Commands:
See this page!
Permissions:
The permission nodes are optional.
- RandomSpawn.info Defaulted true
- RandomSpawn.help
- RandomSpawn.reload
- RandomSpawn.configure
- RandomSpawn.exclude
- RandomSpawn.setfirstspawn
- RandomSpawn.tpfirstspawn
- RandomSpawn.placesign
- RandomSpawn.usesign Defaulted true
- RandomSpawn.spawn
To-do list:
- Increase performance Increased performance a lot in version 1.6.1
- Circular spawn area's
- Any idea's?
Conflicting Plugins:
- SpawnX
Source available on Github!
If you like what I'm doing. Consider donating :) Please use the donate button in the top right.
@alexander_gq
Random spawning is very heavy for the server. Mainly becase it has to generate 441 chunks in a matter of seconds. Try pregenerating your world with plugins like world border. This should make your problems appeare less.
@mrdoomwalk3r
Good to hear you figured it out yourself. Though your configuration seemed okay. Strange.
@anthonyyoyo
The circle feature is not I'm plemented yet. Sorry.
Okay fellows I'm away from home and I will be back in 2 days. Until then I'm afraid I can't do much for you. So please stick with me and I will fix your problems when I'm back.
Out of about twenty spawns I've had two or three that didn't either spawn me in the ground or drop me in the void.
@xclucky
I also have this problem! I will reply as soon as find a way arond this.
Also how to I use the radius commend? Can you please make an exenple? /rs setarea circle 10 doesn't seen to work? PLEASE HELP!
How to you set a custom spawn point for the sign right click feature? Please help!
Is it possible to have the players spawn to a random position in the overworld on first login, a random position in the nether upon death in the overworld, and perma ban them if they die in the nether? This would be ideal.
On the first spawn I appeared under some sand and almost died. I logged out and deleted my character .dat, but still spawned in exactly the same place when I logged in again.
keeprandomspawns = false. What have I done wrong?
@mrdoomwalk3r
I have it figured out. i went in game and set the random spawn radius around me
I've set up random spawn on my server but it seems to be favoring a certain area and spawning everything within a certain area of 150x150 box it's spawning everyone in the top left.
Is there something configuration wise I'm missing? The I also have a plugin to set borders and they're set at a radius of 175.
Could you add a way to have both the stationary spawn and the random spawn? I am wanting players to have to complete a tutorial then right click a commandsign and teleport to a random spawn (those random spawns being the permanent spawn from then on, so long as they do not have a bed)
@josvth
Hahaha, nope, I didn't mean I'd be dropping the ball on your plugin entirely, just using a small plugin to prevent the server from kicking people for moving too fast until you get it fixed natively in the plugin :D
Could you possibly add in the config which blocks you don't want players to spawn on? That would be helpful.
@BoyDerAmBlockChillt
No, you should take a look at Tux' Multispawn for the multiple spawn points. You can disable bedspawing with this plugin.
@renadi
In the next version you can. :)
I would like to set a minimum distance from the main spawn, is this an option that could some day be included?
Is it possible to set up random spawns ? For example /setrspawn 1,2,3 and so on and is it also possible to disable spawnin in a bed if you died ?
@Tunix2
Circles as spawn area's are indeed not implemented yet. The command will be implemented in the next version. :)