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.
not working
Hello,
I'm trying to startup a multiplayer SkyGrid world. This plugin is perfect for the respawning since it works well with multiworlds.
I have one feature request - and that's to enable me to raise the default spawn level up off the ground. This is needed as often people spawn in a block on the skygrid world. It's most likely because of the way it's generated.
Hey, i can use the sign for randomspawn, everybody can use it. but i don't (i'm op) randomspawn when i died. it's confising, cant find teh error in teh config... (no server errors, using bukkit for 1.5.2 and spout for 1.5.2) and it worked before but now it desnt anymore
Pleas add default frist join player to random spawn
Hello,
Can you make it so you can walk through a predefined area you get randomly teleported into a specifed world? This way we can define portals that players can walk through.
Thanks!
When you spawn (randomly), can you have it to place certain items in your inventory? I really need that for my server. Awesome plug-in, btw
Does this have multiverse support?
I want to enable random spawning in one world only.
OMG Thankyou for adding the ability to make a sign specifying a world!
"Yeah that sometimes happens. The reason for this is that Minecraft natively does not load chunks when players are teleported to a new location. I tried countless times to fix it but it still happens sometime."
Couldn't you load the chunk before teleportation with .getChunk().load() and check if the blocks where the player should spawn are air?
do you think you can add getting items upon spawning randomly, I need that pretty bad on my server. Please make it quick :D
Getting an error when trying to run command /rspawn, im using 2.6 SU
8:09:57 PM CONSOLE: [INFO] egimfun issued server command: /rspawn 8:09:57 PM CONSOLE: [SEVERE] null 8:09:57 PM CONSOLE: exception executing command 'rspawn' in plugin RandomSpawn v1.0 8:09:57 PM CONSOLE: java.lang.IllegalArgumentException: Name cannot be null
@UberBosser
He already answered on this:
"Yeah that sometimes happens. The reason for this is that Minecraft natively does not load chunks when players are teleported to a new location. I tried countless times to fix it but it still happens sometime."
Please fix the bug when spawning in the middle of dirt and rock and stuff
Could you make this work with authme reloaded? (login plugin) Like have it randomly spawn someone once the registered.
Please, make it so you can use a water portal to Random Spawn!
@lst96
Yeah that sometimes happens. The reason for this is that Minecraft natively does not load chunks when players are teleported to a new location. I tried countless times to fix it but it still happens sometime.
@UberBosser
There is already a command for that. Try: /rs spawn <playername> <world> or /rs spawn to random spawn yourself.
Is there a command to tp you at a random place like /wild or /wilderness plz add that and i will install it! :)
This plus almost perfect except it randomly spawns some players in the ground.
@Enkious
I made a derp. Try this version: https://dl.dropboxusercontent.com/u/29941160/RandomSpawn-2.6.jar