[INACTIVE][TP][MECH]Waypoints v0.3.1 - Multiple respawn points after death [670]

Discussion in 'Inactive/Unsupported Plugins' started by Endain, Mar 25, 2011.

  1. Offline

    Endain

    [​IMG]
    (Download)
    <font color="rgb(0, 204, 255)"><Edit by Moderator: Redacted mediafire url>
    <font color="rgb(0, 0, 0)">(Source)</font>
    <font color="rgb(0, 204, 255)">Github</font>
    <font color="rgb(0, 204, 255)"><font color="rgb(192, 192, 192)">Not current at the moment</font></font>

    <font color="rgb(255, 0, 0)">Update to version 0.3.1 is required!</font>
    <font color="rgb(51, 51, 51)">Update from version 0.2.x -> 0.3.0 is required!</font>
    <font color="rgb(128, 128, 128)">Update from version 0.2.6 -> 0.2.7 is recommended!*</font>
    <font color="rgb(153, 153, 153)">Update from version 0.2.5 -> 0.2.6 is required!</font>

    <font color="rgb(0, 0, 0)">There are no special update procedures when updating to v0.3.1. </font><font color="rgb(255, 0, 0)">Back-up your save data to be on the safe side!</font>

    Show Spoiler
    <font color="rgb(153, 153, 153)">There are no special update procedures when updating to v0.3.0, the plugin will automatically convert your save data to the new format and add the config options!</font> <font color="rgb(255, 0, 0)">Back-up your save data to be on the safe side!</font>

    <font color="rgb(153, 153, 153)">*If updating to v0.2.7 you MUST add the property 'allow-unbind' to config.txt! You can also just delete the config.txt and reconfigure it when the plugin generates a new one! Waypoint save data will not be effected.</font>


    The Waypoints plugin is designed to change the default respawn mechanic of Minecraft. Instead of respawning at a single defined world spawn there can be multiple 'Waypoints' at which players can respawn. If players have not been bound to a Waypoint, they will still respawn at the normal server spawn.

    Features at a glance:
    * Multiple respawn points
    * Multiworld support
    * Easily and dynamically configurable
    * Drag & Drop functionality (Flatfile data saving)
    * GroupManager Support (Not required)

    Future outlook:
    * Add ability to set config options via command in-game
    * Ability to spawn points with specified save/protect radius
    * Ability to change save/protect radius of current points
    * <font color="rgb(153, 153, 153)">Option for health regen to players in protected zones</font> (Added!)
    * Command to teleport (all) players back to their Waypoint
    * POSSIBLY: Charge fee to bind to Waypoint. (iConomy?)
    * POSSIBLY: Make points capturable (KOTH style?)

    Developer: Endain
    Idea: xian (<font color="rgb(0, 102, 204)">Request thread</font>) - Thanks!
    Tester: Hansel2411 - Thanks!

    How it works:
    Server admins have the ability to spawn 'Waypoints' at (almost) any point in any world in their server. Players can then 'bind' themselves to these Waypoints and respawn at these points when they die, instead of the global spawn points.

    Every Waypoint is denoted in the world by a column of bedrock surrounded by a ring of glowstone to make it easily visible and distinguishable. Every Waypoint has two 'zones' centered around it, a 'save-zone' and a 'protection-zone'. The sizes of these zones are defined in a config file that the plugin auto-generates and are shaped as cubes, not spheres. A player must be inside a a 'save-zone' to bind themselves to the Waypoint; the plugin may be configured to automatically bind players to the Waypoint when they enter it's 'save-zone'. The 'protection-zone' defines the area around the Waypoint in which no blocks can be damaged; the plugin can be configured to allow or prevent players from damaging each other within the 'protection-zone'.

    How to install:
    (First time installer) Unzip the file downloaded from MediaFire. Briefly look over the included README file. Copy the 'Waypoints.jar' file and the 'Waypoints' folder into the plugin folder in your main Bukkit directory. Look over 'config.txt' in the 'Waypoints' folder and configure the plugin as you wish!
    (Updating old install) Same as a first time install! With the code refactoring the plugin will now automatically convert old save files and add new config options!

    Commands:
    /wpbind (Usable by any player)
    - Binds the player who typed the command to the Waypoint they are near. (They must be
    within the Waypoint's save-zone) If the plugin is configured to autosave when the player
    enters a save-zone then this command is not used.

    /wpunbind or /wpfree (Usable by any player - if enabled)
    - Unbinds the calling player from any Waypoint they are bound to. You do not NEED to
    use this command before binding to a different Waypoint. This is more to allow you to cut
    ties with all Waypoints so if you die you go to the world spawn. Can be disabled in config.txt.

    /wpadd (Usable by OP's – permission: waypoints.addpoint)
    - Creates a new Waypoint where the calling player stands. Must be added in a relatively open
    area and it's zones cannot intersect any other zones.

    /wpdel (Usable by OP's – permission: waypoints.delpoint)
    - Removes the Waypoint associated with the 'save-zone' or 'protection-zone' that the calling
    player is standing inside of.

    /wpsave (Usable by OP's/Server Console – permission: waypoints.savepoint)
    - Forces all relevant data to be written to the disk.

    <font color="rgb(51, 51, 51)">/wpclean (Usable by OP's – permission: waypoints.cleanpoint)</font>
    <font color="rgb(255, 0, 0)">- Known to be bugged in v0.3.1, I won't have time to fix it for a while</font>
    - Removes any berock in a radius of length 'save-radius' around the caller that does not belong to a working Waypoint.

    Please read the README packaged with the plugin if you need more detail.


    Known Issues:
    Version 0.3.1
    * /wpclean command removes bedrock from valid Waypoints

    Changelog:
    Version 0.3.1
    * Removed (hopefully) all the left over debugging code causing 0.3.0 to fail.
    * Added config option for HP regen in protected zones. (hp-regen=1)
    * Random minor code fixes.
    * Should work with CB 670.

    Version 0.3.0
    * Completed (mostly) a massive code refactoring! Almost everything was re-written.
    * Added config option for true multiworld support. (seperate-worlds=true)
    * Added config option to limit Waypoint use to OPs or players with permission. (limit-use=true)
    * Changes to config.txt during runtime are now detected and changed in-game.
    * New data save format for points, old save files automatically converted.
    * Now verified as working with Minecraft 1.4 and CB 617.
    * Lots of other things I can't remeber and aren't worth noting anyways.


    Show Spoiler
    Version 0.2.7
    * Added command to 'unbind' player from a Waypoint (see /wpunbind for details)
    * Changed how the plugin reacts when confix.txt is loaded with errors.
    * Download now packaged with default files the plugin would generate on first run.
    * Possibly fixed a bug using /wpbind? Not sure if it was there before or not.. OK now.

    Version 0.2.6
    * Fixed player data saving that only saved 1 player instead of all.
    * Various code tweaks, no functional changes.
    * Added protection against creeper explosions in 'protected regions'.

    Version 0.2.5
    * Initial public release.


    Version Archive Downloads:
    <Edit by Moderator: Redacted mediafire url>
    <Edit by Moderator: Redacted mediafire url>
    <font color="rgb(153, 153, 153)">Version 0.2.8 - 0.2.9 (Unrealeased, builds from between code refactoring)</font>
    <Edit by Moderator: Redacted mediafire url>
    <Edit by Moderator: Redacted mediafire url>
    <Edit by Moderator: Redacted mediafire url>

    - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    Feedback and comments are appreciated! First public plugin, hope it works out well! Enjoy!

    If you REALLY like the plugin for some reason, feel free to buy me a burger, we have Whopper Wednesday's here on campus!
    [​IMG]

    - Endain
     
    Last edited by a moderator: Dec 14, 2016
  2. Offline

    xian

    awesome plugin! we got it on our PvP-server now and the new factions are sattling near thoose waypoints :)
    of course there are more ways to let players save their spawns, but awesome feature here is, that admins are able to choose the amount of spawners, have a little more influence on where people are building and also in a factions-war there isnt the problem of infinite defenders respawning inside the walls :)

    [​IMG]

    again - a big thanks for developing it! i am sure other people will also like it.
     
  3. Offline

    Endain

    Thanks for the support xian!

    Also, there is a known bug with data saving in v0.2.5, I have to go out for a while so it will be some time before I can track down the bug. From what I'm told everything works fine until the server is restarted, then all but 1 player loses their association with their Waypoint. Will fix ASAP!

    - Endain

    Fixed saving bug, tweaked and added a few things. Now version 0.2.6; if you downloaded version 0.2.5 you must update to fix the saving bug. See OP for details!

    - Endain

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

    xian

    thx. everyone works perfect now! :)
     
  5. Offline

    Endain

    Plugin updated to v0.2.7, added a command to 'unbind' players from Waypoints. See OP for more details on what it's useful for. This option is also togglable in config.txt.

    If updating to v0.2.7 you MUST add the property 'allow-unbind' to config.txt! (Ex: allow-unbind=true)


    You can also just delete the config.txt and reconfigure it when the plugin generates a new one! Waypoint save data will not be effected.

    See OP for details if needed.

    - Endain
     
  6. Offline

    Graham

  7. Offline

    Jelle

    Does it support multiworld? (Plugin: MultiVerse)
     
  8. Offline

    Endain

    ? ... thanks for your input?

    Sort of though I haven't been able to test it with multiple worlds. I'm not sure it would support it in the way you are intending, it does not save a whole new set of Waypoints per world, rather it just saves the world with the Waypoint. Like if you travel to world B and bind to a Waypoint there then travel back to world A and die, you should respawn at the point in world B.

    Do you need it to have a seperate Waypoint in each world?

    - Endain
     
  9. Offline

    Jelle

    Yes, because i got pretty much worlds, and i want to use this for normal play and arena/jump as well, so that's why i need it multiworld support :)
     
  10. Offline

    Endain

    Alrighty, I'll look into it. I want to refactor the code anyways. Not sure how long it will take me, hopefully I'll get it done by the weekend!

    - Endain
     
  11. Offline

    anonymous

    PLEASE add a permisions node to all commands. I want this to be a donator only feature, but everyonecan use it :(
     
  12. Offline

    Endain

    Will do for next release!

    Trying to finish refactoring and get it tested with Minecraft 1.4 ASAP!

    - Endain
     
  13. Offline

    EniGmA1987

    Thanks for your work with getting this working in Minecraft 1.4 :)


    I dont know a lot about plugin coding, but here is a suggestion for how multiworld support *could* work:

    When a waypoint is created, it saves the data for which world it is in.
    When a player is bound to a waypoint and dies, there is a check done to see if that player has a bind point set, and if that player has a bind point, it does a check against what world the player is in, and what world the bind point data is from. If the world = different, then respawn at current world's default spawn.

    Or you could get really fancy and if the world is different, do a check for the closest waypoint to the players current coordinates and respawn to that nearest point.



    I dont care if any of that is actually done or not, it is just random stuff I am thinking up as I type. I mostly just want the plugin updated for v1.4 and to have some sort of working multiworld support.
     
  14. Offline

    thyrfa

    Can you make a way for waypoints to be claimed? Like, only people from that group can use it. That way, factions can battle over strategic areas to get good respawn points. Would be useful for my server.
     
  15. Offline

    Endain

    Possibly, I will look into a 'KOTH' type system to make Waypoints capturable. This will take a while tho, the next 5 days or so are like a week from hell in terms of school. I'm just gonna crank out a bare working version with the new code then take the weekend to do homework.
     
  16. Offline

    EniGmA1987

    Thanks for your working getting this to run properly in Minecraft 1.4 - CB build 617 :) And good luck with your school!
     
  17. Offline

    zorphon

    As long as there is a working version soon, I found a replacement for this but have to get rid of the my waypoint/bedrock somehow.
     
  18. Offline

    thyrfa

    So....Whens the rewrite gonna be done?
     
  19. Offline

    Endain

    I'm so sorry it took me so long to get the plugin updated! I got stuck on a single bug for almost all of Saturday, and I couldn't release it with the bug since it would have for sure messed up everyone's save data. I certainly picked a bad time to essentially redo the code ... I should have anticipated the Minecraft update and my homework.

    But anyways, version 0.3.0 is now up for download in the OP. I *think* I got all the fatal bugs worked out of it, there are a few known issues that are stated. Unless there are any really bad bugs discovered I wont have time to touch this again until after this next Tuesday. Here's a copy of the changelog and also a copy of what I plan to start working on later this week:

    Changelog:
    Version 0.3.0
    • Completed (mostly) a massive code refactoring! Almost everything was re-written.
    • Added config option for true multiworld support. (seperate-worlds=true)
    • Added config option to limit Waypoint use to OPs or players with permission. (limit-use=true)
    • Changes to config.txt during runtime are now detected and changed in-game.
    • New data save format for points, old save files automatically converted.
    • Now verified as working with Minecraft 1.4 and CB 617.
    • Lots of other things I can't remeber and aren't worth noting anyways.
    Future outlook:
    • Add ability to set config options via command in-game
    • Ability to spawn points with specified save/protect radius
    • Ability to change save/protect radius of current points
    • Option for health regeneration for players in protected zones
    • Command to teleport (all) players back to their Waypoint
    • POSSIBLY: Charge fee to bind to Waypoint. (iConomy?)
    • POSSIBLY: Make points capturable (KOTH style?)
    Please let me know if you find bugs or notice any performance issues ... I'm curious to see if some of the changes I made affect performance in any way.

    Apologies again for the long wait. :(

    - Endain
     
  20. Offline

    thyrfa

    woot! thanks

    WAYPOINTS(v0.3.0): Unable to parse waypoint data file!
    WAYPOINTS(v0.3.0): The plugin will be disabled!
    Getting this. Help?

    Edit: now getting this instead after a fresh reinstall
    WAYPOINTS(v0.3.0): Unable to parse playerpoint data file!
    WAYPOINTS(v0.3.0): The plugin will be disabled!

    Havent made ANY changes to that, still in the default state with everything in comments.

    Edit2:
    Just tried it completely blank too, nothing even in comments. Still not working.

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

    EniGmA1987

    I am getting this as well:

    I know your busy and wont be able to get to it, but just letting you know. This plugin seems amazing though so I hope you can get it working sometime soon :) Ill be sure and donate some money once it is all working well
     
  22. Offline

    thyrfa

    Please do fix this, my server is broken till your plugin works :( Love you <3!
     
  23. Offline

    Endain

    Just looking at the code on the bus now.. I already see some debugging code I forgot to take out that had some hard coded map names that would be throwing those errors.. Unless your main world is named 'temp' lol. Will start fixing this up when I get home, no more evil Stats test or homework eating up my time anymore!

    - Endain
     
  24. Offline

    thyrfa

    Woot!
     
  25. Offline

    riuthamus

    This is amazing, i just posted looking for a graveyard plugin and then somebody linked me to this, only prob is it doesnt work with the most recent build of craftbukkit, 652. Any chance we could get it recompiled?
     
  26. Offline

    xian

    he is already fixin' it afaik :) we're waiting for the patch too.. gonna go public with our server, when its done. (cant wait much longer!! :D)
     
  27. Offline

    riuthamus

    If he is reDoing it can we get boseconomy support as well?
     
  28. YES! This is exactly what I was looking for! I support this! :D
    Just tested it on 617 and it doesn't seem to work. I can't wait for it to work though! :) Keep up the good work.

    Small section of Error log:
    Code:
    2011-04-07 17:03:05 [SEVERE] java.lang.NullPointerException
    2011-04-07 17:03:05 [SEVERE]     at com.Endain.Waypoints.Managers.DataManager.load(DataManager.java:171)
    2011-04-07 17:03:05 [SEVERE]     at com.Endain.Waypoints.Waypoints.onEnable(Waypoints.java:86)
    2011-04-07 17:03:05 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
    2011-04-07 17:03:05 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:514)
    2011-04-07 17:03:05 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
    2011-04-07 17:03:05 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:94)
    2011-04-07 17:03:05 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:72)
    2011-04-07 17:03:05 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
    2011-04-07 17:03:05 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
    2011-04-07 17:03:05 [SEVERE]     at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
    2011-04-07 17:03:05 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
    2011-04-07 17:03:05 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2011-04-07 17:03:05 [INFO] [WAYPOINTS(v0.3.0)] Unable to parse playerpoint data file!
    2011-04-07 17:03:05 [INFO] [WAYPOINTS(v0.3.0)] The plugin will be disabled!
    2011-04-07 17:03:05 [INFO] [WAYPOINTS(v0.3.0)] Realms: 1
    2011-04-07 17:03:05 [INFO] [WAYPOINTS(v0.3.0)] Points: 0
    2011-04-07 17:03:05 [INFO] [WAYPOINTS(v0.3.0)] DISABLED!
     
    2011-04-07 17:03:05 [SEVERE] Could not pass event PLUGIN_ENABLE to Waypoints
    java.lang.NullPointerException
        at com.Endain.Waypoints.WaypointsServerListener.onPluginEnable(WaypointsServerListener.java:16)
        at org.bukkit.plugin.java.JavaPluginLoader$31.execute(JavaPluginLoader.java:353)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:515)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:94)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:72)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    I'm using Windows Vista 32bit, Bukkit 617 and a lot of other plugins. If you would like a list of them just let me know.
     
  29. Offline

    EniGmA1987

    New recommended build, #670. Hopefully once your done with the entire recode it will still be working on the new build :)
     
  30. Offline

    Endain

    I'm terribly sorry guys. This week is just one curve-ball after another. I finally had time to just do some quick and dirty fixes. I still have more work to do, there are some parts of the plugin that I need to re-investigate but for now I think *fingers crossed* that I fixed up the bugs from v0.3.0, at least the ones rendering it unusable. Also, I couldn't bring myself to release an update without adding at least one new thing, so I added an option to make the protection zone have an hp-regen effect. Right now the property entry takes any number and adds that number to the players health every 5 seconds. If you want no regen effect, just set it to 0 (it defaults to 1). If you want to damage the player for some reason you could even make it negative. Maybe in the future I will also add a config option for controling the frequencey as well..

    Anyways, I'm terribly sorry it's taking me so long to get this thing fixed and properly updated. Thanks a bunch for sticking with me!

    What ideas do you have for integrating some economy system into this plugin? A fee for binding like I mentioned?

    - Endain

    EDIT: Also, this update should work with CB 617 and 670.
     

Share This Page