[TP] HomeSweetHome v0.8.3 - Multiworld player homes with Permissions/iConomy5 [766]

Discussion in 'Inactive/Unsupported Plugins' started by netslug, Apr 16, 2011.

  1. Offline

    netslug

    HomeSweetHomev0.8.3
    Download: [JAR] [ZIP] [Source]
    HomeSweetHome is an advanced player home plugin for CraftBukkit that aims at allowing the most customization possible to let server administrators have full control on how they want the plugin to function.

    Note: Version 0.8.3 has made some minor changes to the config.yml. You can compare your current one to the new one below:

    config.yml (open)

    # Set below to true if you do not have Permissions installed and you
    # want the command to be for OP use only.
    op-only: true

    # Set below to the amount of iConomy currency you want each command
    # to cost. Since HomeSweetHome is now using iConomy v5, you can set
    # this to a double value. For example, a value of 10.50 would equal
    # 10 dollars and 50 coins.
    ic-cost-home: 10.50
    ic-cost-homeset: 50

    # Set below to true if you would like to let your players set their
    # home by right-clicking on a bed.
    use-beds: true

    # Set below the number of seconds you with players to wait before
    # using the '/home set' command again. 10 is a safe number if you
    # use MySQL. This also applies to beds.
    delay-command: 10

    # Set below the number of seconds players must wait before being
    # teleported after using the /home command.
    delay-home: 3

    # You can change the default messages below. These messages support
    # following color codes:
    #
    # `c - Red
    # `4 - Dark Red
    # `e - Yellow
    # `6 - Gold
    # `a - Green
    # `2 - Dark Green
    # `b - Aqua
    # `3 - Dark Aqua
    # `9 - Blue
    # `1 - Dark Blue
    # `d - Light Purple
    # `5 - Dark Purple
    # `0 - Black
    # `8 - Dark Gray
    # `7 - Gray
    # `f - White

    # Sent to the player when setting home.
    # You can use %world% to specify which world the home has been set in.
    msg-set: "`6Your home in '%world%' has been set to this location!"

    # Sent to the player if home hasn't been set yet.
    # You can use %world% to specify which world the home hasn't been set in.
    msg-notset: "`6Your home hasn't been set in '%world%' yet! Use `b/home set `6to fix that!"

    # Sent to the player if home is being set by right-clicking a bed.
    # You can use %world% to specify which world the bed was set home to.
    msg-bed: "`6Your home in '%world%' has been set to this bed!"

    # Sent to the player if you have set a delay on the home command greater than 0 seconds.
    # You can use %seconds% in the message to specify how many seconds it will take.
    msg-seconds: "`6You will be taken to your home in %seconds% seconds!"

    # Sent to the player if they failed any internal permissions check.
    msg-perm: "`cYou do not have permission to do that!"

    # Sent to the player if any subcommand is invalid.
    msg-invalid: "`cInvalid command!"

    # Send to the player if they try to use the command during their cooldown.
    msg-delay: "`cYou can't do that yet!"

    # Sent to the player if you are using iConomy and they cannot afford the command.
    msg-afford: "`cYou don't have that much money on hand!"

    # Sent to the player if you are using iConomy and currency is subtracted from their account.
    # Use %cost% inside the string to replace it with the number of coins.
    msg-cost: "`6%cost% has been removed from your holdings."


    Also, HomeSweetHome now utilizes iConomy v5! iConomy is not needed to use HomeSweetHome, but if you use iConomy please be sure to upgrade it to version 5 or you will get Java errors.

    Third-Party Plugin Support:
    Features:
    • Multi-world support!
    • Permissions nodes that give you control over who gets to use the commands.
    • OP-only support if Permissions plugin is not found.
    • Saves player home location to an easy-to-modify text file.
    • Allow players to set home by right-clicking a bed.
    • Customizable messages that are sent to the player.
    • Delays that prevent griefers from constantly right-clicking on beds or typing /home set.
    • Delays to /home that make the player wait a specified amount of seconds before the plugin teleports them.
    • Basic iConomy support. Charge your players to use /home and /home set!
    Commands:
    • /home - Teleports you to your set home location in whichever world you are currently in.
    • /home <world> - Teleports you to your set home in <world>.
    • /home <set> - Sets your home to your current location in the current world.
    Permissions:
    • homesweethome.home - Allows the use of the /home command.
    • homesweethome.home.set - Allows the use of the /homeset command.
    • homesweethome.home.bed - Allows players to set their home by right-clicking on a bed.
    Changelog (open)

    v0.8.3 (May 04, 2011)
    • Updated iConomy support for version 5. Anything under that version will no longer work. This encourages people to stay up to date with other plugins, and the fact that iConomy 5 is awesome.
    • Fixed a couple of instances where '%world%' in config.yml was not being replaced like it should have been.
    • Created a ServerListener class for supported plugins.
    v0.8.2 (May 01, 2011)
    • Added a new player notification that tells them how long it will be before they are teleported to the home.
    • Fixed the location that was set when right-clicking a bed. You will now be teleported on top of it.
    v0.8.1 (April 29, 2011)
    • Fixed a bug that caused player homes to be lost during a server restart.
    v0.8 (April 28, 2011)
    • Added multi-world support.
    • Rewrite the IO system to be much more effecient.
    • Fixed a ton of potential NPEs.
    • Removed MySQL support temporarily.
    • Fixed a color code error where the same code was being used twice.
    v0.7 (April 26, 2011)
    • Added delay functionality to /home command.
    • Added basic iConomy support.
    v0.6 (April 26, 2011)
    • Added command delays to prevent griefing.
    • Cleaned up the code and checked stability against RB 733.
    • Changed /homeset command to /home set.
    v0.5 (April 21, 2011)
    • Added customizable messages into config.yml.
    • Added an option to enable/disable the bed home feature in config.yml.
    v0.4 (April 20, 2011)
    • Added the ability (and permissions node) to allow players to set their home by clicking on a bed.
    • Changed permissions node for /home set from 'homesweethome.homeset' to 'homesweethome.home.set' for uniformity purposes.
    v0.3 (April 18, 2011)
    • Added MySQL support.
    v0.2 (April 18, 2011)
    • Replaced SnakeYAML with Bukkit's integrated Configuration class.
    • 'op-only' within the config.yml can now be used to set permissions to OP-only if Permissions is not found.
    • Changed deprecated player.teleportTo(loc) to player.teleport(loc).
    v0.1 (April 16, 2011)
    • Initial plugin release.

    Bugs (open)

    • No known problems with CraftBukkit [740] or third-party plugin support.
     
  2. Offline

    werwew19

    looking good nice job i will probably use it in the future
     
  3. Offline

    jamescosten

    love it thank you, no i can have a door less, window less home and noone will steal all my lovely diamonds :)
     
  4. Offline

    netslug

    updated to v0.2 with some new functionality! more to come!
     
  5. Offline

    Tekhawk

    Are you planning to add bed based sethome?
     
  6. Offline

    netslug

    That is definitely a possibility! Plugin is still really new so I am just trying to get the most-wanted functionality written and released as soon as possible. However, you could just stand on top of your bed and type /homeset for now until something like that is implemented :)
     
  7. Offline

    Tekhawk

    haha Yea I'm just looking to get rid of essentials at the moment and do not want my users to have a sethome command it can be exploited to easy
     
  8. Offline

    netslug

    I can definitely see your problem. I'll move that up in the todo and will try to get something pushed out tomorrow.
     
  9. Offline

    Tekhawk

    :p You might have just saved me from making my self haha
     
  10. Offline

    svict4

    nice work ^_^ but what about HomeX which already offers exactly this?
     
  11. Offline

    netslug

    It's still a brand new plugin, which means I will be adding my own special touches to it in the future which will hopefully out-do the competition :). And thanks!
     
  12. Offline

    lolligertyp

    Can you add multiworld support? So that I can set in world1 a home and in world2?
     
  13. Offline

    netslug

    Updated to v0.3! Now has MySQL support!

    Definitely in the list of things to do!
     
    lolligertyp likes this.
  14. Offline

    Tekhawk

    Like the MySQL support iConomy might be something to consider as well
     
  15. Offline

    netslug

    You know, I considered adding iConomy support in but I keep on thinking of plugins like Command iConomy that saves me time. Not sure if I should rely on third-party plugins to integrate that type of stuff but I am sure you can get what I mean. I might throw it in as an optional feature but it's not very high on my todo list right now.
     
  16. Offline

    Tekhawk

    Going to take a look at command iconomy that sounds like it could be useful haha

    I'm using warpzorz or something like that at the moment just because if the iConomy warp and setting prices figuring making people sethome cost money is one way to prevent it from being abused till there is a bed based plugin other than essentials
     
  17. Offline

    netslug

    Come to think of it Tekhawk, expect iConomy support in the future :) .. I don't want to put my trust into plugins that are plugins for another plugin, ya know? LOL
     
  18. Offline

    Tekhawk

    haha yea I was just looking at that and was like hmm... idk if this will stop people that dont have enough money lol

    Edit:

    your wiki link seems down and if you need any help with MySQL let me know little learning java but MySQL and me are old friends
     
  19. Offline

    netslug

    Oops yeah I took it off Github temporarily and forgot to add the SQL table structure here. Thanks for reminding me!
     
  20. Offline

    netslug

    Updated to 0.4! Now has the ability and permissions node to allow players to set their home by right-clicking on a bed!

     
  21. Offline

    netslug

    Updated to v0.5 with customizable messages in config.yml! :cool:
     
  22. Offline

    Tekhawk

    woot woot
     
  23. Offline

    cholo71796

    How about a one-home-per-world setting? It would make it more like the two worlds were different servers and separation would work better. That would be awesome.
     
  24. Offline

    netslug

    That is definitely in the todo. Still trying to think of a way I can incorporate this without requiring lots of work from people upgrading from past versions.
     
  25. Offline

    cholo71796

    Awesome. Can't wait.
     
  26. Offline

    netslug

    Upgraded to 0.6 with command delays and 733 compatibility! iConomy/BOSEconomy support coming soon!
     
  27. Offline

    drewster300

    I love this plugin!
    I can't wait for you to be able to have multiple homes though, it'd be nice to have.
    For the command for it, I think you should say something like "/home2" and "/homeset2"
     
  28. Offline

    netslug

    Multiple world homes is definitely something I am doing with next release. Stay tuned!

    Also, version 0.7 released with basic iConomy support!
     
  29. Offline

    Jeppe

    Hey, great plugin :) I just got 2 errors in my server log with it :/


    The first one is when i type /home set

    Code:
    19:54:25 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'home
    ' in plugin HomeSweetHome v0.7
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85
    )
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    55)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:675)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:638)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:632)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NullPointerException
            at org.netslug.homesweethome.HomeSweetHome.replaceColors(HomeSweetHome.j
    ava:391)
            at org.netslug.homesweethome.HomeSweetHome.sendMessage(HomeSweetHome.jav
    a:402)
            at org.netslug.homesweethome.HomeSweetHome.onCommand(HomeSweetHome.java:
    440)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    >
    the second one is when i right click a bed:

    Code:
    19:55:42 [SEVERE] Could not pass event PLAYER_INTERACT to HomeSweetHome
    java.lang.NullPointerException
            at org.netslug.homesweethome.HomeSweetHome.replaceColors(HomeSweetHome.j
    ava:391)
            at org.netslug.homesweethome.HomeSweetHome.sendMessage(HomeSweetHome.jav
    a:402)
            at org.netslug.homesweethome.HomeSweetHome.addPlayerFromBed(HomeSweetHom
    e.java:361)
            at org.netslug.homesweethome.HomeSweetHomePlayerListener.onPlayerInterac
    t(HomeSweetHomePlayerListener.java:46)
            at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.ja
    va:254)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:257)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:162)
            at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:207)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:519)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    >
     
  30. Offline

    netslug

    Would you mind posting the custom message settings you have in config.yml?

    Also, I cleaned up the code last night and repackaged the Jar and Zip, thus making the line numbers you posted above obsolete. If you could, download the new Jar and see if you get those same errors?
     

Share This Page