Inactive [MECH] ResidenceHelper - Rent, buy and sell residences with signs [1000]

Discussion in 'Inactive/Unsupported Plugins' started by JustMeFlex, Aug 12, 2011.

  1. Offline

    JustMeFlex

    ResidenceHelper - Rent and sell residences with signs
    Version: v1.03

    ResidenceHelper is based on ResidenceSigns by KarnEdge, but adds a lot more functionality to it. It uses the residenceplugin by bekvon and allows you to sell and rent residences just by creating signs with [rent] or [forsale] in the first line. It automatically updates the signs when users buy or rent home no matter if they use commands, the sign or are forced to because they didn't pay their rent.

    Downloads
    Features

    • Rent and buy residences from Residence by bekvon just by creating signs with [rent] or [forsale] in the first line
    • A config file where users can change all messages send to the players, what they have to write on the first line and other useful things.
    • A [rent] or [forsale] sign placed in a residence already set up for rent or sale, will automatically show the details
    • An h2 database storing all the signs so they can be updated quickly
    • Right clicking a [rent] sign will automatically rent the residence in your name, or stop renting it if you already rent it.
    • When a residence is rented the last line of the sign will change from "[Available]" to the name of the renter
    • When a renter stops renting a residence the sign will automatically change back to "[Available]" no matter how he does it.
    • Right clicking a [forsale] sign will automatically buy the residence in your name
    • When a residence is bought no matter if it's through a command or the sign, the first line of the sign will change to "[SOLD]" and the last line will change from "[Available]" to the name of the buyer
    • Destroy a [rent] or [forsale] sign and the residence will automatically stop being for sale or rent
    • It even allows you to prevent [rent] or [forsale] signs from getting destroyed if the player destroying them isn't the owner of the Residence
    • A french translation http://pastebin.com/Nxp6qPmk thanks to Swadon
    Planned features
    • Make it autoupdating
    • Adding a command to update all signs
    • Make it look for the residence.resadmin permission
    • Mysql support
    Known bugs
    • Doesn't work without iconomy, I have no idea why this happens but I am looking into it
    • Some times when putting a residence for rent it will show 0/0d on the sign. This can be fixed by renting and unrenting the residence again afterwards in most cases. If not you will have to turn on "update signs on startup" in the config and restart the server
    Changelog
    Version 1.04
    • Renamed to "ResidenceHelper", because someone found the other name misleading.
    Version 1.03
    • Fixed a strange bug that would prevent the plugin from enabling
    Older versions
    Show Spoiler
    Version 1.02
    • Fixed a bug where buying a residence would change all [ForSale] signs to [SOLD] no matter if they where related or not
    Version 1.01
    • Initial release


    Installation
    Show Spoiler

    Download the zip file and extract it in your plugins folder. You will also need h2.jar in order for the database system to work, it will automatically download h2.jar, but you will need to restart the server after that. You can manually install it by downloading it here, and putting it into the lib folder of you bukkit server.


    Sign setup
    By default you will have to create a sign with [forsale] in the first line to setup a sell sign. If the residence isn't already set up to be sold using commands you will have to enter the price in the second line of the sign. If it is, it will automatically get the data from the residence

    To set up a rent sign you will have to wire [rent] in the first line of the sign by default but it can be changed. If the residence isn't already set up for rent you will have to enter in the price and the number of days to buy at once separated by a slash in the second line of the sign. For example "100/10" to make users pay 100 of your ingame currency to rent the residence for ten days
     
  2. Offline

    chernobyl360

    please use dropbox.com

    its more " trusted" in the community :D
     
  3. Offline

    JustMeFlex

    Done
     
  4. Offline

    Swadon

    I get a 403 Error when I try to download it.

    Fix it please :)

    Thank you.


    Swadon.
     
  5. Offline

    JustMeFlex

    That seems pretty strange. I've put my file in the public directory and copied the public link
    Well, I'll just add the old megaupload link again then.
     
  6. Offline

    Swadon

    Thank you :) I'll be able to test the plugin ^^

    Edit : Dropbox work again lol

    Hm another problem x)

    I've this error when I start my server :
    My config.yml :
    http://pastebin.com/8d4F7HXk
     
  7. Offline

    JustMeFlex

    Do you have the actual Residence mod by Bekvon?
     
  8. Offline

    Swadon

    Yes, Residence 2.3.7, look my server.log :
    http://pastebin.com/n4zXfDGt
     
  9. Offline

    JustMeFlex

    I managed to replicate it, strange it must be in the newest update.
    I don't know what it was, but it should be fixed now
     
  10. Offline

    Swadon

    I will try to test, thank you :)

    Edit : It work ! :) One question : All my lands are "Server Land", and therefore I can not sell lands because I'm not the owner of lands xD. It say : "You aren't the current owner of this residence". How can I fix it ?

    PS : Sorry if I bother you lol.
     
  11. Offline

    JustMeFlex

    Well, my plugin can't do anything about it since residence itself doesn't allow selling lots that you don't own.
    You can try giving yourself the resadmin permission and sell it using commands or sell through the console of the server using commands.

    I'll add checking for the resadmin permission to my todo list
     
  12. Offline

    Swadon

    Oh okay, thank you ^^.

    French Translation if you want : http://pastebin.com/Nxp6qPmk
     
  13. Offline

    Cactus_Master

    Do I have to set up an h2 database for this to work? Because even though it downloaded and installed h2.jar, it disabled itself.
    (I usually use MySQL, so if I said something wrong about h2 above, sorry bout that).
     
  14. Offline

    Kalais

    Sounds great. Can you please make it compatible with WorldGuard?
     
  15. Offline

    JustMeFlex

    No, I don't think that worldguard has a rent/sell api. I don't think it has a dev api at all. I could fork it, but that'd be too much work for me
     
  16. Offline

    Kalais

    Mind sharing the source?
    Edit: Found it. :)
     
  17. Offline

    Asphodan

    @JustMeFlex

    Works great, save for that when you sell a Subzone with it, it claims that the person has bought the whole Residence.

    It sells the subzone, as intended, without selling the main Residence. But it is a cause for confusion.
     
  18. Offline

    JustMeFlex

    I never used subzones with Residence, but I can look into it. Do how does it claim the person bought the whole residence. The residence name on the sign? Or the message you get when right clicking it?
     
  19. Offline

    Asphodan

    @JustMeFlex

    The message and the residence name.

    It succeeds at selling the Subzone, which (i thought) was the intent. And is certainly why I got it. Hope this is an easy fix. =)
     
  20. Offline

    lastof

    I'm having the same issue as @Cactus_Master. h2.jar is in the lib folder, but for some reason it isn't being loaded. You aren't relying on platform specific file delimiters are you? Or more likely it's my fault for running a non-recommended build of bukkit (#1046)
    Below is the error I was given.
    Show Spoiler
    05:34:01 [INFO] [RecidenceSigns 2.0] Loading Config File...
    05:34:01 [SEVERE] null
    java.lang.ClassNotFoundException: org.h2.Driver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:186)
    at Flex.ResidenceSigns2.SignDatabaseHandler.initialize(SignDatabaseHandler.java:43)
    at Flex.ResidenceSigns2.ResidenceSigns2.onEnable(ResidenceSigns2.java:121)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:164)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:148)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:286)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:273)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:149)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:337)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    05:34:01 [INFO] [ResidenceSigns 2.0] Disabled
     
  21. Offline

    JustMeFlex

    No, I am not. I am using File.seperator and i believe that's the one I should be using.
    I have only tested against build 1000 so I can't say if it has anything to do with it. Try deleting the file and letting it download for itself. I'll add mysql support to my todo list

    I don't think I can do much about your problem @Asphodan. The message is sent by residence itself, but I'll look into it. Maybe there is a way to get a specific subzone
     
  22. Offline

    mahari3

    what are the nodes?
     
  23. Offline

    TomR459

    What about iconomy?
     
  24. Offline

    JustMeFlex

    No permission yet, but it uses the residence api so if you don't have permission to do it in residence you don't have permission here. It works fine with iconomy, once again residence is handling that I only provide an easier way for users to access it
     
  25. Offline

    Asphodan

    @JustMeFlex

    Any word on if there will be subzone support? I mean, it already does sell the lowest-level Zone. (So the "main" city can sell lots with this sign, and be fine). But I'm not sure if that's unintended and you plan to fix it to sell the main residence that the subzone is inside, or what.
     
  26. Offline

    JustMeFlex

    I don't really have that much time now so I can't look at it properly, but it is only supposed to sell the area the sign is placed in. It get's the name from residence but I'll look into a way to find sub-zone names. I also think I'll add an option to write the residence name on the sign so you can sell residences away from where the sign is placed, but it will be a bit into the future.
     
  27. Offline

    evotech229

    something is very wrong :(

    When i put a [forsale] sign on my residence (house) everything works fine (the text changes color on the sign and it says avalible and all that) but when someone comes to buy it it just says "invalid residence.." in the chat :(

    please help! :(

    Edit: Now the signs just tells me to but the price in the second line but i already did :s
     
  28. Offline

    JustMeFlex

    @evotech229
    Errm, any errors in the console? It might be a compatibility issue. I can't really say much else than that
     
  29. Offline

    Cactus_Master

    It gives me this error:
    Show Spoiler

    INFO] [RecidenceSigns 2.0] Loading Config File...
    2011-08-16 11:08:37 [SEVERE] null
    java.lang.ClassNotFoundException: org.h2.Driver
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at Flex.ResidenceSigns2.SignDatabaseHandler.initialize(SignDatabaseHandler.java:43)
    at Flex.ResidenceSigns2.ResidenceSigns2.onEnable(ResidenceSigns2.java:121)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-08-16 11:08:37 [INFO] [ResidenceSigns 2.0] Disabled
     
  30. Offline

    evotech229

    it was a permissions bug.. but thanks anyway, i fixed it :)
     

Share This Page