Inactive [ECON] SpoutWallet v1.5 - A display for your wallet [1.2.5-R5, 1.2.5-R4]

Discussion in 'Inactive/Unsupported Plugins' started by Spice_king, Aug 5, 2011.

  1. Offline

    Spice_king

    SpoutWallet - A display for your wallet:


    Please go to the BukkitDev page for the latest downloads and change log.

    Adds a line of text on screen that shows how full your wallet is. Also displays your rank. You can also toggle the display with /wallet and can use PermissionsBukkit to change who can see and who can toggle the display (P.S. Don't give toggle without use, because that's just mean!;))

    This is my first "sip" of Java from the Bukkit, and it took me a bit to get it to work.
    The plugin was a request from my brother who wanted to have something on his screen that shows his balance.

    Features:
    • Uses iConony4/5/6, BOSEconomy, EssentialsEco to find the amount of cash you are holding.
    • Shows your ranking only in iConomy5. Revoved as of V1.4.4
    • Can ignore EssentialsEco, in the event you use it for just commands.
    Requirements:
    Download SpoutWallet

    Source Code

    Sample config:
    Code:
    UpdateSpeed: 20
    yOffset: 3
    xOffset: 3
    Funds: You have %s with you.
    location: TOP_RIGHT
    color:
      rank:
        red: 255
        blue: 255
        green: 255
      funds:
        red: 255
        blue: 255
        green: 255
    
    Permissions:
    Code:
    SpoutWallet.*: Users can see and toggle the display
            Default: All players
            Grants:
                SpoutWallet.Use: true
                SpoutWallet.Toggle: true
    SpoutWallet.Use: Users can see the display
            Default: All players
    SpoutWallet.Toggle: Users can toggle the display
            Default: All players
    
    Screenshot:
    [​IMG]


    Todo list
    • Add BOSE and EssentialsEco support
    • Add config
    • Add a toggle for the display /wallet Suggested by @darkcloud784 here done in v1.4.0
    Stuff that Can't be Done Yet (Spout API change needed)

    • Add option to only show when inventory screen is open. Requested by @enenra here
    • Lock to other corners and play nice with different screen sizes. Requested by @Pawned here Done in v1.4.0
    Changelog:

    Version 1.4.4.1
    • Fixed config saving bug that was introduced by 1.4.4
    Version 1.4.4
    • Moved to Vault from Register
    • Updates for deprecated Bukkit APIs.
    • Make safe for Bukkit 1.1-R5 ;)
    More Changelog (open)

    Version 1.4.3.1
    • Fixed warnings in log (Quick fix warning: Will mess up XX_CENTER and XX_RIGHT location options, fix for this is being worked on)
    Version 1.4.3
    • Removes Widgets on disable
    Version 1.4.2
    • Added support for iConomy 6
    Version 1.4.1
    • GPLed my code
    • Fixed yOffset for Funds text
    • Added enum catches
    Version 1.4.0
    • Fixed on Spout 1.0.5 builds
    • Added Permissions (Bukkit)
    • Added colors
    • Can now use a corner other than the top left!
    • Toggle it!
    Version 1.3.1
    • Added an option to ignore Essentials, in case you use it and iConomy or BOSEcon at the same time
    • Fixed a disable error, pointed out by @Moe041991
    Version 1.3.0
    • Added support for EssentialsEcon and iConomy4 via Register
    Version 1.2.0
    • Added BOSEconomy!
    Version 1.1.0
    • Added config
    • Adds the ability to change the default messages
    • Can hide rank message
    • Change how fast it updates
    • Move the message's location on screen (up or down)
    Version 1.0.1
    • Fixed crash with non-authed or non-SpoutCraft client
    Version 1.0.0
    • First Version


    This plugin is now GPLv3!
    [​IMG]
     
    Taranis01, olimoli123 and Koutacles like this.
  2. Offline

    Spice_king

    @nossr50 is adding that stuff to mcMMO, so I might as well not do anything, or help by forking and working on a pull request
    As for the other one, no to sure, would have to put sometime into examining the code.
     
  3. Offline

    PixelEather

    Thanks, it works perfectly
    A name for your plugin? Money indicator :)
     
  4. Offline

    skeletonofchaos

    This is a great plugin people.
     
  5. Offline

    enenra

    How about only showing the wallet when the inventory has been opened? Would be in line with the setup in most RPGs. :)
     
  6. Offline

    Shinfo

    Excellent. Thanks.
    Off topic, just I was wondering if there was a plugin to display static text the same way you do? I want to display my servers name and IP above the money/rank.
     
  7. Offline

    Yhtomitsu

    was wondering if you could put it in a box or something and just have the number and maybe an icon next to it?
    so something like '500 g' or something where the 'g' would be like a stack of coins
     
  8. Offline

    Spice_king

    I'm not sure, but feel free to look at my source code!
    I used the formatted result from iConomy, so the money and name of the money comes from iConomy and is not static. Now on to the icon, that would be hard to do with Spout as it it right now.
    Unfortunately, Spout does not have a screen for the inventory, unless i have missed it. Be happy to add an option to do it, and I just might have a round about method to get it: Just hide it if they don't have their inventory open! Still shows up
     
  9. Offline

    nossr50

    This is true, I'm adding XP bars and XP tracking very soon to mcMMO.
     
  10. Offline

    Spice_king

    All right! BOSEconomy added! Took me longer than needed as I was busy with other things.
     
  11. Offline

    Nytemare3701

    Seconding. <MONEY>:# would be perfect for me.
     
  12. Offline

    Spice_king

    In the config set Funds to Money :%s
     
  13. Offline

    noahwhygodwhy

    does this support the essentials economy system?
     
  14. Offline

    Spice_king

    Not yet, I got to look up the API on it then add it. Should be sometime today or tomorrow.
     
  15. Offline

    Yhtomitsu

    Thats ok I was just wondering excellent plugin anyway, maybe when the realese newer versions of spout :)
     
  16. Offline

    Spice_king

    Well with the right amount of tweaking, it could be done. But it would dump a tone of config work on the admin, and I don't what to do that. Just not clean and simple for me to add, imho.

    Would end up having the admin place the image (via config) , but the image would have to be hosted on a web server. For the sake of informing you, the restriction on the texture is:
     
  17. Offline

    riuthamus

    THanks for the support! :p
     
  18. Offline

    Daxiongmao87

    how do i display secondary currency? Such as cents? It's an option in iconomy to have money work this way.
     
  19. Offline

    olimoli123

    FFS MAN THIS IS AMAZING
     
    Spice_king likes this.
  20. Offline

    ClonedInsanity

    This is a very nice plugin, but personally I also like the idea of having a box or something more graphical than just text.
     
  21. Offline

    DrakeBD

    how come when u click the download link it shows as v1.0.0 not v1.2 even shows that in the plugin list
     
  22. Offline

    Bloodykittens

    Is the spout client version needed as well? Or am I doing something wrong?
    I don't have the client. I'm not getting any errors. So I'm guessing thats the problem.
     
  23. Offline

    Spice_king

    Sorry, I was out yesterday for the afternoon to the campsite my grandparents once owned, some 20 years ago with some of the extended family. Came back late and sore.

    /massreply

    Just set iConomy up, I get the formatted balance right from the API. I go from grabbing the balance right to showing it. So if you set in your ./plugins/iConomy/config.yml like this:
    Code:
    System:
        Formatting:
            Minor: true                                  # Example (true) 0.23 Coins and 1.23 Dollars (false) 0.23 Dollars and 1.23 Dollars
            Seperate: true                               # Example (true) 1 Dollar, 23 Coins (false) 1.23 Dollars (Only if Minor is true)
    iConomy will return 1 Dollar, 23 Coins to me at all times.

    I will look into that after adding Essentials Econ support!

    My bad should be fixed!

    Yes, you need the client, as Mojang did not provide a way to do this sort of thing. Good thing is that it's not hard to get!
     
  24. Offline

    Pawned

    Could you add a config to set where the text should display? I'd like mine to be on the bottom-left, I managed to do that by changing the height, but the text will move up/down depending on the games resolution, which makes it not very effective for the whole server.
     
  25. Offline

    Spice_king

    There is some issues with Spout and locations of widgets (they are going to so some scaling to the location system last I heard), but barring those issues; Why bottom-left? Did you mean bottom-right? Bottom-left is where the chat sits, unless someone has moved it with a plugin.
     
  26. Offline

    Pawned

    @Spice_king Bottom-left, under the chat, next to the item bar :p

    Like so:

    [​IMG]
     
  27. Offline

    Spice_king

    @Pawned By the looks of things that would be right were the chat box opens to type. I can't help in the regard of screen size. @Afforess has made the two API's that I could use static (they say the screen is the same size all the time!) and useless right now:
    From: https://github.com/SpoutDev/Spout/issues/101#issuecomment-1712107

    So, I'm sorry that I can't fix the issue you have right now, without some changes to Spout! :'( I personalty wanted it place it in the bottom-right my self. :( I'll add a spot in my post of stuff I can't do without Spout changes. [cake]
     
  28. Offline

    Pawned

    @Spice_king Yeah, but it'd do that even on the bottom_right, so makes no different :p.

    Thanks for the reply anyway; hopefully they can get something in Spout soon to make it possible :).
     
  29. Offline

    PhotonLance

    i think ur plugin not work with Vault (((
     
  30. Offline

    lipe123

    just installed this and used /plugman load SpoutWallet and got:

    2011-08-08 23:55:28 [INFO] SpoutWallet v1.3.0 is now enabled!
    2011-08-08 23:55:30 [WARNING] Task of 'SpoutWallet' generated an exception
    java.lang.NullPointerException
    at me.spiceking.plugins.spoutwallet.SpoutWallet.updateGUI(SpoutWallet.java:150)
    at me.spiceking.plugins.spoutwallet.SpoutWallet.onSecond(SpoutWallet.java:112)
    at me.spiceking.plugins.spoutwallet.SpoutWallet.access$000(SpoutWallet.java:28)
    at me.spiceking.plugins.spoutwallet.SpoutWallet$1.run(SpoutWallet.java:100)
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:438)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    Using spout 1.01 on my server and the spoutcraft client. Oh and Essentials economy (ess vs 2.5.6)
     
  31. Offline

    Spice_king

    I'll do testing and make it work if it does not, but I should work as is. I use Register to support iConomy 4 and 5, BOSEconomy, and Essentials economy, embedded to not need the admin to download anything.
    Funny, it's crashing on the line that says:
    Code:
                fundsLabel.setText("Looks like a supported economy system is not installed or not working");
    You are using PlugMan, correct? I did not do any testing regarding plugin managers, just did /reload to install new dev builds to my LAN test server. I'll look into it today.
    Edit: I can't seem to reproduce this error! What are the plugins you have? What CraftBukkit build are you on? 1000 is the only one supported due to Spout not working quite right on the some of the newer builds.
    Edit2: Huh, loading the plugin mid-game does not grab the economy methods. Fixing sometime today or tomorrow. Workaround for now, disable then re-enable your economy plugin.
     

Share This Page