Inactive [GEN] SpawnControl v0.8.3 - Per-Player/Group Spawns (Now on DevBukkit) [1060]

Discussion in 'Inactive/Unsupported Plugins' started by Timberjaw, Jan 21, 2011.

  1. Offline


    SpawnControl v0.8.3

    SpawnControl is being superseded by HomeSpawnPlus, a more advanced plugin that supports all of SC's features, and many more. Your homes and spawns can be imported directly from SpawnControl into HomeSpawnPlus.
    Feel free to contact me with questions/concerns/complaints.

    Tested with CraftBukkit 1060.

    DevBukkit Page: SpawnControl
    Bug Reports: SpawnControl Issue Tracker

    • Per-player /home and /sethome
    • Per-group /groupspawn
    • Precise /spawn and /setspawn override
    • Per-world global, group, and player spawns
    • [NEW] Cooldowns for /home, /sethome, /groupspawn, and /spawn
    • Optional respawn on death
    • Optional respawn on join
    • Toggles for home, groupspawn, and globalspawn features
    • Imports player homes from
    • Imports group spawns from

    This is a more full-featured release by far. Group spawns and global spawn are now supported. I'm detecting 'new' players (for global spawn) by checking their group (new players will be in Default) and looking for an existing home entry. If no home entry is found, the player will be teleported to the global spawn and their home will be set to the global spawn location. If someone has a better method for detecting this, I'd love to hear it.

    The following permissions are available:
    • SpawnControl.sethome.basic
    • SpawnControl.sethome.proxy
    • SpawnControl.home.basic
    • SpawnControl.spawn.use
    • SpawnControl.spawn.set
    • SpawnControl.groupspawn.use
    • SpawnControl.groupspawn.set
    • SpawnControl.CooldownExempt.* (Sub-nodes: *, home, sethome, groupspawn, spawn)
    • SpawnControl.config (for /sc_config [setting] [value])
    • SpawnControl.import (for /scimportconfig and /scimportgroupconfig)
    1. Download SpawnControl.jar and place it in your bukkit plugins folder
    Optional Installation Steps (for Permissions support):
    1. Download the Permissions plugin and install it
    2. Add SpawnControl entries to your Permissions config as desired
    • /spawn - go to global spawn
    • /setspawn - set the global spawn to your current location
    • /home - go home
    • /sethome - set your home to your current location
    • /groupspawn - go to your group spawn
    • /setgroupspawn [group] - set the group spawn for the specified group to your current location
    • /sc_config [setting] [value] - alter a configuration setting
    • enable_home - Enables or disables /home and /sethome (0 = disabled; 1 = enabled) [Default: 1]
    • enable_groupspawn - Enables or disables /setgroupspawn and /groupspawn (0 = disabled; 1= enabled) [Default: 1]
    • enable_globalspawn - Enables or disables /setspawn, /spawn, and /globalspawn (0 = disabled; 1 = enabled) [Default: 1]
    • behavior_death - Specifies the behavior when a player dies (0 = disabled - user returns to vanilla spawn; 1 = home; 2 = group spawn; 3 = global spawn) [Default: 3]
    • behavior_join - Specifies the behavior when a player joins the server (0 = disabled - user spawns at last position; 1 = home; 2 = group spawn; 3 = global spawn) [Default: 0]
    • behavior_spawn - Specifies the behavior of the /spawn command (0 = global spawn; 1 = group spawn; 2 = home)
    • behavior_globalspawn - EXPERIMENTAL - Specifies the behavior when setting spawn (0 = does not override map spawn, 1 = overrides map spawn)
    • cooldown_home [seconds] - Sets a cooldown in seconds for the /home command
    • cooldown_sethome [seconds] - Sets a cooldown in seconds for the /sethome command
    • cooldown_groupspawn [seconds] - Sets a cooldown in seconds for the /groupspawn command
    • cooldown_spawn [seconds] - Sets a cooldown in seconds for the /spawn and /globalspawn commands

    Known Issues:

    • None?

    • 0.1 - First Bukkit release. Basic /home and /sethome support
    • 0.2 - Group and global spawns, Permissions integration
    • 0.3 - Working respawn on death; respawn on join (optional); configuration options
    • 0.4 - Updated to use new OnCommand system
    • 0.5 - Now uses PLAYER_RESPAWN; added basic multiworld support; added experimental (optional) globalspawn behavior; added missing /globalspawn command
    • 0.6 - Proper multi-world support with per-world spawns
    • 0.7 - Added command cooldowns; Permissions is now optional
    • 0.8 - Fixed multiworld spawns; recompiled against CB #617; removed deprecated method calls
    • 0.8.1 - Updated deprecated world loading method; tweaked spawn log message
    • 0.8.2 - Switched cooldown time handling from server time to system time
    • 0.8.3 - Added Hidendra's pull to support Bukkit's native permissions
    • Full changelog
    Michonne, Huddl, BadgerLove and 5 others like this.
  2. Offline


    not so much support for many spawns but a single global like spawn per world would nice. I have an idea for this as well.

    A new command called /owspawn "otherworldspawn"

    This would be a command that would only allow you to set a spawn inside another world an exact spawn. It would detect the world folder name or something or your plugin would have to detect all worlds some how by sarching for level.dat files on start.

    then one could use /owspawn to specificly set a spawn world name like this

    /owspawn nether

    where nether would be the worldfolder name
    this would then be your EXACT spawn for that world and that world alone.

    This method would also reduce bugs occuring in your main world as it is completely seperate from your MASTER world spawns.

    Just some food for thought!
    --- merged: Feb 7, 2011 4:28 PM ---
    Bug in second world death, U die in lava u land bak in lava after u spawn again.
  3. Offline


    In the same spot, or somewhere else?
    --- merged: Feb 7, 2011 4:31 PM ---
    @ledhead900 Also, what multi-world plugin are you using?
    And do you see the respawn screen before you end up back in the lava?
  4. Does this interfere with tKelly's MyHome?
  5. Offline


    It shouldn't, if you disable SpawnControl's /home functions via /sc_config enable_home 0
  6. Ok thanks, and also I get an error on startup, i'll post it, gimme a sec

    Edit: here is my eroor:

    SEVERE: org.bukkit.Server.getWorlds()Ljava/util/List; (Is it up to date?)
    java.lang.NoSuchMethodError: org.bukkit.Server.getWorlds()Ljava/util/List;
    at com.bukkit.timberjaw.spawncontrol.SpawnControl.initDB(
    at com.bukkit.timberjaw.spawncontrol.SpawnControl.onEnable(
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(
    at net.minecraft.server.MinecraftServer.e(
    at net.minecraft.server.MinecraftServer.c(
    at net.minecraft.server.MinecraftServer.d(
  7. Offline


    @fofogogo23 What CraftBukkit build are you using? You need to be using a fairly recent version (I tested v0.5 with CraftBukkit 271)
  8. hehe, just updated and it's fixed, but now I come across another problem, where is the settings file? I have spawncontrol.db but inside is just written SqLIte 3... Any ideas?
  9. Offline


    @fofogogo23 The spawncontrol.db file contains the settings table. You can configure SpawnControl from in-game using the command: /sc_config setting value

    e.g. /sc_config enable_home 1

    The available settings are listed in the first post in this thread.
  10. Seems to interfere for me, even when I've disable home ;/
  11. Ohhhh, i'm sorry I missed that, so all the settings are configured in-game? (Or in console)? Cool! Thank you, osryr for my stupid question :)
    --- merged: Feb 7, 2011 5:09 PM ---
    Yeah same as Pawned said, it does interfere, I turned home off and whenever somebody types /home it just repeats to them "/home"
    --- merged: Feb 7, 2011 5:24 PM ---
    SO like for example, Fofogogo23: "/home"
    Random reply: "/home"
  12. Offline


    We use Essentials
    and its the same spot as u die in.

    Its due to the fact there is No spawn in second world that is linked to ur addon I think so no spawn to be sent to.

    Also Essentials does have a spawn bug of its own as in it spawns u under blocks in the second world apparently thats being fixed soon to.
  13. Offline


    @Pawned @fofogogo23
    May be a problem with MyHome then. When SpawnControl's enable_home parameter is set to 0, it completely ignores /home requests. If you're not arriving at your MyHome home, it's probably an issue with MyHome.

    @ledhead900 Well, SC attempts to send you back to world 0 (default world), so it should be working. Do you see the death/respawn screen? Any errors or messages in the console?
  14. It's definitely a confliction with your plugin. If I take SpawnControl off, MyHome works fine. However, with SpawnControl on it simply replies "/home" when you try to go to /home.
  15. Offline


    Will talk to the Bukkit devs about it. May be a CB bug.

    In the meantime, if you're comfortable opening up and modifying a .jar file, you can open SpawnControl.jar and remove /home and /sethome from plugin.yml. That should prevent CB from passing the command to SC in the first place.
  16. Meh... Just updated CraftBukkit and now both plugins don't work xD.]

    EDIT: Hmm, turns out Wormhole was stopping a lot of my plugins from working on 271, removed it and now this loads :p.
  17. Offline


    Had someone try to confirm this and they were unable to. MyHome on, works fine. SpawnControl on, works fine. Both on, works fine.

    What CB version are you on? SpawnControl is tested and working with 271.
  18. Yup, that's got both working :).
  19. Offline


    Updated! v0.5.1 is a tiny little cosmetic update. Eliminated the red text issue on disabled commands. Note that this should have no functional impact.
  20. Uh mine still dont work D: *facepalm*
  21. Seems that this is broken when a player dies - if they click RESPAWN then it gives them an internal server error kick.
  22. Offline


    /sc_config behavior_join 3

    "Couldnt read value"

    Trying to have 3 different spawn points.
    2 Group spawns and a 1 global for new comers to the server.

    Tried to set up the newcomer spawn and this is what i get.
  23. Offline


    Please provide the following:
    • CraftBukkit build #
    • SpawnControl version # (check on startup)
    • MyHome version # (check on startup)
    • Names of all other plugins installed
    • Steps to reproduce (steps, expected behavior, actual behavior)
    --- merged: Feb 7, 2011 6:05 PM ---
    @Olat What CraftBukkit version and what SpawnControl version?
    --- merged: Feb 7, 2011 6:06 PM ---
    @Pawned What is the error in your server console?
  24. Code:
    2011-02-07 18:56:28 [WARNING] [SpawnControl] Could not find respawn for Jamesfish100!
    2011-02-07 18:56:28 [WARNING] Failed to handle packet: java.lang.NullPointerException
        at net.minecraft.server.ServerConfigurationManager.d(
        at net.minecraft.server.NetServerHandler.a(
        at net.minecraft.server.Packet9Respawn.a(SourceFile:10)
        at net.minecraft.server.NetworkManager.a(SourceFile:232)
        at net.minecraft.server.NetServerHandler.a(
        at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
        at net.minecraft.server.MinecraftServer.h(
  25. Offline


    @Pawned Have you set a global spawn point?
  26. I figured this would be more simple for you to look at :

    2011-02-07 18:14:07 [INFO] Starting minecraft server version Beta 1.2_01
    2011-02-07 18:14:07 [INFO] Loading properties
    2011-02-07 18:14:07 [INFO] Starting Minecraft server on *:25565
    2011-02-07 18:14:07 [INFO] This server is running Craftbukkit version git-Bukkit -0.0.0-360-gf5b151f-b271 (MC: 1.2_01)
    2011-02-07 18:14:07 [INFO] Preparing level "FGserver"
    2011-02-07 18:14:07 [INFO] Preparing start region
    2011-02-07 18:14:08 [INFO] Preparing spawn area: 44%
    2011-02-07 18:14:09 [INFO] LightVote 1.54 initialized
    LWC [1.491] Loading shared objects
    Config [1.491] Loaded 8 config entries
    LWC [1.491] Native library: lib/native/Linux/i386/
    2011-02-07 18:14:10 [INFO] WorldGuard 3.2.2 loaded.
    2011-02-07 18:14:10 [INFO] WorldGuard: No known permissions plugin detected. Usi ng configuration file for permissions.
    2011-02-07 18:14:10 [INFO] WorldGuard: Blacklist loaded.
    2011-02-07 18:14:10 [INFO] WorldGuard: Single session is enforced.
    2011-02-07 18:14:10 [INFO] WorldGuard: TNT ignition is blocked.
    2011-02-07 18:14:10 [INFO] WorldGuard: Lighters are blocked.
    2011-02-07 18:14:10 [INFO] WorldGuard: Lava fire is blocked.
    2011-02-07 18:14:10 [INFO] WorldGuard: All fire spread is disabled.
    2011-02-07 18:14:10 [INFO] [Permissions] version [2.0] (Handler) loaded
    2011-02-07 18:14:10 [INFO] [Cleaner] version [1.6] (Night) loaded
    2011-02-07 18:14:10 [INFO] [AntiBuild] version [1.0] (Reborn) loaded
    2011-02-07 18:14:10 [INFO] [iConomy] version [2.2] (Aime) loaded
    2011-02-07 18:14:10 [INFO] WorldEdit 3.2.2 loaded.
    2011-02-07 18:14:10 [INFO] WorldEdit: Permissions plugin detected! Using Permiss ions plugin for permissions.
    2011-02-07 18:14:10 [INFO] [General] version [2.1] (Salvez) loaded
    2011-02-07 18:14:10 [INFO] [iChat] version [1.5] (Maria Holic) loaded
    2011-02-07 18:14:12 [INFO] [SpawnControl] version [0.5] loaded
    2011-02-07 18:14:12 [INFO] [Gastronomic]: Permissions enabled.
    2011-02-07 18:14:12 [INFO] [Gastronomic] version [1.2] (Hearty) loaded
    TravelPortals version 1.0 is enabled!
    2011-02-07 18:14:12 [INFO] [AutoMessage] version [1.0] loaded
    [DeathTpPlus] 5 Kill Streaks loaded.
    [DeathTpPlus] 4 Death Streaks loaded.
    [DeathTpPlus] version 1.5 by lonelydime is enabled!
    2011-02-07 18:14:12 [INFO] LightVote 1.54 scanning properties file.
    LWC [1.491] Loaded command: /lwc -admin
    LWC [1.491] Loaded command: /lwc -create
    LWC [1.491] Loaded command: /lwc -free
    LWC [1.491] Loaded command: /lwc -info
    LWC [1.491] Loaded command: /lwc -p
    LWC [1.491] Loaded command: /lwc -modify
    LWC [1.491] Loaded command: /lwc -unlock
    LWC [1.491] -> PLAYER_QUIT
    LWC [1.491] -> ENTITY_EXPLODE
    LWC [1.491] -> BLOCK_INTERACT
    LWC [1.491] -> BLOCK_DAMAGED
    LWC [1.491] Dev mode: FALSE
    LWC [1.491] Using Nijikokun's permissions plugin for permissions
    LWC [1.491] Loading SQLite
    PhysDB [1.491] Creating physical tables if needed
    MemDB [1.491] Creating memory tables
    SQLite [1.491] Using: Pure
    2011-02-07 18:14:13 [INFO] Loading map 'org.dynmap.kzedmap.KzedMap'...
    2011-02-07 18:14:13 [INFO] Loading renderer 'org.dynmap.kzedmap.DefaultTileRende rer'...
    2011-02-07 18:14:13 [INFO] Loading renderer 'org.dynmap.kzedmap.CaveTileRenderer '...
    2011-02-07 18:14:13 [INFO] Set minimum priority for worker thread
    2011-02-07 18:14:13 [INFO] Map renderer has started.
    2011-02-07 18:14:13 [INFO] Dynmap WebServer started on null:8123
    2011-02-07 18:14:13 [INFO] WorldGuard: Permissions plugin detected! Using Permis sions plugin for permissions.
    2011-02-07 18:14:13 [INFO] WorldEdit: Permissions plugin detected! Using Permiss ions plugin for permissions.
    2011-02-07 18:14:13 [INFO] [MYHOME]: 5 homes loaded
    2011-02-07 18:14:13 [INFO] [MYHOME] Permissions enabled.
    2011-02-07 18:14:13 [INFO] MyHome 1.8 enabled
    ClothColor version 0.8 is enabled!
    SignLift version 0.3 is enabled :)
    2011-02-07 18:14:13 [INFO] [MYWARP] Connection with MyHome established.
    2011-02-07 18:14:13 [INFO] [MYWARP]: 4 warps loaded
    2011-02-07 18:14:13 [INFO] [MYWARP] Permissions enabled.
    2011-02-07 18:14:13 [INFO] MyWarp 1.9 enabled
    2011-02-07 18:14:13 [INFO] Vanish 1.3.4 loaded.
    Take yourself wonder by wonder, using /magiccarpet or /mc. MagicCarpet version 1 .4 is enabled!
    2011-02-07 18:14:13 [INFO] LoginMessage 0.2 enabled
    2011-02-07 18:14:13 [INFO] Done! For help, type "help" or "?"
  27. Yup.
  28. Offline


    @Pawned Can you upload your spawncontrol.db file? (You can zip it and attach it to your post)
    --- merged: Feb 7, 2011 6:20 PM ---
    @fofogogo23 You didn't answer my last question: steps to reproduce. :(

    Steps to reproduce: what settings do you have set for SC, what series of commands produces the problem, what exactly happens. For example, something like: "enable_home 0, enter command /home, see error/message/whatever, I don't get teleported anywhere"
  29. Offline


  30. Offline


    @Pawned What group is the user who had the error in?
    --- merged: Feb 7, 2011 6:36 PM ---
    @Olat Your CraftBukkit and SpawnControl are out of date. If you update CraftBukkit to one of the latest versions, you should update SpawnControl to v0.5.1. Otherwise, download v0.4.2 here, as it fixes the sc_config issue.

Share This Page