[INACTIVE][FUN, MISC] SpawnRandomizer v0.1, random re-spawn-locations [439]

Discussion in 'Inactive/Unsupported Plugins' started by Bobby_Bonsai, Feb 25, 2011.

  1. Offline


    SpawnRandomizer - Random re-spawning in a defined area.
    Version: v0.1

    This plugin will let your players re-spawn at random locations within a fixed area. It also has the option to teleport players on login to a random location and let players spawn in caves (rare).

    The allowCaveSpawn-Option is more of theoretical nature. It checks from 0 altutide upwards for two blocks of air until it reaches the highest block of the map. So there needs to be a cave with enough space at exactly that location. This is not limited to caves, but you could also spawn under a tree or a floating plate of something. So you can imagine how often you'll actually spawn underground.

    Created based on this requests:

    • Random re-spawn locations within defined area
    • Random teleport on login
    • Spawn in caves

    Source Code

    Default configuration file (plugins/SpawnRandomizer/config.yml) (open)
    teleportOnLogin: false	# Teleport on login
    allowCaveSpawn: true	# Spawn in caves
    minX: -100		# Area for random spawning
    maxX: 100		# This should work with any area,
    minZ: -100		# even with two negative numbers like:
    maxZ: 100		# -150/-25 -150/-25

    Version 0.1 (Download)
    • First Version

    Planned Features:
    • Nether support (might not be working in v0.1)
    • Real MultiWorld-Support (with different areas per world)
    • Configurable altitude

    Known Bugs:
    • None so far, spawning right next to a wall might be unhealthy...but I'm not sure.
    Jelle likes this.
  2. Offline


    I get the error message:

    "[SEVERE] while scanning a simple key; could not found expect
    ed ':' (Is it up to date?)
    while scanning a simple key
    in "<reader>", line 7, column 1:
    could not found expected ':'
    in "<reader>", line 8, column 1:
    maxX: 10000

    Craftbukkit 458
  3. Offline


    I've tested it — it works fine with the 440 (recommended) build.
  4. Offline


    Does it work with more worlds? (MultiVerse)
  5. Offline


    @alexander_q: Could you please post the complete stacktrace and your configuration file? Thanks.

    @Jelle: Good question. I think it should work, read it uses the same defined area for all worlds, but will keep the player in the world in which he died. While you mention it, it most likely does not work with in the Nether, I'll look into it.
  6. Offline


    I dont know if it's possible,
    But maybe u can add an Y? (minY maxY)
  7. Offline


    @Jelle: It would be possible, but with implications. F.e. what to do if there's no fitting spawn-location in that altitude-range? Pick a new one or spawn the player outside of that range?
  8. Offline


    Maybe outside the range with a message to the server?

    EDIT: Or a message to the Ops, so they know the spawnpoint isn't correct.
  9. Offline


    Could I make a suggestion? I would like that when players are in a defined zone only (let's say an arena), they random spawn back in also a defined zone within the arena?

    That would be perfect! Your mod does it for the whole world (my arena) then use a defined zone around the server spawn (my defined zone in the arena). Would it be too hard to include as a feature?
  10. Offline


    @Wanny: That's an interesting idea. I'll have a look at it.
  11. Offline

    Simon Smith

    this is just what i was looking for :p
    i keep getting these errors when trying to use this spawnrandomizer:

    00:28:36 [WARNING] Plugin: SpawnRandomizer does not support the onLoad() method

    00:31:35 [SEVERE] Could not pass event PLAYER_LOGIN to SpawnRandomizer
    at org.bukkit.craftbukkit.entity.CraftPlayer.teleportTo(CraftPlayer.java:173)
    at org.bonsaimind.bukkitplugins.SpawnRandomizer.teleport(SpawnRandomizer.java:129)
    at org.bonsaimind.bukkitplugins.SpawnRandomizerPlayerListener.onPlayerLogin(SpawnRandomizerPlayerListener.java:51)
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:207)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:143)
    at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:76)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:68)
    at net.minecraft.server.Packet1Login.a(SourceFile:46)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:34)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)

    any ideas?

  12. Offline


    @Simon Smith: No, not really. I've never seen the first error message before (and doesn't make any sense), and the second one isn't any better. What version of Bukkit are you using? Could you also please post your SpawnRandomizer/config.yml file?
  13. Offline

    Simon Smith

    below is bits of info:
    01:13:04 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-543-g06a64ab-b554jnks (MC: 1.3)

    md5sum - 9498ced4de016d9b596a3686d22d5acf - SpawnRandomizer_v0.1.jar

    minZ: -100
    teleportOnLogin: true
    allowCaveSpawn: true
    maxZ: 100
    maxX: 100
    minX: -100

Share This Page