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

    Dthen

    Okay, thank you. I will be watching with interest.
     
  3. i will also be waiting for ico6 support :)
     
  4. Offline

    Spice_king

    Eh, Register as a plugin sounds like a good idea on paper, but it is a little harder to get working fast. So I "made" a quick fix, just updated the iCo6 method's code that checks to see if it is iConomy6 or not. Update inbound.

    Edit: Ok @Dthen and @Spidi I updated my post with the new version that works with iConomy 6.
     
  5. Will try it out thanks :)
     
  6. Offline

    Dthen

    Excellent! Works perfectly.
     
  7. Offline

    Spice_king

    Good to hear! I'm going to mucking with some of the code to try and get something to behave how I think it might. @Yhtomitsu suggested to have an image for the currency and @enenra wanted it to only show on the inventory screen. Spout Java Docs here I come!

    Edit: Still looks hacky on the inventory screen, sorry @enenra. I can see when a player inventory gets opened and closed, but can't place anything over the gray backdrop.
     
  8. Offline

    Pomme72

    Hi, here it is a lil bug :) I hope you can fix it quick ! :p

    [​IMG]

    You see ? The bug with the numbers ? :)

    Ty ! :p
     
  9. Offline

    Silvo

    Nice, but why is the must the currency be dollars? Cofigurable currency display please :( (global setting of course, not per player)
     
  10. Offline

    Spice_king

    I'll fix that after work today, I know what causes that.
    I get it from your economy system, look up how to change the unit of currency on your economy's page. I only get the formated balance from the economies, I never need to guess what your currency is that way.
     
  11. Offline

    Silvo

    Essentials allows us just to change the currency character ... like $->G :(
     
  12. Offline

    Spice_king

    Then use a real economy, like BOSEconomy. I tested Essentials as far as it displays and I will over look it with the preferred option. Never looked at the config for Essentials economy, so I never knew about that limitation. If you need some help setting up BOSEconomy, I can help you with what I know about it. I use it on my server, is a complete package. Banks, wages, and subscriptions all built in.
     
  13. Offline

    Pomme72

    Ok, please quote me when it's fixed, for update mine. :)
     
  14. Offline

    Pomme72


    SO ? xD
     
  15. Offline

    Spice_king

    Sorry a little thing called work got in the way. Also Steve Jobs is dead, which sucks for Apple and Apple people. I'm a PC user and I'm still sad over that. Steve being dead won't stop me from getting my iPhone this weekend.
     
  16. Offline

    ChrisX930

    Heya, is it possible to use this Plugin with an Image (I won't use the Text: You have %s with you)
    Like this: [image-url] %s
     
  17. Offline

    ThePlasticBling

    This isn't working for me. Hears my log:

    Code:
    2011-10-12 17:20:35 [INFO] Starting minecraft server version Beta 1.8.1
    2011-10-12 17:20:35 [INFO] Loading properties
    2011-10-12 17:20:35 [INFO] Starting Minecraft server on 192.168.1.101:25565
    2011-10-12 17:20:35 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    2011-10-12 17:20:35 [WARNING] The server will make no attempt to authenticate usernames. Beware.
    2011-10-12 17:20:35 [WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
    2011-10-12 17:20:35 [WARNING] To change this, set "online-mode" to "true" in the server.settings file.
    2011-10-12 17:20:35 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1067-g6301507-b1185jnks (MC: 1.8.1)
    2011-10-12 17:20:36 [INFO] [Register] Preferred method [null] not found, using first found.
    2011-10-12 17:20:36 [INFO] [Register] version 1.5 is enabled.
    2011-10-12 17:20:36 [INFO] Spout 1.0.6.381 has been initialized
    2011-10-12 17:20:36 [INFO] Preparing level "world"
    2011-10-12 17:20:36 [INFO] Default game type: 0
    2011-10-12 17:20:36 [INFO] Preparing start region for level 0 (Seed: 1883283714155614029)
    2011-10-12 17:20:37 [INFO] Preparing spawn area: 40%
    2011-10-12 17:20:38 [INFO] Preparing start region for level 1 (Seed: -3329720945189263696)
    2011-10-12 17:20:38 [INFO] Preparing spawn area: 20%
    2011-10-12 17:20:39 [INFO] [Alerter] ALERTER v1.35 is enabled! created by: Patrick_pk91
    2011-10-12 17:20:39 [INFO] [Alerter] Permission system not detected, defaulting to OP + default permissions
    2011-10-12 17:20:40 [INFO] [Alerter] Database area ''world''' FOUND and loaded!!
    2011-10-12 17:20:40 [INFO] [Alerter]: Searching upgrade...(maybe during few second)
    2011-10-12 17:20:41 [INFO] [Alerter]: Your version of Alerter is the lastest!
    2011-10-12 17:20:41 [INFO] [Alerter]: Current language: English
    2011-10-12 17:20:41 [INFO] BOSEconomy: Could not locate the Permissions plugin. Option 'use-permissions-plugin' will be ignored.
    2011-10-12 17:20:41 [INFO] BOSEconomy v0.7.2 enabled.
    2011-10-12 17:20:41 [INFO] [MoneyDrop] Startup complete.
    2011-10-12 17:20:41 [INFO] SpoutWallet v1.4.3 is now enabled!
    2011-10-12 17:20:41 [INFO] [SpoutWallet] Payment method found (BOSEconomy version: 0.7.0)
    2011-10-12 17:20:41 [INFO] [Register] Payment method found (BOSEconomy version: 0.7.0)
    2011-10-12 17:20:41 [INFO] Server permissions file permissions.yml is empty, ignoring it
    2011-10-12 17:20:42 [INFO] Done (0.535s)! For help, type "help" or "?"
    2011-10-12 17:20:47 [INFO] [MoneyDrop] Connected to Register. Item pickups functional.
    
    And my config:

    Code:
    UpdateSpeed: 20
    yOffset: 3
    Funds: You have %s with you.
    xOffset: 3
    Rank: 'Your rank is: #%s'
    location: TOP_LEFT
    color:
        rank:
            red: 255
            blue: 255
            green: 255
        funds:
            red: 255
            blue: 255
            green: 255
    ignoreEssentials: true
    ShowRank: true
    
    Please Help! Thanks!!!
     
  18. Offline

    Spice_king

    Short answer: No
    Long answer: I'm working on it so you can have an image, but not need to 'play' with it to get it to work without making server admins angry with me from not making the plugin smart enough to place the image by it's self, or full auto. Right now it would full manual.
    I'm not seeing anything wrong right now in the log/config (other than offline mode), give me a part of the log that has a SpoutCraft user logging in.
     
  19. Offline

    Pomme72

    I have this bug however :(
     
  20. Offline

    wolf hatake

    same bug here
     
  21. Offline

    Spice_king

    Sorry, have been away from a computer that can use Git and NetBeans nicely. iPod Touch can post but not code and use Git. Should be able to push a new version soon.

    EDIT: Aannnddd it turns out, that a built copy, with the fix, been out there since the 10th already. Oops! This "having a job" thing must be messing with my head. Update to 1.4.3 and see if it can still happen.
     
  22. Offline

    Pomme72

    Still happened with 1.4.3 :(
     
  23. Offline

    yosimi

    i can see the rank help!
     
  24. Offline

    darek

    what are the commands
     
  25. Offline

    Guy_de_Siguro

    How about making it not display permanently but use an "achievment-popup" when a change happens... So somewhat like this, say someone buys something in your shop and then a popup shows up and says "your balance has increased to $10010"

    Or something like that, i can help with coding if you want ;)
     
  26. Offline

    Pomme72

    Inactive.
     
  27. Offline

    gamerphate

    I love this plugin but it gives me errors in console when used with mmotarget plugin sometimes. I doesn't seem to hurt anything, but the console spam warnings are a concern.

    It is basically something saying that it isn't set for a default size. I played around with the formatting quite a bit and it still does this. Perhaps it is a conflict between the two?
     
  28. Offline

    Spice_king

    OK, so sorry for not logging in for the last month or two. I got busy with work and did not have the time to work on this. I have some free time as I have no job now, so I look forward to fixing the out standing issues that are present.
    I just did not have the time, sorry about that.

    That has been fixed as of 1.4.3.1, but watch out for the minor bug I put in there.
    That would work, IF the economy systems had an event that I could count on being in each one. I don't think checking every players balance and comparing it to a stored old balance each update cycle is very efficient and may lag the server.
    I'm not sure what your problem is.
    Novel hint: Try reading the post

    Edit: Swapping from Register to Vault! Just making the swap reduced my plugin's size to less than half of what it was before.:D Also, this change adds more economy systems support (iConomy 4,5,6, BOSEconomy 6 & 7, EssentialsEcon, 3Co, MultiCurrency, MineConomy, eWallet, EconXP, CurrencyCore)
     
  29. Offline

    Acemond

    Isn't working at all when i activate REI's Minimap
    /wallet spawns an error message : NULLPointerException at UpdateGUI and onSecond and Access$000 and 2 or 3 more...
    Help T_T
     
  30. Offline

    Spice_king

    Please post the log to pastebin (or similar website) with those errors and a few lines before the error. Right now I can't use a real computer to test stuff with, as an iPhone only goes so far interms of development.

    Anyway, that minimap is a server-side plugin or is it one of those new client-side addons?
     

Share This Page