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

    Timberjaw

    SpawnControl v0.8.3

    Announcement:
    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

    Features:
    • 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 spawncontrol-players.properties
    • Imports group spawns from spawncontrol-groups.properties
    Details:

    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)
    Dependencies:
    Installation:
    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
    Commands:
    • /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
    Settings:
    • 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
    Downloads:

    Known Issues:

    • None?
    Changelog:

    • 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. Dude your downloadlink is broken?
    Code:
    Oops! Google chrome cannot find dev.bukkit.org
    
    Could you upload it on mediafire or something?
     
  3. Offline

    Kellis

    @Timberjaw
    This plugin need superpermbridge for permissionsbukkit?

    err...
    /sethome and /home works only if i set permissions for commandbook.*: true
    how i can avoid this?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 6, 2016
  4. Offline

    Timberjaw

    @Kellis You need to use the CommandBook Customizer (it's available in the CommandBook forum thread) and remove the Home feature from CommandBook.

    @johano1rct Seems to be working fine...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 18, 2016
  5. Offline

    Timberjaw

    Updated! Minor version 0.8.3 add's Hidendra's pull for Bukkit's native Permissions support. Recommended usage is via the PermissionsBukkit plugin, but existing Permissions (Phoenix) installs are still supported.
     
  6. Offline

    jtb1196

    I get this error everytime i try and hit something like /sethome. Anyone know whats wrong? This is my first mod and im kind of new to this. In the game is always says "You do not have permission for this command" or something like that.

    21:28:43 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'seth
    ome' in plugin SpawnControl v0.8.3
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:12
    9)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    44)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:489)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:468)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
    at com.aranai.spawncontrol.SCPlayerListener.onCommand(SCPlayerListener.j
    ava:41)
    at com.aranai.spawncontrol.SpawnControl.onCommand(SpawnControl.java:282)

    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 6 more
     
  7. Offline

    Grimmy777

    how do I control where a player logs in the first time they enter the world?
     
  8. Offline

    Tanite

    Did you try /setspawn ?

    Is there any way this plugin can set the actual spawn block? It seems I still have to go into mcEdit to do this. I'll read back and see if it was discusses previously. Thanks :D
     
  9. Offline

    seventoes

    Hey guys, I threw together a quick python script to convert Essentials homes to SpawnControl, since I didn't want to lose my player home positions just for throwing away a crappy plugin. It's available here:

    https://gist.github.com/1228674

    This plugin assumes Essentials's newest player file format, so if it throws an error about a dict index, run this command to delete the old player files first. These players haven't logged in for quite a long time or their file would have been updated, so don't sorry about losing player info. I had 5800 player files total and only 2 of them were using the old format.

    Code:
    rm `egrep -lr 'home: \[' plugins/Essentials/userdata/`
     
    Tanite likes this.
  10. Offline

    SilencShadoW

    Hey Guy,
    can u implement !1! Spawn for all worlds ... to reach with /spawn ...??? because i got 2 worlds but want 1 spawn! ... :(
     
  11. Offline

    GordonGrey

    @Timberjaw
    Does this plugin have the function to set your home in a bed and if its removed you go to spawn?
     
  12. Offline

    Xanadar

    By the way, it does not create a config.yml in the SpawnControl folder. Could you post an example of what the config is supposed to look like?
     
  13. Offline

    Timberjaw

    @GordonGrey Not currently. Bed functionality is unchanged from Vanilla.

    @Xanadar The configuration is handled in the database, as explained in the instructions.
     
  14. Offline

    OrtwinS

    Not everyone has a default group, you could also check for a player.dat file.
    Though I'll leave it up to you to decide if its a better method or not.
     
  15. Offline

    Timberjaw

    @OrtwinS That info was based on the old Permissions plugin, which would always list a player as being a member of 'Default' if they were not a member of any groups (even if 'Default' didn't exist). The main check is looking for an existing Home for the user. Any user that has been on the server before will have at least an auto-created Home.
     
  16. Offline

    Grimmy777

    ok, so I have the firstspawn plugin on to take everyone to one spot to learn about the server. I have spawncontrol to
    try to set the world global spawn and then bedrespawn for everyone to use from then on. For some reason though, when I kill myself after typing /sethome when I have no bed, it takes me to the world default globalspawn rather then the /sethome spawn point. Any Ideas why?
     
  17. Offline

    Timberjaw

    @Grimmy777 If the bed respawn plugin or the firstspawn plugin also implement a basic global spawn, they may be conflicting with each other and/or with SpawnControl.
     
  18. Offline

    Grimmy777

    I just want people to come into one room when they spawn the first time, then once they make it out go to the global spawn and then if they use a bed to spawn at the bed if they die. Do you think I can pull that off with this?
     
  19. Offline

    Timberjaw

    @Grimmy777 Probably not in the current version of SpawnControl, sorry. I do hope to support bed spawns and improved first-spawn behavior in the next version, but I can't really give an ETA on that.
     
  20. Offline

    Locx

    @Timberjaw
    Could you possibly make this Permissions EX supported?
    It would be helpful for my server =D
     
  21. Offline

    Chromana

    You can use any PermissionsBukkit or Permissions 2.x or 3.x plugin with PEX. Just have the additional bridge files.

    @AnyoneWho'sInterested, seems to work fine in 1185.

    @Timberjaw : Consider making a standard config.yml file? They are a lot easier to deal with than using a bunch of hard to remember commands. Extremely easy to code with, too.
     
  22. Offline

    Locx

    @Chromana
    what do you mean by "bridge files" ?
     
  23. Offline

    Chromana

    Sorry for my lame explanation. If you take a look at the installation instructions for PEX (https://github.com/t3hk0d3/PermissionsEx/wiki/Installation) doing step 4 allows any plugin which supported the old Permissions to be used in PEX, such as this plugin. Literally all you have to do is have Permissions.jar on your server and it will work!
     
  24. Offline

    Cryptite

    I filed a ticket in bukkitdev involving conflicts with WorldGuard, but I figured I'd post here too just in case anybody else had a workaround. I'll just copy/paste from the ticket:

     
  25. Offline

    Racha

    I dont have config :/ how to disable debug?
     
  26. Offline

    Anora

    what are the nodes for permissionsbukkit

    the only reson I ask this when ever I put in the nodes thay get removed
     
  27. Offline

    Viperdream

    Hey, I've set it up for my server (1337 bukit, and using PEX with the bridge) but every time (after I've set up the spawnpoints) they spawn at the normal spawn?

    Could it be due to Multiverse?
     
  28. Offline

    da_boom

    does this wrk for 1.8.1???????
     
  29. Offline

    Cocktailsauce

    hi
    can you add permissionsEx?
    thx
     
  30. Offline

    Locx

    @Timberjaw

    Not that this error affects anything. But i always get

    15:17:46 [SEVERE] Could not pass event PLAYER_RESPAWN to GroupSpawn
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getPrimary
    Group(Ljava/lang/String;Ljava/lang/String:Ljava/lang/String;
    at de.Zero9195.GroupSpawn.GroupSpawn.getGroup(GroupSpawn.java:283)
    at de.Zero9195.GroupSpawn.GSPlayerListener.onPlayerRespawn(GSPlayerListe
    ner.java:36)
    at org.bukkit.plugin.java.JavaPluginLoader$3.execute(JavaPluginLoader.ja
    va:258)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
    at net.minecraft.server.ServerConfigurationManager.moveToWorld(ServerCon
    figurationManager.java:256)
    at net.minecraft.server.ServerConfigurationManager.moveToWorld(ServerCon
    figurationManager.java:220)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:928)
    at net.minecraft.server.Packet9Respawn.a(SourceFile:26)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    15:17:46 [INFO] [SpawnControl] Attempting to respawn player ed58 (re spawning).
    15:17:46 [INFO] [SpawnControl] DEBUG: Respawn Location: Location{world=CraftWorl
    d{name=Duika},x=-125.96875,y=67.0,z=-57.375,pitch=81.95135,yaw=18.990438}


    The only thing it really causes is for players to take like 10 seconds to re spawn back to their group spawn. This only affects them on death.

    I use CB 1240.( which I can tell isn't an updated version for your plugin.)
     
  31. Offline

    fascinative

    Excuse me, it says i don't have permission to set group spawn ?
     

Share This Page