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.
@josvth
I have noticed a few people getting kicked for floating too long, i'm assuming it is from RandomSpawn. I'm currently just using the signs, perhaps you could make it so if they are teleporting from a sign, instead of the chunks being loaded whilst in the air, perhaps the player can just be left whilst the chunks are loaded. I can see why this wouldn't be suitable for respawning randomly.
@AS1LV3RN1NJA
Okay. That's great news! Seems like my spawn generation is working well.
I'm considering of making a smooth teleporting plugin with it. If people are interested.
@josvth
I've got them blocked by obuJustShutTheHellUp, but I asked the people online and they said it wasn't laggy. The wait till the random spawn seemed Ok aswell, a few seconds at most, however the Chaos world is quite small (2000x2000 blocks).
@AS1LV3RN1NJA
How's the server holding up? Are you getting any "Can't keep up messages?"
Tested quite a few things, no bugs as far as I can tell.
@AS1LV3RN1NJA
Next build needs to be approved first.
Use this link if you don't want to wait :):
http://dl.dropbox.com/u/29941160/RandomSpawn-1.6.2.jar
@josvth
Thanks for the reply, will test :D
@AS1LV3RN1NJA
I've added new permissions for Random Spawn Signs, placing: RandomSpawn.placesign and usage: RandomSpawn.usesign
@WayGroovy
@AS1LV3RN1NJA
Found the issue.
This:
Should have been:
Stupid mistake. Uploading new build right now.
@josvth
Ah, sorry for not looking, didn't realise you'd already added spawn signs. If/When I do learn Java, i'll offer to give you a hand, but the server is taking up way too much time just by itself at the minute.
Perhaps you could make it open source, and have people submit some code to help you out?
Edit: I too had people randomly dying with 1.6.1. Edit: Random spawn signs don't seem to be working on 1.6.1
this is very much what i'm looking for, but i reverted back to spawnarea. players were randomly logging in dead after adding this plugin. not sure what the issue was, will turn on debug and test local.
@AS1LV3RN1NJA
I'm trying my best to keep this plugin up and running. But I'm very bussy lately and I have my finals coming up to. So I'm sorry if I can't meet your expectations. The Random Spawn signs are a quick implementation so they could use some improvement. I was more focussed on improving the performance than on this request.
However, I was thinking about splitting up the plugin. Because it is far from "a simple plugin" right now. I found that the spawn generation could also be usefull for improved teleportation. But I dont want to force people to download 2 plugins if they only want 1 feature of it. And maintaining 2 plugins could be very time consuming.
So if you are planning on learning Java I could use some help. :)
Please can you use the code in this to make a seperate plugin, called RandomTP or something?
Eg- You place a sign, write something on it and if you have the perms, it is made into a sign that players (with the right perms) can TP randomly with.
Hopefully that's understandable. I'm tired at the minute.
God damn I need to learn Java.
I've just uploaded the 1.6.1 build. It only needs approval.
I've added spawn generation to improve performance and Random Spawn signs.
To make a Random Spawn sign you only have to make a sign containing [RandomSpawn] in the first line. Let me know if I need to improve these signs.
Is anyone willing to test the new 1.1 build on their server for me? It would save me a lot of time and it allows me to see the performance on bigger servers.
PM or reply me and I will give you the link to the build.
@telephonekiosk
Could you please file a ticket?
@FaultlessWall
Just increase or decease the numbers after x-min:, x-max:, z-min: and z-max.
Or you could use the command /rssetarea square -200 200 -200 200 That will set the spawn area to: spawnarea: x-min: -200 x-max: 200 z-min: -200 z-max: 200
Of course you could use bigger numbers than 200.
Hope it helps!
I have a question.
In the config file the Random Spawn Area is...
spawnarea:
x-min: -100
x-max: 100
z-min: -100
z-max: 100
Some players on my server are noticing that this area is not big enough. When they die they spawn basically in the same place. How would I go by increasing the area? Also Sorry if this is a newbie question.
I love what your doing, but I was wondering if you could add a feature to type a command and randomly spawn, maybe like /rs or something like that. Thanks
Using 1.6 dev with Spout, so I don't know if that's connected, but every time I restart the server the saved spawn points are lost.