Inactive [ECO] DirectBank v0.9.5 - Now with: Shared Accounts and Donation Signs [1060]

Discussion in 'Inactive/Unsupported Plugins' started by Seta, Aug 11, 2011.

  1. Offline

    Seta

    [​IMG]
    V 0.9.5 - by SeTa

    I am happy so many of you liked my plugins, but im sorry to say there will be no updates (like many of you already thought). I dont have the time any more to update this (and other) plugins on that regular bases as bukkit requires one to update. Keep in mind that the source is included in the jar and everybody who wants to take it over is very welcome (my source is a mess btw)

    DirectBank is a hopefully simple to use Banking Plugin for youre Server. The Whole Banking Stuff is done trough ATMs (Signs) in Varius Types. Now you also can create Shared Bank Accounts (requires a License) but read down the thread to find out more ;)

    Features:
    • No Commands in Normal use, just place a Sign with first line: "bank"
    • Withdraw, Deposit or Send Money
    • Some Permissions to make it more flexible
    • Shared Accounts (with Different User Rights!)
    • Multilingual ! (sry old Language files are not compactible)
    • Configurable Starting Balance
    • Donation Signs
    • Register! (Works with all Major iConomy Plugins, thx @bob3695 for implementing this)
    • Get configurable fees for Withdraw, Deposit and Sending.
    • Configurable interests at configurable times (per Hours, or per Day) *works but seems buggy*
    Bank Sign:
    Simple Bank, users can view there Account stats, or deposit/withdraw/send Money.
    Place a sign and if you are OP or have the permission node (see below), write the first line "bank".
    Thats all. To remove it, just break it.

    [​IMG]

    License Sign *new*:
    With License Signs you can sell licenses for User owned Banks / shared Accounts directly ingame. Each now Shared Bank needs 1 License to start!

    Simple write license into the first line (you need the Permission or OP)

    Shared Bank Sign *new*:
    Shared Banks are a simple way to Handle Money within a Group. They are very similar to Normal Bank Signs except 2 differencies:
    1. Its only 1 Bank Account they use
    2. They have a User Menu.
    To create one write sbank in the first line, and youre Banks name into the Second.
    You can make more than one Sign per Bank, only the first needs a License.

    Shared Bank User Menu *new*:
    I think this is the most complicated part of the whole Plugin, but its pretty easy too ;D
    There are 4 User Modes:
    • @ Owner - Can add all Modes and can Remove / Create Signs
    • + Admin - Can add Full Access and Donate Only User and can Remove / Create Signs
    • - Full Access - Can Access the whole Banking Stuff (Deposit, Withdraw, Send)
    • Donate Only - Only can Donate Money
    Add User like: @kingseta or +kingseta. As special User you have ALL Just add ALL to youre User list, and everybody can donate. or -ALL and everybody has full access.

    Donation Sign *new*:
    This is the most simple. Just make sure you have an Bank Account then place a sign and write donate into the first line. Thats it, you've created a sign everybody can easily donate you some Money :D

    Use a Sign:
    Just Punch it, most stuff is self explanatory. If the Sign asks you to input something just write it into the Chat ;)

    Fees:
    You can take fees from your Bank-users. They are fully configureable like you will see in the Configuration file below. But where does the Money get? :confused:
    Answer: Theres a new iConomy Account called "ServerBank". You can use iConomy to take the money, may i implement something more DirectBank'y ^^

    Configuration (open)

    Configuration:
    Code:
    #DirectBankX Config file
    #Sat Oct 08 01:38:53 CEST 2011
    lastinterest=0 # leave this
    oldprefix=Bank_ # change this for upgrading from versions below 9.2
    enable_donatesign=true # ^^
    withdraw_fee=1% # numbers or %
    tag_license=&b~&aLicense&b~ # Sign Tag
    deposit_fee=1% # numbers or %
    mainworld=world # im not sure if im using this Oo
    enable_sharedsign=true # ^^
    tag_bank=&a~&bBank&a~ # Sign Tag
    permissions=false # put this to false if you wish to use permissions
    interestminutes=30 # how often do you wish interests?
    enable_licensesign=true # ^^
    enable_chestsign=true # sry not used :P
    interest=1.15 # in %
    tag_donate=&a~&eDonate&a~ # Sign Tag
    language=en # language file to use located in DirectBankX/lang
    enable_interest=true # may you dont want youre players to get richer and richer?
    startamount=50
    send_fee=1 # here you can see a numbered value without %
    licensecost=2000 # how much should it cost to buy a license?
    
    ScreenShot (open)
    [​IMG]


    [Download] - Older Versions - buy me a cake [cake]
    Source included. Open Source ftw :D

    Commands:
    • /bank reload
    • /bank license take/give/info USERNAME
    Permissions:
    Dont they explain there self?
    • directbank.admin
      • directbank.bank.create
      • directbank.reload
      • directbank.license.create
    • directbank.user
      • directbank.shared.create
      • directbank.shared.use
      • directbank.donate.create
      • directbank.donate.use
    Simpliest way is to give all Youre Users directbank.user and the Mods directbank.admin

    Future:
    • NPCs! (with 1.8 update! :D)
    • Donation Signs
    • Finally fix the Interest Loop -.-
    • Gold Banking (buy/sell gold to a dynamic price)
    • Chest Banking
    • anything else?
    Changelog:
    • V 0.9.5 0.9.4 was a crap build -.-
    • V 0.9.4 Bugfix and:
      • Register is now Integrated! Big thx to @bob3695
    • V 0.9.3 Recode, now Version now Bugs? ^^
    • V 0.9.2 Added License / Donation / Shared Banks :confused:
    • V 0.9.1 Bug fix :confused:
    • V 0.9 Some small stuff
      • All Money interactions will now get shown in the Log
      • There is an "maxinterest" configuration
      • And a /bankreload command, to reload the config
    • V 0.8 Added "inUse" control. (thx @Silentnight18 ) Signs are dedicated to the user who uses them first until they leave
    • V 0.7 Added new Stuff :D
      • Configurable fees (see example config file above) Accepts also %!
      • Tell online Users about money arrivements
      • Sry this taked so long :/ H: and K: are now variable in Language file!
    • V 0.6 Negative Amount bug fix (thx @AdamS )
    • V 0.5 Important Bug fix! Please upgrade! (thx @alfskan )
    • V 0.4 Little Bug fix
    • V 0.3 Added Money transactions
    • V 0.2 Added Interest per Hour & Starting Balance
    • V 0.1 Release (stable)
     
    Karlkorv, BastiDE, AdamS and 2 others like this.
  2. Offline

    DaveDee

    Very nice...
    How about some optional daily profit in %?
     
    Cosmic Break likes this.
  3. Offline

    Seta

    See feature 1: "Configurable interests at configureable times" :D
    I think, this is what youre looking for ;)

    Is interest the wrong word? *asking carefully* ^^
     
  4. Offline

    Shooty

    So, i'v a plugin to "steal" money of other player when their was killed, so if one of my player kill other player and the other player had all of their money in their BANK no money was withdraw ?

    Sorry for my bad english i'm french !

    @Seta
     
  5. Offline

    Grrrr159

    So is this like an ATM?
     
  6. Offline

    DaveDee

    My fail...
    So if Someone already has 100k coins, and after clicking on sign he will have 100k on his account and iConomy start Balance (in our case - 15k) on Bank_Someone account? For total 115000 coins...
     
  7. Offline

    Seta

    Yeah :D Thats one of the Points why i made this plugin ;)
    Jep

    Yes, thats how it works. I have a startbalance of 30, so this doesnt make so much differenz to me. May i implement something to handle this in future.
     
  8. Offline

    DaveDee

    It would be nice... i think the easiest way - just add option in config to withdraw set amount from all new-created balances. With "0" by default.
     
  9. Offline

    Plague

    title is missing plugin version
     
  10. Offline

    Seta

    thx, changed it
     
  11. Offline

    Blagmag

    Ehm, can you set multiple times ? For example that you get interest every few hours instead of having only one.
     
  12. Offline

    Seta

    Im sorry this is not possible at the moment....
    But i will include this, just give me a moment (or two) ;)
     
  13. Offline

    Blagmag

    Alright, awesome. Ehm btw, is the time set ont he ingame time or the real life ? If real life, which GMT ?
     
  14. Offline

    Seta

    Its reallife time. And it depends on what time youre Server has.

    both implemented ;)

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

    mat924

    can you give other players money in return for items
     
  16. Offline

    Seta

    Im sorry i dont plan to make a Shop out of this plugin, there are enough Shops (also Sign Shops) out there. This is only for Banking purposes ;)
     
  17. Offline

    DaveDee

    In our "To install" list now =D
     
  18. Offline

    Blagmag

    It would be nice if you could add a transaction option, which allows to share money between accounts.
     
  19. Offline

    Seta

    i thought about this, but it would kill the simplicity because i have no idea how to do this without commands.
    May somebody has an idea?
    EDIT:// i may have an idea :D
    But you still can send money to those Accounts with a normal /money pay Bank_NAME 100

    added ;)

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

    Devboi

    It works but it spams the console with this
    USING CB 1000
    2011-08-13 21:43:52 [SEVERE] Could not pass event PLAYER_CHAT to DirectBank
    java.lang.NullPointerException
    at seta.directbank.xPlayerListener.onPlayerChat(xPlayerListener.java:38)
    at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.java:279)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:682)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    any thoughts.....?
     
  21. Offline

    Seta

    thx for reporting... really missed to check that string b4 parsing xD
    fixed!
     
  22. Offline

    Blagmag

    How does the transaction system work now btw ?
     
  23. Offline

    Seta

    When you Punch the Bank Sign, its the third option, when "Send" stands on the sign.
    After that you have to type "USERNAME AMOUNT" in chat and it will be sent
    Only Bank 2 Bank, but i think thats what we want
     
  24. Offline

    Shooty

    @Seta you can't We set the default money ?
     
  25. Offline

    Devboi

    I have redownloaded
    still getting this everytime somebody speaks in the text

    2011-08-14 08:55:54 [SEVERE] Could not pass event PLAYER_CHAT to DirectBank
    java.lang.NullPointerException
    at seta.directbank.xPlayerListener.onPlayerChat(xPlayerListener.java:38)
    at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.java:279)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:682)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  26. Offline

    alfskan

    CRITICAL PROBLEM
    when I send money to myself, it duplicates money. both of H and K!
    seriously, If I didnt tested it, would destroy my server's economy.

    and...I have a quetion.
    what is the full name of alias K and H?
     
  27. Offline

    Seta

    What do you mean with "Default Money" ?
    i cant reproduce this error Oo
    Im writing a little update atm, when its ready try again.
    If it doesnt get better than please try removing the config.dat and start over.

    Im happy somebody found this! it seems i missed to look at my amount while testing -.-
    K = Konto
    H = Holding / Hand
    Should i change them?
     
  28. Offline

    alfskan

    Please fix it asap. I love your ATM.

    Never mind with alias. I learned the word "Konto".:p

    Can you please add a fee when players use bank?
     
  29. Offline

    Shooty

    Default iconomy money when one account was created

    Yes :/
     
  30. Offline

    Seta

    Its fixed :D im sorry again... im happy to nobody on my server realized this xD

    Im adding a Todo list now, yes fee will get includet but not enough time atm ;)

    You mean the Start Amount or what? Start Amount IS already configurable.

    In what should i change it that its clear?
    Full words crash the sign space...
    Maybe: A for Account, and H for Holding / Hand?

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

Share This Page