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.
-
View User Profile
-
Send Message
Posted Jun 12, 2012@josvth
Ahh, that's good to hear :-) Unfortunately, Multiverse keeps overriding your plugin by teleporting/spawning players to the world's default-spawn, that is set by..Multiverse.
I've literally disabled everything in Multiverse that could interfere with this but it didn't work :-(
-
View User Profile
-
Send Message
Posted Jun 12, 2012@josvth
It seemed to start with RS 2.0.
I use randomspawn on login, then a randomspawn sign after that (so /spawn is randomspawn also, for that world).
Both the login randomspawn and the randomspawn from the from the sign kill people.
-
View User Profile
-
Send Message
Posted Jun 12, 2012@AS1LV3RN1NJA
Are you sure its Random Spawn causing this? Because I logged in on your server and I died after I typed /login <mypassword> then I was random spawned and that was just fine. Maybe the authorisation plugin is causing issues?
-
View User Profile
-
Send Message
Posted Jun 12, 2012@ThisUsernameIsMine
My hones apology, my laziness has struck again. I accidentally copied a check for the randomspawnon flag "respawn" into the join event. It will be fixed next build.
-
View User Profile
-
Send Message
Posted Jun 12, 2012@AS1LV3RN1NJA
If you put bedspawn in the randomspawnon list it will randomspawn players if they normally spawn at their bed.
I try to find a reason why players end up in walls.
@ThisUsernameIsMine
Same thing here I try to find a solution.
-
View User Profile
-
Send Message
Posted Jun 8, 2012@josvth
Even with those things disabled, no first-join random-spawn happens.
gah... :-/
-
View User Profile
-
Send Message
Posted Jun 7, 2012@josvth
http://pastebin.com/gs13URyH
The world should be fuly generated, as the spawn radius is relatively small and the map is used a lot.
The spawn-deaths happen quite frequently (and people seem to be losing a lot of items as a result D:)
Certain people also seem to spawn in another world occasionally, however I don't think this is an issue with Randomspawn.
Also, it's not 100% clear in the config, if I put - bedrespawn on, will players randomspawn even when they should spawn at their bed (which is what I'm guessing it does, just want to be sure)?
-
View User Profile
-
Send Message
Posted Jun 7, 2012@AS1LV3RN1NJA
Good thing to mention. Could you post your worlds.yml and if you world is pregenerated aswell?
-
View User Profile
-
Send Message
Posted Jun 7, 2012@ThisUsernameIsMine
That's probably due to that Multiverse tries to take over all respawning. Try looking for something in the configuration of multiverse to disable this.
-
View User Profile
-
Send Message
Posted Jun 6, 2012People seem to be random-spawning into walls a lot more now, anyone else want to confirm?
-
View User Profile
-
Send Message
Posted Jun 6, 2012@josvth
Thanks for the update.
Unfortunately, random spawn on first-join doesn't work for me, only on respawn :-/
I'm using Multiverse and whenever i join the random-spawn world i'm spawned on the world's default spawn (that is set by Multiverse)
My config is like this:
mineworld:
randomspawnon:
- firstjoin
keeprandomspawns: true
spawnarea:
type: square
x-min: -100
x-max: 100
z-min: -100
z-max: 100
-
View User Profile
-
Send Message
Posted Jun 5, 2012Hello everybody,
The 2.0 version of Random Spawn is waiting for approval. I've added various bug fixes and an option to random spawn when you enter a certain world. See this page on how to configure this.
Greetings,
Josvth
-
View User Profile
-
Send Message
Posted Jun 4, 2012@Kane_Hart
Hello Kane_Hunt,
If you want beds to work like normal you should remove the - bedspawn flag under randomspawnon.
-
View User Profile
-
Send Message
Posted Jun 4, 2012I can't seem to get beds to work for respawn I tried config edit way also in game way and no luck. Current config:
world:
randomspawnon:
- respawn
- bedrespawn
- firstjoin
keeprandomspawns: false
spawnarea:
type: square
x-min: -1500
x-max: 1500
z-min: -1500
z-max: 1500
-
View User Profile
-
Send Message
Posted May 31, 2012sorry, I can not use english well
but if you look at it, can understand
http://forums.bukkit.org/threads/wgen-fix-skylandsplus-v0-3-1-more-trees-mobs-in-skylands-1060.31551/
will not spawn players in void plz!
-
View User Profile
-
Send Message
Posted May 30, 2012Can Random Spawn be used along with Multiverse? I'm basically looking for a random teleport-plugin that auto-random teleports someone on/when entering a specific world.
Unfortunately, on my server people always appear on the default worldspawn (perhaps Multiverse takes priority over/overrules your plugin).
I also use a spawn-stragegy plugin called HomeSpawnPlus.
-
View User Profile
-
Send Message
Posted May 30, 2012@deathwing911
Yes this is the case. The plugin will pick the highest location making sure players won't get stuck in walles / caves.
-
View User Profile
-
Send Message
Posted May 30, 2012@hentai
I'm sorry but I don't understand what you're trying to make clear. Could you be a bit more specific?
-
View User Profile
-
Send Message
Posted May 30, 2012@Yazzeh
Good idea! I shall take a look if this can be done.
-
View User Profile
-
Send Message
Posted May 30, 2012Random Spawn will not spawn players in: lava cacti water fire
+ void plz...
it cant use skyland map