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

    gvlfm78

    Y U NO WORK?????????
    I always get this error when the plugin should be loaded:
    Code:
    16:53:51 [SEVERE] Could not load 'plugins\ResidenceSigns2.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: org/bukkit/event/player/PlayerListener
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:149)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:214)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:190)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:55)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:168)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:434)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NoClassDefFoundError: org/bukkit/event/player/PlayerListener
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    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:41)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at Flex.ResidenceSigns2.ResidenceSigns2.<init>(ResidenceSigns2.java:39)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:145)
    ... 8 more
    Caused by: java.lang.ClassNotFoundException: org.bukkit.event.player.PlayerListener
    at java.net.URLClassLoader$1.run(Unknown Source)
    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:41)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 27 more
    
     

Share This Page