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.
@AS1LV3RN1NJA
Thanks for your feedback! It really helps.
The 1.6 beta build needs a lot of fine tuning. I'm around 10 seconds delay right now for spawning up to 800 thousand blocks away, so that is pretty neat. I'm trying to fine tune it even more to get lower delay and I will add a manual fine tuning option.
The falling into the gap is intended however. (They should get a message saying: "Please wait while your spawn is being loaded." it could be that that's not included in 1.6b it will be included in the next build.) Player's will float around in the gap, allowing the plugin to load/generate their spawn point before spawning. But in 1.6b it has some failures.
I will try to finish the new build as soon as possible. Fixing these problems.
Just tried out 1.6 Dev build on 1.1 RB, it sometimes randomly spawns people, even when they haven't died (sorry I can't be more specific), and also, the loading of chunks seems to take a lot longer than it did previously, with players thinking they are stuck somewhere (in just black space). I'm also getting reports of people falling into the Gap when spawning for the first time, not sure why that is (Could be randomspawn, could be multiverse).
Thanks for the work on the plugin, hope the feedback helps. Going back to 1.5 for now. PS: Voted for the Random Sign option.
I'm trying to improve the multi world support. If you guys have any suggestions that would be awesome.
Let me know in the comments!
@NomNuggetNom
I could add that feature if others would like to have it too.
Is it possible to disable it when spawning, but have a sign that teleports you to a random place when you right click?
@po5
Could you please file a ticket with the current version you're using, the settings and the full error message?
This plugin will occasionally crash my server, resultning in Read Time Out on cb 1714.
You need one of the newest Craftbukkit builds to run the [DEV] Random Spawn Version 1.6 build. I forgot to mention that.
@Tchovvy
I'm glad you like it!
I've just submitted a new build I hope it fixes your problem. If it doesn't please leave a ticket with your Multiverse and Random Spawn settings.
@josvth
They are random spawned on re-connect. I'll try some more, this plugin is realy good for my pvp map.
@josvth
I'm sort of using multiverse atm, but with only 1 world (because of the Multiinv situation im running 2 servers :/, although I am using multiverse for both just for the settings). Randomspawn is working fine, though.
Perhaps Tchovvy can post his MultiVerse and Randomspawn configs.
@Tchovvy
So do they spawn at one single spawn point or are they Random Spawned again on re-connect?
@AS1LV3RN1NJA
Are you having this problem too? Aren't you using Multiverse?
@Tchovvy josvth, Perhaps a look at how AuthMe saves spawns may be useful?
@josvth
Every time a player disconnects, when he re-connects, his spawn is modified.
CraftBukkit : 1597
Random Spawn : 1.5
Multiverse-Core : 2.1-b326
I tried without Multiverse-Core, Random Spawn works fine.
@Tchovvy
We had some issues with Multiverse before, like beds weren't working. Could you be a bit more specific about what happens? Then I will try to fix it.
I think it's conflicting with Multiverse-Core. Every connection changes the spawn :_(
For anyone using this plugin, http://dev.bukkit.org/server-mods/mycoords/ may be helpful.
For everyone who's waiting on a performance update, this is more difficult than I thought. I suggest you use WorldBorder to fill the Random Spawn area. This increases the performance quite a bit since the random spawn location is already generated.
Version 1.5 is almost there. It only has to be approved.
I've added a lot of commands and a option to drop the players from the sky when they respawn. (configurable in config.yml)
Let me know if you like the new features!