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.
It occurs to me that with this plugin, players will just kill themselves over and over until they get near to where they died to pick up their items. We need to be able to obscure coordinates
its spawning me under water.. it might be because enabling it on a new world doesnt default a spawnblacklist under the new name?
im gonna copy it over and see.. but this should probably be fixed
plugin conflict: admincmd
disabled, worked as expected. Not sure how they interacted.
sorry i missed you. Got caught up at work with something. Will be leaving work soon to drive home and sleep and drive back.
@josvth
Ah. That makes some sense then. How would I enable randomspawn on any death without a bed then? set keeprandomspawns: false?
@WayGroovy
First problem. The spawns aren't actually saved. I'm going back to the old method of saving every spawn into a file.
@Liutenantpickle
Spawning in a wall is common. It's due to a native Minecraft problem. I'm looking into the spawning in water problem.
Sure can and will,
http:pastebin.com/ivTkvjCe
I'm not even sure what all I've done there. I wanted the main world to be survivocolypse, using normal generator cityworld, nether : cityworld nether, the_end, cityworld floating normal.
Hard to get it to reproduce, i'm on a laptop and can't really get a good connection going to multiple test users. server ip is survivocolyspe.com if you want to try to repeat there.
full plugin list
http://pastebin.com/8zz3mtdp
@vampirictorch
It's a good idea but I don't think it's really necessary because most admins don't change the spawn area that often.
@WayGroovy
Strange things happening for you. Could you give me your Multiverse config as well then I will try to reproduce this problem.
I have no idea what I've changed. I just started using the plugin again, but it does not seem to want to work for me. Fresh install, v2.3, cb 1.3.2 r 0.2
http:pastebin.com/B4B4spm2
Here are my settings. Server is set up with multiverse. server.properties lists spawn world as world. multiverse-core redirects to custom terrain generated world survivocolypse. custom terrain generators used for nether and the_end as well.
Initially players would log in, randomspawn in world, teleport from world to survivocolypse, randomspawn.
On player death, all players return to the same spawn.
I changed worlds.yml from "survivocolypse: keeprandomspawns: true" to "survivocolypse: keeprandomspawns: yes" per http://dev.bukkit.org/server-mods/random-spawn/pages/configuration/worlds-yml/
I then saw that players were, on death, teleporting from survivocolypse to survivocolypse_the_end, which made no sense to me at all. I decided to come and ask for help at that point. Is this an issue needing a trouble ticket?
you should make it to where you select an area like with the world edit wand or what not, and within that area they have a random spawn, that would work out REALLY well for what i am trying to do on my server, but just an idea.
@josvth
For some reason keeping my random spawn doesn't work I know I set it to keep the random spawns.... anyway my config's below. When I right click on the sign i get TP'ed to a different place, but when i click on the sign again I get teleported to ANOTHER place, and when I die I spawn at my server's spawn, not where the sign sent me.
world: randomspawnon: - respawn keeprandomspawns: true spawnarea: type: square x-min: -200.0 x-max: 100.0 z-min: -200.0 z-max: 100.0 thickness: 0 spawnblacklist: - 8 - 9 - 10 - 11 - 18 - 51 - 81 firstspawn: x: 225.17009295139528 y: 70.0 z: 249.5659414623538 yaw: 90.44775390625 pitch: -3.5999600887298584 randomspawnonfirstjoin: false Any ideas on how to fix this?
Great Plugin! :) But Im having troubles with spawning, sometimes I spawn in water or suffocating in a wall, fixxx pleeaseee
@Nefiron
The first. ;)
Is this plugin able to make the players spawn completely randomly in the world or will I have to make multiple spawn places it will choose between?
@stuckatwork
It's a very good idea to add a cooldown to this command. However I have to warn you random teleporting players sometimes causes some issues like falling through the world getting stuck etc. this is because in MC, teleporting is handled differently than respawning.
However I will still implement the command with this warning.
@stuckatwork
Is your server listed anywhere? I've been looking for a good hardcore server with random spawns.
Hello, I run Be a Dick, a hardcore server that uses your plugin for random spawns.
My users have come up with the idea to have a /spawn or similar command that would randomly spawn them within the defined RS area. Of course, we would implement an hour long cooldown or something to make it not so heavy for the server.
Is this something you would think about adding soon? We can donate a bit to build your motivation!
Thank you, StuckAtWork
@josvth
Thank you very much for your reply. I'll pregen my world with world generation control and see how it goes.