[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

    TAT

    If I remember correct, I have checked and corrected the interest system to work better :)
    Please note, that there can be problems if using Ubuntu (and perhaps Linux overall)

    Atm, I'm online on the IRC channel if people wants to talk :D (Don't have to be about BankAccount)

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

    but2002

    I moved from Sun-Java to OpenJDK and now I get a VERY similar error.

    Code:
    2011-06-21 22:16:05 [INFO] [BankAccount] Payment method found (iConomy version: 5)
    2011-06-21 22:16:05 [INFO] [BankAccount] Running interest every 5 minutes by 1.0%
    2011-06-21 22:16:05 [INFO] [BankAccount] Established connection with economy!
    2011-06-21 22:16:05 [SEVERE] Error occurred (in the plugin loader) while enabling BankAccount v0.5.1 (Is it up to date?): null
    java.util.ConcurrentModificationException
            at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1117)
            at java.util.TreeMap$KeyIterator.next(TreeMap.java:1171)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:308)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:806)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:140)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    

    EDIT: Errors' still there, but the plugin is working. We're going to call it good for now. From the bit of research this is the result of some minor error in the plugin, but nothing breaking.
     
  4. Offline

    TAT

    If you want, it would be nice if you could try out with a newer CB, example 903 :)
     
  5. Offline

    but2002

    Sorry. We're a production server and I don't want to risk it. Also our host is limited to 10 GB of space, and we're at 7GB usage.
     
  6. Offline

    Asherslade

    I have a problem, when i try and create a bank account it says ATM: couldn't create bank account
    -.-
     
  7. Offline

    TAT

    Fair, also just a question :D
    It's more because I can't try to reconstruct the error since I don't use Linux of any kind and not going to in the nearest future :)
     
  8. Offline

    but2002

    You could purchase a Testing Ground VPS for a cheap montly fee (I mean cheap)
    www.x10vps.com
    www.thrustvps.com


    You could also take the free route, and download an Ubuntu server ISO and load it into a virtual machine like www.virtualbox.org
     
  9. Offline

    TAT

    Please use Redmine for help: http://redmine.earthgame.dk/projects/bankaccount
    Please attach console errors and your config (remember to hide your MySQL password if set)
     
  10. Offline

    DetCox

    ok it fixed my last errors but gave me a new one

    [BankAccount] java.sql.SQLException: Column 'users' not found.
    [WARNING] [BankAccount] Couldn't execute interest
    and users does exist
     
  11. Offline

    but2002

    I had a completely fresh install, and I was getting this error
    I found the culprit and fixed it using this command



    It obviously shouldn't be doing this on a clean install. o_o

    The culprit appears to be lines 222-226 of /src/main/java/dk/earthgame/TAT/BankAccount/Settings.java

    Code:
    String query = "CREATE TABLE IF NOT EXISTS `" + SQL_account_table + "` (`accountname` VARCHAR( 255 ) NOT NULL , `owners` LONGTEXT NOT NULL, `users` LONGTEXT NOT NULL, `password` VARCHAR( 255 ) NULL DEFAULT '', `amount` DOUBLE( 255,2 ) NOT NULL DEFAULT '0')";
    
    if (UseMySQL) {
    
    plugin.console.warning("Created table " + SQL_account_table);
    
    query = "CREATE TABLE IF NOT EXISTS `" + SQL_account_table + "` (`id` INT( 255 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , `accountname` VARCHAR( 255 ) NOT NULL , `owners` LONGTEXT NOT NULL, `users` LONGTEXT NOT NULL, `password` VARCHAR( 255 ) NULL DEFAULT '', `amount` DOUBLE( 255,2 ) NOT NULL DEFAULT '0')";
    
    }
     
  12. Offline

    marve25

    if you are using MySQL, add another colum in the tabel "bankaccounts" the title/field should be "cleanname" and type is "varchar" length is "255".

    i had the same problem
     
  13. Offline

    TAT

    @DetCox @but2002 @marve25 and others
    I'm sorry that it have gotten out with that error and is one of the things that I try not to get out with the releases.
    I tried to add as much stability into v.0.5.1 - I'm hoping that with Jenkins and Redmine we can get a better environment with BankAccount and that people is willing to test out BankAccount between releases.
     
  14. Offline

    erik halvarsson

    i think your download link is broken
    but otherwise it looks like a great plugin :)
     
    static829 likes this.
  15. Indeed, It does seem like an awesome pluging, and it works great.....(ie, i can make bank areas, accounts, deposit, withdraw etc)

    ......Except (bear in mind i cant get the new version as the links are broken) When this is installed, it completely Kills All permissions. Users cant even use /home or /back. Mob Bounty Stops working, Other than me (the OP) the other admins cant do anything. So therefore, no one can use the bank i make. I get no error messages at all in the console, so im not sure whats going on.

    Plugins i have:
    Permissions
    Essentials
    IConomy5
    IConomy ChestShop
    Mob Bounty
    Lockette
    WorldEdit
    WorldGuard
    WirelessRedstone
    ControllerBlocks
    GenOre
    MobileAdmin
    BlueTele Pads

    Any Help would be Great.

    Thanks

    TrenceJ
     
  16. Offline

    TAT

    Jenkins went down while I have been sleeping :(. It's now up and running again :)
    What's in your config.yml for BankAccount?

    Just to follow up on this, I have set the server to check if jenkins is running every 10 minutes, if it's down, it will try to get it up running again.

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

    melandor0

    Code:
    12:28:13 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'acco
    unt' in plugin BankAccount v0.5.1
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:12
    8)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    87)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:712)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:678)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:671)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
            at dk.earthgame.TAT.BankAccount.BankAccountCommandExecutor.onCommand(Ban
    kAccountCommandExecutor.java:46)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    I wiped the old database, jar and config files (everything bankaccount related) and installed the new .jar
    Starts up fine but when someone writes /account they get a red text saying "An internal error occured while attempting to perform this command" and the server outputs the above error.
     
  18. Offline

    TAT

    Please redownload :)
     
  19. Offline

    NEO

  20. Offline

    TAT

    Others have same errors, but it shouldn't break BankAccount.
    All commands should still be working.
     
  21. Offline

    but2002

    @TAT

    The error appears to be in lined 86-90 of src/main/java/dk/earthgame/TAT/BankAccount/BankAccount.java


    Code:
    ResultSet accounts = settings.stmt.executeQuery("SELECT `id`, `amount`, `owners` FROM `" + settings.SQL_account_table + "`");
    while (accounts.next()) {
    double accountbalance = accounts.getDouble("amount");
    String[] owners = accounts.getString("owners").split(";");
    String[] users = accounts.getString("users").split(";");
     
  22. Offline

    TAT

    @but2002
    I have accepted your pull-request.
    Please redownload for newest jar
     
  23. Offline

    GmK

    @TAT

    It works really well now! (Havent tested multiple banks and loans yet though).

    Any way we could get per-transaction fees? As in, a percentage the bank takes for every deposit and withdrawal? That would be fantastic!

    Else it is too easy for people to not carry money (which can be stolen on our server).
     
  24. Offline

    TAT

    I have written that on the feature wanted list :)
     
  25. Offline

    dfdgsdfg

  26. Offline

    GmK

    Thank you! <3
     
  27. Offline

    Deatlev

    Is there any way you could make like, signs which you type the bank account on and then how much money it got, so it'll update once the bank gives interest, I started with this, manually, so please, can you do this?
     
  28. Offline

    TAT

    Well, that was a nice idea :)
    Added on the feature list (http://redmine.earthgame.dk/issues/5)
     
  29. Offline

    shavid

    Keep getting an issue with '[ATM] : Couldn't create Loan'
    Definitly in the right area etc. Loans are enabled . Permissions are their due to being OP, but for some reason it won't allow me to take one out - any suggestions ? Was a nice feature was hoping to give to my players and in order to get them buying/selling more.
     
  30. Offline

    TAT

    Any console errors?
     
  31. Offline

    some1

    feature request: maybe some signs to deposite/witdraw/open the bank accounts would be awsome or you could just use atm lol
     

Share This Page