Random Spawn

Logo

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!

How to configure worlds.yml

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.

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of h0us3cat h0us3cat May 22, 2013 at 05:22 UTC - 0 likes

    Does this have multiverse support?
    I want to enable random spawning in one world only.

    Last edited May 22, 2013 by h0us3cat

    BFAK:h0us3cat,734,4283c514507a2bc3cbf05f7a3506aa6b95eb88bee7912e231bf0c4168bfc4ea7

  • Avatar of MinecraftAdmin MinecraftAdmin May 21, 2013 at 05:51 UTC - 0 likes

    OMG Thankyou for adding the ability to make a sign specifying a world!

  • Avatar of gnorbsl gnorbsl May 20, 2013 at 10:27 UTC - 0 likes

    "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?

    BFAK:22205,4b0cdc483e9d97328348fd99e7084bee0a927d358330854262010d8c873eb6b5

  • Avatar of malifakt malifakt May 15, 2013 at 15:02 UTC - 0 likes

    do you think you can add getting items upon spawning randomly, I need that pretty bad on my server. Please make it quick :D

  • Avatar of egimfun egimfun Apr 26, 2013 at 00:15 UTC - 0 likes

    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

  • Avatar of lst96 lst96 Apr 25, 2013 at 22:05 UTC - 0 likes

    @UberBosser: Go

    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."

    http://imageshack.us/a/img703/2029/bannertca.png

  • Avatar of UberBosser UberBosser Apr 24, 2013 at 11:03 UTC - 0 likes

    Please fix the bug when spawning in the middle of dirt and rock and stuff

  • Avatar of lst96 lst96 Apr 23, 2013 at 03:19 UTC - 0 likes

    Could you make this work with authme reloaded? (login plugin) Like have it randomly spawn someone once the registered.

  • Avatar of iPadHD iPadHD Apr 22, 2013 at 22:32 UTC - 0 likes

    Please, make it so you can use a water portal to Random Spawn!

  • Avatar of josvth josvth Apr 22, 2013 at 14:39 UTC - 0 likes

    @lst96: Go

    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.

Facts

Date created
Aug 28, 2011
Categories
Last update
Apr 21, 2013
Development stage
Release
Language
  • enUS
License
GNU General Public License version 3 (GPLv3)
Curse link
Random Spawn
Downloads
11,419
Recent files

Authors