Spawn Area
Spawn Area
What is it for?
This plugin spawns first joining players randomly within a set region in the config. The player will not spawn in hazards. Eventually it will have WorldGuard support, too :D
What are the Features?
- Spawns player randomly on first join within configurable default area.
- Will not spawn in configurable hazards.
- Configurable spawn areas.
- More than one spawn.
- Multiworld support.
- Command /sa or /spawnarea to go to different spawn areas.
- Permissions support.
Config
Permissions
Click here to see the permissions!
Commands
Click here to see the commands!
Last notes
Please, leave suggestions and comments! If you find a bug please tell me! Thanks! :)
Git: http://dev.bukkit.org/server-mods/spawn_area/
You can donate if you want to. It would help. :)
With Spigot #1330:
http://puu.sh/7uU7k/ba71137e97.png
Hello, I need to make my spawn smaller but i'm not sure if I'm able to do it with this plugin? If I can do it with this one, can someone then tell me how. If not can someone give me another plugin for it then?
Thanks
Out of curiosity has anyone gotten this to work with Multiverse2 Portals? I've been trying to get a portal that leads to a world (not to another portal) to activate this plugin. Here's what I tried:
Multiverse2 Core config:
firstspawnoverride: 'false'
Spawn Area Config:
Survival:
hazards: [10,11,81,51]
worldname: Survival
corner1:
x: 1068
z: 1228
corner2:
x: -646
z: -782
with the permission set in my default group:
Spawn_Area.sa.Survival true
Any suggestions/thoughts or success stories would be greatly appreciated! :)
@skier55d
Thanks :D
Doesn't work on CraftBukkit 1.3.1... get this exception:
Could not pass event PlayerRespawnEvent to Spawn Area org.bukkit.event.EventException ... Caused by: java.lang.NullPointerException at me.Pew446.SpawnArea.SpawnListener.teleportcheck(SpawnListener.java:34) at me.Pew446.SpawnArea.SpawnListener.onSpawn(SpawnListener.java:140)
Applies to pretty much every 'Spawn' event as well.
@deleted_7151878
Awesome! Thanks! (:
@CreepinBoss
I guess I could. I'll try to implement it c: Thanks for the suggestions!
@deleted_7151878
Could you possibly add a random spawn feature or maybe
default: hazards: [10,11,81,51] worldname: world corner1: x: 0 z: 0 corner2: x: 100 z: 100 default: hazards: [10,11,81,51] worldname: world corner1: x: 300 z: 600 corner2: x: 600 z: 300 and type /spawnarea default and spawn in either of the spawn areas?
@CreepinBoss
Yay :D
Thanks for making this! :D This is exactly what I've been looking for awhile now.
@deleted_7151878 Thanks :D
@ultimateowner56
Fixed it, and a couple other bugs :D
@ultimateowner56
Thank you for finding that. I've fixed it and I am releasing it in a little bit, I need to fix one other thing first.
This plugin is working for me with the /sa default command but when someone dies they spawn at the default location for the world and not the one I configured in this plugin.
@josvth
That's why for each spawn area I will have a configurable world folder name
@Darkhand81
At the end, you were just trying to help. That's only appreciated even if you made a mistake. ;)
@deleted_7151878
It works until you try to make this plugin support multiple worlds. Because the player.dat file is only stored in the main overworld. Not in the nether or end worlds or even other overworld worlds.
@Darkhand81
Well crap. My work around works so whatever lol
@josvth
Woah... Back when I was trying to use them I couldn't get any kind of reasonable result out of them and found the mention of the function being unsupported. If they're actually working now, I'm more than glad to be proven wrong! Maybe I can start using them myself. :)
I spammed your comments about it too josvth, that's what I get for not actually writing some test code before going around complaining about a function. :)
@Darkhand81
I don't quite agree with you. In the Java docs it seems that this function isn't working because it isn't supported in the TestPlayer.class. However if you look at the actual source of Bukkit you see that the CraftPlayer.class has a working .hasPlayedBefore() function. See this.