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.
Any bugs in the 1.8 Beta build?
I will upload a Recommend build for 1.2.4 tonight if there are no known bugs. And I will try to upload a beta build with the new meta data storage before the end of this week for you guys to test out.
@josvth
Perhaps have it as an option? So those who want to edit spawns can do, those who don't need to can take advantage of the extra speed.
@josvth
I can't think of a case where I'd need to manually edit a player's spawn (this is RandomSpawn after all) and if the proposed update performance, I'm all for it.
I'm considering using metadata to store the spawnlocations when keepspawns is set to true instead of saving it to a file. This greatly reduces I/O usage, however you can't edit the saved spawns manually anymore. Is this a problem?
@Darganking
it's not hard to accomplish this with warps and PreciousStones that have auto-regeneration set up on them actually... the only thing outstanding would be that warps are static, so there is no randomness to them... but hey, you can still use this plugin to set up multiple spawns in multiple biomes and use PStones with that :)
@Darganking
I quess thats up to an other plugin dev to make that plugin. :) I would like to try out some different things appart from spawning and teleporting. However if any dev is taking on this project I will be willing to help.
I think there should be a plugin that has portals that tp you to a random location, and even better a random biome so you can have a portal to every biome, but when they get there its always fresh.
@josvth
Not yet. I'm updating both of my servers to CraftBukkit 1.2.4-R1.0 on Sunday. I'll download and install your latest version that morning and get back to you if we have any issues.
@manyamile
No problem! :)
Have you tested the 1.8 Beta build? I would like to know if there are any bugs before I release a recommend build.
@josvth
Ha - we were responding to him at the same time. As his feature request is written, this is already possible. I wasn't making the assumption that on death, the player's spawn point would be updated to a central spawn.
Thanks again for making this plug-in. It's made a huge difference on my hardcore server.
@manyamile @po5
Thanks for explaining :) However it's not possible if po5 wants the players only to be random spawned when they first join the world and let them respawn to the world spawn when they die.
@po5
po5, That feature already exists. It's in the config file.
randomspawnenabled: true randomspawnonfirstjoin: true keeprandomspawns: true
and then depending on your plans, set the usebeds variable to either true or false.
@po5
Okay, so if player A joins this world for the first time he will be random spawned. What must happen if he dies?
I would like to be able to random spawn only new people when they join:)
@josvth
lol, there is not even a beta version of CB 1.2.4 out yet :-)
@JoneKone
Yes, you can set up your whole map as spawn area you just need to know how big it is :P
Didn't CB for 1.2.4 came out like yesterday? I'm fairly quick with updating but not that quick. Version 1.7 should work fine with 1.2.4 , if not let me know.
I will try to get a 1.2.4 build out this evening.
Can I set the whole map as spawn area?
Update for 1.2.4 ?
@zathrus_writer
If you have like a tutorial on how to setup Github that would be great!
@josvth
source received, thanks posted by IM :-) thank you!
P.S.: if you need help with setting up github and you use Eclipse, I might be able to help out ;-)
@zathrus_writer
I don't have a Github set up because I didn't figure out how to yet :p . I suggest you decompile a jar. Or wait till tomorrow and I will send you my eclipse project. It getting a bit late.