Inactive [MECH] ResidenceSigns v1.0 - Use signs to Rent/Buy/Sell land with Residence [1060]

Discussion in 'Inactive/Unsupported Plugins' started by KarnEdge, Jul 28, 2011.

  1. Offline

    KarnEdge

    ResidenceSigns
    Instead of making your players use "/res market rent Town.HouseName", allow your players to right click signs to rent and buy land, or put down signs to set up renting or selling with the Residence mod.

    WORKING ON STABLE VERSION.

    Download
    [​IMG] ResidenceSigns (v1.0) - NOT WORKING
    [​IMG] ResidenceSigns (v0.2)

    Current Features
    • Placing a [Rent] or [ForSale] sign on a residence that is already set up for rent or sale will automatically fill in all other information.
    • [Rent] signs allow you to setup a residence for rent using "Price/Days/AutoRenew [t/f]?" on the second line and an optional residence full name on the third.
    • Right clicking a [Rent] sign will attempt to rent the house in your name.
    • When someone rents a house using a sign, the bottom line of the sign will change from "Available" to the renter's name.
    • [ForSale] signs allow you to sell a residence for "Price" on the second line and an optional residence full name on the third.
    • Right clicking a [ForSale] sign will attempt to buy the residence.
    • When someone buys the residence, the bottom line of the sign will change from "Available" to "Sold".
    • Sign text will change if there are any differences in info whenever someone right clicks.
    • Residence name is optional on the third line. By default, wherever cuboid the sign is located in, it will try to use that residence.
    • Locale usage, defaults loaded into "english.locale" under "/plugins/ResidenceSigns"
    • Database usage, H2 and MySQL. Settings under "config.yml" under "/plugins/ResidenceSigns"
    • Multiple signs can used for one Residence.
    • If a player uses a /res, /land buy, /rent, /unrent commands or a [Rent]/[ForSale] sign; all signs for that Residence will be updated with the appropriate information. This also includes lease and rent expirations.
    • UseColors under config.yml can be set to true or false to turn off colors. Setting this to false will turn off all colors on signs and use the default black text; however, if a mistake is made on the sign it will still turn the top text to Red to indicate a problem.
    Shorthand Commands

    [Required Parameter]
    <Optional Parameter>
    If <ResidenceName> is not given, it will use your current location if there is a residence there.
    • /rsadmin
      • Toggle's on and off "/resadmin" mode.
      • Only people with "residence.admin" node can use this.
      • When activated, any signs you place or right click will act as if you used "/resadmin" instead of "/res"
        • Eg; Right-clicking a rent sign at Town.House with /rsadmin on will basically do "/resadmin market rent Town.House" instead of "/res market rent Town.House"
      • Keep in mind, it does have persistence unless server is restarted.
      • This toggle only works for market signs and the shorthand commands below.
      • It will not make regular Residence commands become "/resadmin" commands.
      • Left click a sign to add it to the database and/or update it manually.
    • /rent <info> <ResidenceName>
      • Rent a residence.
      • Info will give information on renting price.
    • /unrent <ResidenceName>
      • Remove yourself from renting a residence.
    • /land [buy/sell/remove/info] <ResidenceName> [price]
      • Buy or sell a residence (selling requires [price])
      • Remove will stop selling residence.
      • Info will give information on residence. (I don't think this works though)
    Planned Features
    • SQLite, MySQL, and FlatFile database backend to store sign locations so information can be changed on signs when someone does not use a sign to rent/buy. If a residence is made unrentable, not for sale or its pricing is updated, it will also rewrite the sign (or signs) to reflect changes.
    • Make wall signs use the block that they are attached to instead of actual location of sign.
    • An option to turn on/off all colors.
    • Locale settings so [Rent], [ForSale], and all other worded parts of the sign can be changed to a different language.
    Change Log

    Version 1.0
    • Added: Configuration options including database information, turning colors on and off, and locale name.
    • Fixed: Auto-renew not accepting correct true and false.
    • Added: Database usage (MySQL or H2, defaults to H2), thanks to @JustMeFlex for his downloader class and helping get my bearings back on SQL usage again. Multiple signs can be used for one residence and they will update no matter what is used for renting, buying or selling.
    • Added: Locale usage, set under config.yml. It will create a default localename.locale file.
    • Added: Left click a pre-version 1.0 sign with /rsadmin on will add your old signs to the database.
    • Fixed: Miscellaneous bugs.
    Previous Versions (open)

    Version 0.2
    • Fixed: Player interaction (right-clicking) with signs that do not have [Rent] or [ForSale] in the top line will no longer be manipulated by ResidenceSigns. (sorry!)
    • Updated: [ForSale] signs now properly show sale price since method was added in recent version of Residence.
    • Changed: Any interaction with created [Rent] or [ForSale] signs that are not blue will not try to do anything to prevent unwanted results.
    Version 0.1

    • Initial Release


    Installation and Help
    1. Drop ResidenceSigns.jar into /plugins directory.
    2. Enjoy!
    Screenshots (open)
    [​IMG][​IMG][​IMG][​IMG]
    Sign Setup (open)
    [​IMG]

    First line: [Rent] (not case-sensitive)
    Second line: Price/Days/AutoRenew (optional if residence is already set up for rent)
    Third line: Residence full name (optional, uses sign location otherwise)
    Fourth line: Shows status of residence (do not write on this line)

    [​IMG]
    First line: [ForSale] (not case-sensitive)
    Second line: Price (optional if residence is already set up for sale)
    Third line: Residence full name (optional, uses sign location otherwise)
    Fourth line: Shows status of residence (do not write on this line)
     
    Wei Bin, Clucky, Rollese and 2 others like this.
  2. Offline

    KarnEdge

    What version of Residence are you using? That error is saying that the ResidenceRentEvent doesn't exist in the Residence mod... I'll check tonight with the latest versions.

    That's an error with ResidenceSigns2... You would need to contact @JustMeFlex about that, but it seems something didn't close out the database connection correctly. You could try stopping the server and let it sit for a about 15 seconds, and start it back up.

    I will have an update to ResidenceSigns by tomorrow hopefully. I haven't had much time as of late, but the next version will have database storage using H2 or MySQL, multiple language support and an option to turn off sign colors. The database will allow signs (even more than 1) for a Residence to update whether you use Residence commands, ResidenceSigns commands, right clicking signs or if Rent expires.

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

    Mike187

    I'm using the latest version as I initially had issues with permissionsEX but found it was a config error but never switched back. The thing is that I have no issue actually using it to rent residences. The plugin is great, thanks for making it. The less commands players have to type in the less my moderators and I have to explain it. I will revert back to the recommended version and see if there still is an issue or if a new issue pops up.
     
  4. Offline

    JustMeFlex

    I can't wait for the update, then people might stop bothering me with my plugin. I never knew maintaining plugins required so much time
     
  5. Offline

    Mike187

    I have tried the latest and recommended builds of residences and both give me the same error.
     
  6. Offline

    KarnEdge

    lol, btw how did you get the Plugin Developer title?
     
  7. Offline

    Syntaxlb

    It's possible to clic x2 on the sign for Rent, Buy, etc .. ? For confirm ?

    Example :
    Player clic on the sign
    - A message say if he's sure to Buy this residence for XX Coin, if yes clic again
    Player clic again
    - Player buy the residence
     
  8. Offline

    KarnEdge

    I'm not sure this could be possible without it taxing the server. I'd have to add a scheduler to timeout 1 clicks that don't do the 2nd click, and add another hashmap per player on what sign they clicked on. I'll be uploading the commits on Sunday to Github with the new version after I've verified everything works correctly. If anyone wants to fork or even do a pull request on the source if they want to try adding this feature would be welcome.
     
  9. Offline

    JustMeFlex

    It came by itself, suddenly I was a plugin developer
     
  10. Offline

    1XDylanX1

    DID NOT WORK FOR ME.
     
  11. Offline

    KarnEdge

    lol, well that solves everything... what didn't work? I know it loads with CB #1060, iConomy 5.01 and Residence 2.3.9 just fine connecting to H2 and downloading. What I haven't tested is the actual signs themselves and MySQL.

    Are the signs not updating? Are you using pre v1.0 signs? If so, have you enabled /rsadmin and left clicked on older signs to add them to the database?
     
  12. Offline

    1XDylanX1

    I NEED YOU TO CONNECT TO MY SERVER AND SHOW ME ITS WORKING I JUST NEED YOU TO SHOW ME LIKE HOW TO WORK IT BECUASE HONESTLY IT JUST WONT HAPPEN...
     
  13. Offline

    KarnEdge

    I physically cannot do that, I'm at work at the moment and won't be on until Sunday. Not to mention, I would rather not connect to someone's server.

    Do you even know what's wrong?
     
  14. Offline

    1XDylanX1

    Yes when people buy it it still does not let them build i have made it so it is sky to bed rock but still not working...
     
  15. Offline

    KarnEdge

    See if the person can use /res market buy Residence.Name

    If the signs are letting them actually buy the Residence, then this mod is working fine. It sounds like you have a problem with your group flag settings in the Residence mod itself. ResidenceSigns has nothing to do with flags or controlling building/destroying/etc, it basically gives an easier interface for players instead of having to use the long Residence commands.
     
  16. Offline

    1XDylanX1

    So basically this allows you to buy the sign and once you have bought the sign you have bought the land.
     
  17. Offline

    KarnEdge

    Sort of; with the standard Residence mod, if you want to buy land, the buyer has to type "/res market buy ExactNameOfLand" and seller has to type "/res market sell ExactNameOfLand 1000". With ResidenceSigns, all you have to do is to buy is right click on a [ForSale] sign on that land and it will try to buy the land and a seller only has to place a sign on their land with [ForSale] on the first line and 1000 on the second.

    All these signs are doing are basically turning those long commands into easy to use signs. Plus it make it visible to the player that you can do something with that residence.
     
  18. Offline

    ollyjohnston

    Hey man , i upgraded to version 1 and can signs dont work anymore
     
  19. Offline

    1XDylanX1

    ITS WORKING FINE NOW JUST SAYS INVALID RESISTANCE PLZ HELP!!!!
     
  20. Thanks for the 1.0 update, Karn - cant wait to test it! Is there any guidance for updating from 0.2? See you mentioned that its needed to right-click every 0.2 sign to add it to the database? Something else? (and update guide is always helpful, btw)

    Keep up the good work! That plugin is awesome!

    Getting NPEs with CB1060 and Residence 2.3.8 and .9! Happens when I either try to click a sign or place a new sign:

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

    XZeenon

    Residence Signs v1.0 doesn't work for me. I don't have a log to show, but I just kept 0.2 for now.
     
  22. Offline

    olimoli123

    PermissionsBukkit support?
     
  23. Offline

    jazzman170

    i just downloaded and tried using this plugin (before u updated that it wasnt working) and i noticed its set up my sql, do we not have the option of editing it right from the plugins folder? (Flatfile i think its called?) I dont have mysql setup nor do i plan on using it anytime soon :(
     
  24. Yes baby, yes!
    Luv you! ;)
     
  25. Offline

    thernztrom

    Sweet, any timeplan on when it might be released? :)
     
  26. Any chance this will ever support paying the rent price in items, such as in-game gold ingots? :>
     
  27. Offline

    KarnEdge

    That would be up to the actual Residence mod on that support, and I'll have to update this mod to support if it did.

    Unfortunately, I have no idea since I can't seem to get sign text to update through events. H2 and MySQL database, locale usage and color options have been added and work just fine though.
     
  28. Offline

    MadcowD

    Can you drop the source? I'd like to help you out.
     
  29. Offline

    bond654

    where is the permission nodes??? :mad:
     
  30. Offline

    Tux_Peng

    I used Residence Helper, I will want to switch when the next stable version of this comes out; the signs use the same syyntax, will I have to recreate the signs?
     
  31. Offline

    domingo15

    iis this going to be working for RB #1185?
     

Share This Page