[MECH][TP] Graveyard v0.4.4 - Multiple player respawn locations. [1317]

Discussion in 'Inactive/Unsupported Plugins' started by McSpazzy, Apr 7, 2011.

  1. Offline

    McSpazzy

    Graveyard - Allows server operators to define multiple respawn points.
    Version: v0.4.4

    Just put in plugins directory and off you go. Config files generated on the fly.
    Built and tested with Craftbukkit 1317.

    New development site =D
    http://dev.bukkit.org/server-mods/graveyard/

    Features:
    • Allows admins to define names and coordinates in config files.
    • Players respawn at closest point.
    • Permissions support for commands.
    Note: This currently overrides many other plugins spawn management.



    Commands:

    /gy add SpawnName​
    /gy delete SpawnName​
    /gy list​
    /gy list world​
    /gy closest​
    /gy tp SpawnName​
    /gy tp closest​
    /gy tp random​
    /gy info​
    /gy reload​
    /gy version​

    Feel free to add as many words in the name as you want. Such as 'Super happy fun spawn point of doom' or something equally as awesome.

    Permissions:
    graveyard.command.tp​
    graveyard.command.add​
    graveyard.command.list​
    graveyard.command.closest​
    graveyard.command.delete​
    graveyard.command.message​
    graveyard.command.reload​
    graveyard.command.info​
    graveyard.spawn.[groupname]​
    graveyard.respawn.closest​
    graveyard.respawn.random​
    graveyard.respawn.bed​
    graveyard.respawn.invincible​

    Download v0.4.4
    Download v0.4.3
    Download v0.4.2
    Download v0.4.1
    Download v0.4

    To Do:
    • Point discovery.
    • Proper documentation.
    Coming in next version (Probably):

    Change log:
    Version 0.4.4 - Some pretty big changes.
    • No longer requires permissions to work. If no permissions plugin installed it will automatically let all players spawn at all points.
    • Supports PEX and PermissionsBukkit
    • Took the bed support out for now till I can find a better way to implement it.
    • New points are automatically in the 'default' group which needs no permissions to spawn at, just the graveyard.respawn.closest or random.
    • Updated the configuration code to reflect changes in the new RB.
    Version 0.4.3
    • Option to enable an invincible timer on respawn.
    • Threaded file IO
    • Added commands '/gy tp random' and '/gy tp closest'
    Version 0.4.2

    • Configurable option to check/auto notify if there is a new version
    • Permission to change between closest or random spawn point.
    • Allow beds to be used. If set to true in config, will attempt to spawn player at their bed, if that fails, will default to the random/closest permission.
    Version 0.4.1

    • Added a '/gy reload' command to reload all points.
    Version 0.4

    • Changed permissions to PermissionsBukkit
    • Added per point permissions
    • Added more commands
    • Rewrote some of the code
    Older Versions (open)


    Version 0.3.9pre
    • Support for PermissionsEX.
    Version 0.3.8


    • Custom respawn strings. Change the closest point's by using '/gy message message here'. You can set it to '/gy message none' for no message.
    • Multiworld support.
    • Took out permissions for now...I know, I'm a terrible person.
    Version 0.3.7


    • Fixed the bug caused by the new CB preventing the multiple spawns from working.
    Version 0.3.6


    • Some general code cleanups
    Version 0.3.5


    • Removed support for Towny, will re-add soon.
    • Fixed null when trying to TP to a non existant point.
    • Updated command list
    Version 0.3.2


    • Added support for Towny.
    Version 0.3.1


    • Fixed not creating folders on first load bug. Thanks to @spowney for pointing out my stupid mistake. =D (I forgot to put it back in after the code rewrite)
    Version 0.3


    • Changes to the commands.
    • Changes to the storing of spawn points.
    • Better permissions support.
    Version 0.3pre


    • Basic permissions support.
    • Additional fixes and updates.
    Version 0.2.1


    • This is only an intermediate release to address important bugs and compatibility issues.
    • New add coordinate command that works in game as well as from the console.
    • Fixed a few of the command catch errors. So there should be no more console error spamming.
    • The graveyard points now supersedes beds and other plugins. (The ones I tested) Except those plugins which have their priority set to highest.
    Version 0.2


    • Added in game add point command. (Remove and list still coming)
    Version 0.1


    • Initial Release


    I'm still working on it. Just wanted to get a base version out to feedback/bug reports/feature demands. I'll be adding the commands in as soon as I've finished typing this.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
    AS1LV3RN1NJA and kahlilnc like this.
  2. Offline

    peaced

    Great news.
    I'll test it when I get a bit of time.
    I just did a quick test, and I got some java heap space errors, (out of memory). But it might not be your plugin.
    I teleproted a lot to set up spawn point, and I think the dynmap plugin couldnt handle so much new terrain to render.
    i'll do some more testing soon and come back to you.
     
  3. Offline

    Netu

    I hate I went to bed just a few moments before you posted this! Testing now! Thank you so much. :)

    Edit: Tested on CB #1185. Thanks again, bud!
     
  4. Offline

    cadwal

    Thanks for keeping me updated on this plugin. Looks like I found a bug (go me!) . When I'm deleting Graveyards, the files appear to remain on my server and get reloaded with each reset. Thankfully all files are stored independently so I can just delete them from the FTP if they're incorrect. Certainly not earth shattering.
     
  5. Offline

    peaced

    I can confirm the spawn point files are not deleted when removing a spawn point in game.
     
  6. Offline

    Xarniia

    Hi,
    a new cool feature would be, that some graveyards only can be used by some permission-groups.
    For Example for RPG fractions or "Adminislands".
    Thanks for this cool plugin!
     
  7. Offline

    McSpazzy

    @Xarniia The permissions allow that...im a poor documenter
    The 'group' part, if you change the group= in the config to something like group=admin
    then only those with the graveyard.spawn.admin should spawn there
    ...unless i forgot to add that code back in... D= lemme know if it doesnt work

    @cadwal @peaced ...yep totally forgot to re enable deleting points...i shall do it over the next day or so
     
  8. Offline

    peaced

    Ok i've set up 0.4, with 81 spawn points on a 10k x 10k map, will keep you posted.
    First short test shows no problems.

    i'm gonna make my 2 requests again tho :
    Have an option to respawn to bed if player have one. (or essential's home)
    And the return of the random spawn point selection :)
     
  9. Offline

    Xarniia

    I tested it with 0.4 and the 0.38 PEX Edition (I'm using PEX), and it dosen't work:
    • without graveyard.respawn permission everyone spawns at the worldspawn (even the ALL group spawns aren't working)
    • with graveyard.respawn permission all spawns are enabled.
    perhaps i have some time to test it with an other permission plugin, in the next days.
     
  10. Offline

    McSpazzy

    @Xarniia I moved to using PermissionsBukkit with the new version.

    @peaced Global random, or per player random?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  11. I dunno what /gy info is supposed to do but it gives out errors, I just typed it after I installed it, I thought it was a cmd list or something...
    error (open)
    13:00:32 [SEVERE] java.lang.NullPointerException
    13:00:32 [SEVERE] at com.McSpazzy.Graveyard.SpawnPoint.SpawnPoint.getClosest(SpawnPoint.java:128)
    13:00:32 [SEVERE] at com.McSpazzy.Graveyard.Commands.GraveyardCommads.onCommand(GraveyardCommads.java:42)
    13:00:32 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    13:00:32 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
    13:00:32 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:358)
    13:00:32 [SEVERE] at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
    13:00:32 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
    13:00:32 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
    13:00:32 [SEVERE] at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    13:00:32 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    13:00:32 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    13:00:32 [SEVERE] at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
    13:00:32 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    13:00:32 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
    13:00:32 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    13:00:32 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    13:00:32 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'gy' in plugin Graveyard v0.4.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:358)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
    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)
    Caused by: java.lang.NullPointerException
    at com.McSpazzy.Graveyard.Commands.GraveyardCommads.onCommand(GraveyardCommads.java:44)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    ... 13 more
    >

    Using RB #1240
     
  12. Offline

    peaced

    Well, previously you had it permission based, it worked fine.

    Another request : could we have a command to reload the spawn points ? (usable from console also)
    May be /gy reloadoints
    I got a python script that generate the spawn points files, i'm gonna use it to move the points every hours or so.
    This will avoid players clustering around it. but still keep enouth spawn points so they respawn in a reasonable range.

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

    McSpazzy

    @peaced
    New version out. With reload command and a couple bug fixes.

    0.4.2 out now...Yes I know 0.4.1 was only released 5 hours ago, but I ended up working on it more than I thought I would.

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

    peaced

    Nice i'll update tonight after work !
    Thanks a bunch

    Dang, cannot use gy reload from console :(
    Is it possible to make it work from console ?

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

    McSpazzy

    @peaced possible yes...but raiding in wow atm...will hve to wait
     
  16. Offline

    peaced

    @McSpazzy Haha, sure mate, there is no rush, you already did a lot.

    @McSpazzy
    Seems that permissions=true get reset to false on plugin load.
    Also, I always respawn at world default spawn point now

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

    McSpazzy

    @peaced I see...perhaps I missed something again. However if I recall I don't think the permissions= does anything at the moment. And everyone, even ops/admins need the permission to use spawn points, so for default you need to add 'graveyard.spawn.all' Or whatever group you set your points to.
     
  18. Offline

    peaced

    Ok thanks for the explanation on skype.
    For others who wonder, spawn points are in 'groups' that have nothing to do with the permission's groups :)
    by default all spawn point are in group 'all', so for player to be able to spawn to them, they need to be given permission graveyard.spawn.all (also graveyard.respawn.closest or random)
    That's a good feature when you know it exist:)
     
  19. Offline

    McSpazzy

    0.4 series is beta now, so mostly will be bug fixes and efficiency improvements. Will make an effort to make setting permissions, groups and whatnot clearer, and try to make the code more efficient. For those of you who have 0.4.2+ and update notifications enabled, you will be able to check for new versions using /gy version, or it will show a message in the startup console/log.

    I will still be taking feature requests for the next major version, however I want to spend some time working on making the code more expandable and reliable. As it has been hacked together piece by piece since the beginning.

    Please please please report all errors to me and how they occurred. @peaced You seem to be one of the more active users, so I am relying on your input. Might even add features you request personally for your help =D
     
  20. Offline

    peaced

    @McSpazzy Roger that, updated to 4.2, perms now correct, working fine so far.
     
  21. Offline

    AgentKid

    Cool plugin. Has lots of potential. Feature request, though:
    • Add command '/gy tp closest' to teleport to the closest point without having to type in the name of the point.
     
  22. Offline

    McSpazzy

    @peaced @Netu @AgentKid

    New version. 0.4.3

    New commands:
    /gy tp random
    /gy tp closest

    New Options:
    Invincibility on respawn. Default 5 seconds, changeable in config. 'graveyard.respawn.invincible'
     
    Netu likes this.
  23. Offline

    peaced

    @McSpazzy
    installed 0.43 , no problems so far.
    Still need to test invicibility, i'll wait till one of my players die and release a Zombie on his face:)
     
  24. Offline

    theflame1901

    Something's wrong, im using RB1185 and Graveyard version 0.4.2. I already set the graveyard, but when i die.. i didnt tp there. Any help plz? :)
     
  25. Offline

    CaptureCraft

    @McSpazzy @theflame1901 I have the same and I am on RB1240. I've even removed all plugins and defaulted to op, still nothing. Any help is greatly appreciated :)
     
  26. Offline

    McSpazzy

    @theflame1901 @CaptureCraft
    Currently permissions are required to operate. I am working on 0.4.4 at the moment. Making the plugin operate without permissions. Will be a day or two.
     
    theflame1901 likes this.
  27. Offline

    1born2kill

    For some reason i cant make this plugin override my other plugins, the other ones are SpawnControl, MultiVerse, urmm i think thats it
     
  28. Offline

    McSpazzy

    @1born2kill SpawnControl is set to highest priority. So it will override Graveyard.
     
  29. Offline

    1born2kill

    Thatttt BLOWSSSSS... lol Dammit.. So How can I do this:

    - New User Spawn Inside a Building
    - New User Died, Goes to graveyard spawn...

    I need a plugin that does my first objective
     
  30. Offline

    peaced

    Essentials do that. it has a conf for spawning new user elsewhere.
    I use it with graveyard, works like a charm
     
  31. Offline

    Ehcko

    It seems that it does not work right, I die but I spawn all the way back at the original spawn point. and I die almost next to the graveyard I set (no where near the original spawn). Also is there a way I could get new players to spawn at one location and then afterwards when ever they die they end up at one of the graveyards?
     

Share This Page