[INACTIVE][ECON] BankAccount v.0.5.1 - Shared Bank Accounts [860]

Discussion in 'Inactive/Unsupported Plugins' started by TAT, Mar 4, 2011.

  1. Offline

    TAT

    [​IMG]BankAccount v0.5.1
    IRC @ irc.esper.net/#BankAccount
    Donate
    Credits:
    Team: TAT

    Download 0.5.1 (JAR, TAR.GZ, ZIP)
    Earlier versions: 0.2-0.5
    Source Code @ Github

    BankAccount enables the players to open shared bank accounts with each other.
    The players with access to an account can deposit, withdraw and transfer money.

    Searching for coders and testers
    If you are interested in code and/or test BankAccount, please send a PM to TAT.

    Error reporting and feature requests
    Please use our Redmine system for this: http://redmine.earthgame.dk
    Requirements (open)

    • iConomy, BOSEconomy or Essentials Economy
    • mysql-connector-java-bin (Found here) (NOTE: must be included to Java ext folder - instructions included in Readme)
    • sqlitejdbc-v056 (Found here) (NOTE: must be included to Java ext folder - instructions included in Readme)
    Features (open)

    • Open a shared bank account between each other
    • Deposit/withdraw money between economy account and shared bank account
    • Transfer money between shared bank accounts
    • Password protect shared bank accounts (Case-sensitive)
    • Amounts on accounts can gain interest over time
    • Use commands global or in bank areas
    • Loan system
    Todo (open)

    • NPC??? (Perhaps)
    Permissions Nodes (open)
    Commands (open)
    Admin commands
    • /account help [page]
    • /account open <accountname> [players]
    • /account info <accountname>
    • /account list
    • /account balance <accountname>
    • /account adduser <accountname> <player>
    • /account removeuser <accountname> <player>
    • /account password <accountname> [password]
    • /account deposit <accountname> <amount>
    • /account withdraw <accountname> <amount> [password]
    • /account transfer <from account> <to account> <amount> [password]
    • /account loan <amount>
    • /account pay <amount>
    • /account close <accountname> [password]
    • /account select
    • /account setarea <areaname>
    • /account removearea <areaname>
    Documentation @ GitHub
    Howto videos (open)
    Basic Setup (open)
    MySQL Setup (open)
    Area Setup (open)
    Features planned for next release (open)

    • Separate banks with separate accounts (like in reality) [option]
    Changelog (open)
    Version 0.5.1
    • Added permissionnode for list command (Included in basic permission)
    • Added possibility to disable interest and loan debug output
    • Accounts no longer case-sensitive
    • Code clean-up
    • Changed to use Register [GitHub Commit: 2071011cca5d89940f310dc39273be8bb7e517bc]
      • Now supports following economy plugins (iConomy preferred)
        • iConomy 4
        • iConomy 5
        • BOSEconomy
        • Essentials Economy
    • Updated to CraftBukkit #860
    • Removed response to multiple banks config
    • API changes
    Full changelog
     
    NEO and artimas22 like this.
  2. Offline

    Xylogeist

    Well, what you could do is when you click on a "banking" NPC, it activates banking, and he tells you:
    "Your ballance is X Coins.
    What would you like to do?
    Add = Insert money
    Remove = Retrieve money"

    Then if the user leaves the radius of the NPC, the transaction is cancelled. Otherwise it waits for you to issue a command. No need for interface, just simple integration with the NPC :) You might check around if any of the NPC pluggins have API for "onLeaveRadius" or something... Preferrably the citizens plugin xD You could even put in the config "integrate-npcs: true/false".

    Then again... the NPC plugin dev would need to add "/npc type [nameofnpc] [type]" for setting them to "banker" or "trader"... Oh well.
     
  3. Offline

    dpswt

    Well I mean, it obviously won't be perfect but is it possible to have negative currency? I mean the items idea is also nice but I guess its hard to label the value of the items. I mean you could set a cap for the loan. So lets say the cap is 100 currency. And the interest rate is 20%. The said person takes the cap amount, 100, and has to pay back in 5 days. As I stated before, in each day it would take 1/5 + interest, but while the 5 day passes (while he pays back) he can't take any more loans. And if he can't pay back it just subtracts. So 100+20% = 120 currency after 5 days, if he has, let's say, 50 currency, at the end of the 5 days then he gets -70 currency. And if he has negative currency, he also can't take any more loans... I mean if this is possible, it would prevent taking more than 1 loan at a time and prevent that people with negative currency could take any loans at all. Also, with a configurable cap, it would give the admins to put a fair cap so people don't depend on loans.

    PS: Yeah, I just have a need to make long posts
     
  4. Offline

    TAT

    I will think about it, but you have some good points for me in your text :)
    Well, you're right. I will see what I can do, but don't expect it to be in next release as I have a lot and really want to get the next release out :)
    Long posts are good if you're describing things in a good way ;)
     
  5. Offline

    dpswt

    Sure, just throwing out some ideas to add more features to the mod :).
    Thanks, and keep your good work!
     
  6. Offline

    TAT

    Version 0.3 out!

    Note: Now using config.yml instead of bankaccount.properties.
    Please delete the bankaccount.properties file.

    Changelog:
    • Auto creating tables
    • Added SQLite
    • Added interest system
    • Added support for bankareas
    • Amount in SQL changed from int to double to match iConomy
     
  7. Offline

    dslip

    Author,

    Please support the auto-updating plugin CraftBukkitUpToDate. To do so please provide a permanent direct link to the author of CraftBukkitUpToDate.

    The below is information they provide
    Show Spoiler

    My Plugin didn't supported, how i get it to work with CButD?
    Give me a permanent link to your Plugin, i will add it. That's all no changes at your SourceCode or something else, all I need is a permanent link to the newest version of your Plugin. A good place for this is http://www.dropbox.com/ or for OpenSource https://github.com/.


    I really enjoy using your plugin and would like to see it work well with the above listed 'updater' plugin.
     
  8. Really great plugin but your newest version is crashing Permissions somehow. Here are some errors that came after your plugin was loaded.

    Also it was definitly your plugin since I tried it with and without yours and the errors only occour when loading your plugin.

    Please check =)

    Code:
    2011-03-10 16:41:51 [SEVERE] Could not pass event PLUGIN_ENABLE to iConomy
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/Permissions/Permissions
            at com.nijiko.coelho.iConomy.iConomy$Listener.onPluginEnabled(iConomy.java:392)
            at org.bukkit.plugin.java.JavaPluginLoader$31.execute(JavaPluginLoader.java:316)
            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:452)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.ClassNotFoundException: com.nijikokun.bukkit.Permissions.Permissions
            at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
            ... 13 more
    2011-03-10 16:41:51 [SEVERE] com/nijikokun/bukkit/Permissions/Permissions loading ServerAutoStop v1.0.0 (Is it up to date?)
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/Permissions/Permissions
            at net.hailxenu.serverautostop.AutoStopPlugin.onEnable(AutoStopPlugin.java:67)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.ClassNotFoundException: com.nijikokun.bukkit.Permissions.Permissions
            at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
            ... 11 more
    2011-03-10 16:41:51 [INFO] CraftBookCommon 3.0-alpha1 enabled.
    2011-03-10 16:41:51 [SEVERE] Could not pass event PLUGIN_ENABLE to iConomy
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/Permissions/Permissions
            at com.nijiko.coelho.iConomy.iConomy$Listener.onPluginEnabled(iConomy.java:392)
            at org.bukkit.plugin.java.JavaPluginLoader$31.execute(JavaPluginLoader.java:316)
            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:452)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-10 16:41:51 [INFO] WorldEdit 4.1 enabled.
    2011-03-10 16:41:51 [INFO] WorldEdit: No known permissions plugin detected. Using configuration file for permissions.
    2011-03-10 16:41:51 [SEVERE] Could not pass event PLUGIN_ENABLE to iConomy
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/Permissions/Permissions
            at com.nijiko.coelho.iConomy.iConomy$Listener.onPluginEnabled(iConomy.java:392)
            at org.bukkit.plugin.java.JavaPluginLoader$31.execute(JavaPluginLoader.java:316)
            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:452)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    
     
  9. Offline

    TAT

    Which version of CraftBukkit and Permissions are you using?
     
  10. Offline

    FXStrato

    Is this only working with 522? I want to use it with b493 because a lot of my other plugins support 493 only.
     
  11. Offline

    TAT

    Just ran a quick test starting a b493 server with the plugin without any errors. Should work.
     
  12. Offline

    Racha

    Omg you are awesome, all that i wanted, thanks a lot, going to make a bank in my servar, yay!! :D
     
  13. Offline

    subarct1c

    Great job on the plugin! I've noticed one small issue though. People with admin access don't seem to be able to view or modify the other accounts, and we seem to have no way of listing accounts other then viewing the database itself. Would it be possible to add both of these things in? Thanks in advance!
     
  14. Offline

    dslip

    I just tried to run the latest version using mysql and it tells me cannot connect to 'mysql-db'. I noticed in the config file it lits the usual host, port, user, pass but NOT dbname, thus I think there is a missing link to tell it what database to use.
     
  15. Offline

    xx_insanity_xx

    ok... so... don't know if you know this already but I just got the update to 0.3 using bukkituptodate, as well this updated my craftbukkit to version 531 (don't know if that makes a difference) basically, I deleted the .properties file and it's using the config.yml file I've set the file to use my mysql and entered the information for it matching the old .properties file

    this is the outcome:
    Code:
    2011-03-10 22:46:29 [INFO] BankAccount version 0.3DEV is enabled!
    2011-03-10 22:46:29 [INFO] BankAccount: Config file found!
    2011-03-10 22:46:29 [INFO] BankAccount: Permission system found.
    2011-03-10 22:46:29 [INFO] BankAccount: Properties Loaded
    2011-03-10 22:46:29 [WARNING] BankAccount: Failed to connect to MySQL
    2011-03-10 22:46:29 [WARNING] BankAccount: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user 'minecraft'@'%' to database 'mysql-db'
    2011-03-10 22:46:29 [INFO] BankAccount: Shuting down
    2011-03-10 22:46:29 [INFO] BankAccount is disabled!
    
    then it is followed by a crap load of [SEVERE] messages pertaining mostly to my persistence plugin as well as most of my other ones (too much to post wouldn't allow it) I'll attach a txt file of the rest if need be.

    I tried reverting back to v0.2 and it works beautifully, so I'm not really sure whats going on here...

    in case it makes a difference here is the contents of my config.yml:

    Code:
    ##
    
    #Plugin: BankAccount
    
    #Author: TAT
    
    #CONFIGURATION
    
    ##
    
    ##
    
    #Config: UseMySQL
    
    #Example: true = MySQL // false = SQLite (flatfile)
    
    ##
    
    UseMySQL: true
    
    ##
    
    #Informations to your MySQL connection
    
    #Only if you're using MySQL (Set in UseMySQL)
    
    ##
    
    MySQL-info:
    
        Host: localhost
    
        Port: 3306
    
        User: minecraft
    
        Pass: ****
    
    ##
    
    #Config: SQL-account-table / SQL-area-table
    
    #Doing: Names of account and area table
    
    ##
    
    SQL-account-table: bankaccounts
    
    SQL-area-table: bankareas
    
    ##
    
    #Config: UseOP / UsePermissions
    
    #Doing: Use OP and/or Permissions to get admins
    
    #Example: true = activate // false = deactivate
    
    ##
    
    UseOP: true
    
    UsePermissions: true
    
    ##
    
    #Config: Global
    
    #Doing: Is it possible to use commands global or in specific areas?
    
    #Example: true = global // false = specific areas
    
    ##
    
    Global: true
    
    ##
    
    #Config: AreaWandId
    
    #Doing: Item ID to selection of areas
    
    #Example: 339 = Paper
    
    ##
    
    AreaWandId: 339
    
    ##
    
    #Interest settings
    
    #Time is in minutes
    
    #Amount is % of account balance added to every account
    
    ##
    
    Interest:
    
        Time: 5
    
        Amount: 0.1
    [MERGETIME="1299817683"][/MERGETIME]
    just changed UseMySQL: false and it loads up great too, so it's got to be an issue with the MySQL settings... all the other plugins that use MySQL are working fine, and v0.2 of bankaccount worked fine with MySQL
     
  16. Offline

    TAT

    Version 0.3a out!

    NOTE: CraftBukkitUpToDate will not update the plugin until later today, because I currently don't have set my laptop up with GitHub in Eclipse. Working on getting it to work.

    Changelog:
    • Fixed missing MySQL database in config and configLoading
    Look in the README file to see how to add database or remove your config file to get the plugin to make a new one.[MERGETIME="1299846675"][/MERGETIME]
    CraftBukkitUpToDate should now be get the new version :)
     
  17. Offline

    SlimeJr.

    Can you please tell me how it exectly works?
    and can you please do a guide on youtube,
    how to install it?
    and i'm still new in bukkit i use it around
    2 weeks from now.
    (my english is not that best)

    P.S.
    [sheep]'s to you :D
     
  18. Offline

    TAT

    I will soon release howto videos on YouTube.

    Version 0.3b out!

    Changelog:
    • Fixed global not working
    [MERGETIME="1299887289"][/MERGETIME]
    Created an account for my howto videos of my plugins.
    http://www.youtube.com/user/TATPlugins
    I have just set my computer to work on render and upload the first video to this plugin, put I'm getting tired, so I will go to bed now and let the computer finish by it self. Hopefully it will work nicely.
     
  19. Offline

    Mania_C

    I got an awesome idea, if you help me migrate and connect my sql-database to my external one.com account i'll help you make a web-based bankaccount so your minecraftserver has a nice online bank with logins to check intrests and such. this will be like an standalone .php-file that you just setup to the database :)
     
  20. Offline

    TAT


    That would be awesome, I can also code in PHP, so it could be a project we both could make if you want?
    You can PM me where we can discuss closer about it :)
    [MERGETIME="1299976885"][/MERGETIME]
    Did the video on youtube help you?
    Would like some response to if my videos is usable or if there is something I need to change.
     
  21. Offline

    Splox982

    IDK if this is a freak occurrence or an error on my part, but after restarting the server my account read -1000 when i originally had 1000. Idk if it was just something I did or what?

    Thanks,

    Tom
     
  22. Hi i get an error saying BankAccount: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/minecraft
    in my lib folder i have;
    -linux.amd64.lib (im using Ubuntu 64-bit)
    -mysql.jar (in there by default)
    -mysql-connector-java-bin.jar (iConomy downloaded)
    -sqlite.jar (dunno if this is used as i use mySql)
    any help will be apprieciated as im trying to get this fully built to use so when i get to build my server i can easily port all my stuff over. thanks.
     
  23. Offline

    Racha

    I deposited 150 coins in to the bank, after the night there was 0 coins, how? :O
     
  24. Offline

    TAT

    Do you use MySQL or SQLite?
    I'm going to create a virtual pc with Ubuntu 64-bit to test on. I'll response my result as soon as possible =)
    EDIT: Ubuntu 32-bit
    Do you use MySQL or SQLite?
     
  25. Offline

    Racha

    I use sqlite
    [MERGETIME="1300202565"][/MERGETIME]
    Code:
    ##
    #Plugin: BankAccount
    #Author: TAT
    #CONFIGURATION
    ##
    
    ##
    #Config: UseMySQL
    #Example: true = MySQL // false = SQLite (flatfile)
    ##
    UseMySQL: false
    
    ##
    #Informations to your MySQL connection
    #Only if you're using MySQL (Set in UseMySQL)
    ##
    MySQL-info:
        Host: localhost
        Port: 3306
        User: root
        Pass: password
        Database: minecraft
    
    ##
    #Config: SQL-account-table / SQL-area-table
    #Doing: Names of account and area table
    ##
    SQL-account-table: bankaccounts
    SQL-area-table: bankareas
    
    ##
    #Config: UseOP / UsePermissions
    #Doing: Use OP and/or Permissions to get admins
    #Example: true = activate // false = deactivate
    ##
    UseOP: true
    UsePermissions: true
    
    ##
    #Config: Global
    #Doing: Is it possible to use commands global or in specific areas?
    #Example: true = global // false = specific areas
    ##
    Global: false
    
    ##
    #Config: AreaWandId
    #Doing: Item ID to selection of areas
    #Example: 339 = Paper
    ##
    AreaWandId: 339
    
    ##
    #Interest settings
    #Time is in minutes
    #Amount is % of account balance added to every account
    ##
    Interest:
        Time: 30
        Amount: 5
    My config, before a hour I placed 150 Coins, now there is 150 coins :confused:
     
  26. Offline

    TAT

    Do you lose all your money after every restart?
    Is there a problem with that?
     
  27. Offline

    Racha

    It just restarted [ Auto Restart ] And it is still there.

    And yes there is, i should earn 5% from 150 coins twice, but there is still 150 coins.
     
  28. Offline

    TAT

    I'll release a bug fix in a minute that will makes it say when it runs the interest system.
     
  29. Offline

    subarct1c

    I've also noticed that not all accounts gain interest. It would seem only the first account I created is gaining, all others seem to be stuck at whatever balance they have.
     
  30. This could be because you (or iconomy) are using a different mysql driver than the one used as default in bukkit. im just started learning java, but it would seem this is the case. its a pain as i love MySQL and can use it anyway i want (i somehow can do databases really well, even relationships). maby looking at BigBrother and see how they use MySQL might help. Id lvoe to be part of this but my java skills are basic (as i can only do mouse overs on websites :p ) i might look at showing bank details in a PHP form as im working on a login system where people link their MC accounts on the server with a login on the site. If you get the MySQL connector to work this will be Epic. Good Luck TAT
     
  31. Offline

    TAT

    My virtual pc just don't want to run linux -.-''
    I will ask you to see if this folder exists (or a folder like this) /usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/ext/
     

Share This Page