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

    Moe041991

    CB1000, Spout 1.0.1
    Code:
    2011-08-09 21:20:19 [SEVERE] Could not pass event PLUGIN_DISABLE to SpoutWallet
    java.lang.NullPointerException
    	at me.spiceking.plugins.spoutwallet.listeners.registerListener.onPluginDisable(registerListener.java:40)
    	at org.bukkit.plugin.java.JavaPluginLoader$45.execute(JavaPluginLoader.java:555)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    	at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:904)
    	at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:288)
    	at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:281)
    	at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:157)
    	at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:312)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:391)
     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    @Spice_king The writing of this one and AmbientSeasons 1.3 are on the same spot, so you cant read either one. any chance to change the position?

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

    Spice_king

    What plugin did you disable?
     
  4. Offline

    Moe041991

    I actualy none. That happened while shutting down the server.
     
  5. Offline

    Spice_king

    There is a config option to change the height as to not conflict with others.

    Huh, could you post more of the server.log?

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

    Moe041991

    Code:
    2011-08-09 21:30:11 [INFO] Forcing save..
    2011-08-09 21:30:11 [INFO] Save complete.
    2011-08-09 21:30:13 [INFO] Stopping the server..
    2011-08-09 21:30:13 [INFO] Unknown console command. Type "help" for help.
    2011-08-09 21:30:13 [INFO] Stopping server
    2011-08-09 21:30:13 [INFO] SpoutWallet v1.3.0 is now disabled!
    2011-08-09 21:30:13 [INFO] [CreeperHeal] Disabled
    2011-08-09 21:30:13 [INFO] [LC] Level Defence Unloaded
    2011-08-09 21:30:13 [INFO] [HeavenActivity] Update timer stopped
    2011-08-09 21:30:13 [INFO] [HeroicDeath] 1.8.2.157 disabled.
    2011-08-09 21:30:13 [INFO] BiomeSound version 1.1 is disabled!
    2011-08-09 21:30:13 [INFO] [MinecraftViewer] v1.0d Plugin Disabled.
    2011-08-09 21:30:13 [INFO] [Hungry] Unloading Effects...
    2011-08-09 21:30:13 [INFO] [Hungry] Attempting to write configuration files to disk...
    2011-08-09 21:30:13 [INFO] [Hungry] Succesfully saved configuration to disk.
    2011-08-09 21:30:13 [INFO] [Hungry] Hungry disabled!
    2011-08-09 21:30:13 [INFO] SpoutCast version 1.5 unloaded.
    2011-08-09 21:30:13 [INFO] [iConomy] Plugin disabled.
    2011-08-09 21:30:13 [INFO] [Essentials] Payment method was disabled. No longer accepting payments.
    2011-08-09 21:30:13 [SEVERE] Could not pass event PLUGIN_DISABLE to SpoutWallet
    java.lang.NullPointerException
    	at me.spiceking.plugins.spoutwallet.listeners.registerListener.onPluginDisable(registerListener.java:40)
    	at org.bukkit.plugin.java.JavaPluginLoader$45.execute(JavaPluginLoader.java:555)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    	at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:904)
    	at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:288)
    	at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:281)
    	at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:157)
    	at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:312)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:391)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-08-09 21:30:13 [INFO] [Gold2Economy] Un-hooked from iConomy. Gold2Economy will disable until iConomy is enabled.
    2011-08-09 21:30:13 [INFO] [ChestShop] Economy plugin disabled!
    2011-08-09 21:30:13 [INFO] [LC] Level Mining Unloaded
    2011-08-09 21:30:13 [INFO] [Permissions] (Phoenix) saved all data.
    2011-08-09 21:30:13 [INFO] [Permissions] (Phoenix) disabled successfully.
    2011-08-09 21:30:13 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-08-09 21:30:13 [INFO] [Gold2Economy] Permissions disabled. Falling back to OP only for /gi reload
    2011-08-09 21:30:13 [INFO] PvPTime: has been disabled (including timers).
    2011-08-09 21:30:13 [INFO] [LC] Level Range Unloaded
    2011-08-09 21:30:13 [INFO] [LC] LevelCraftCore Unloaded
    2011-08-09 21:30:13 [INFO] [HeroChat] HeroChat version 4.10.3 disabled.
    2011-08-09 21:30:13 [INFO] [Residence] - Saved Residences...
    2011-08-09 21:30:13 [INFO] [Residence] Disabled!
    2011-08-09 21:30:13 [INFO] PhoenixTerrainMod v0.6 is now disabled
    2011-08-09 21:30:13 [INFO] [LC] Level Combat Unloaded
    2011-08-09 21:30:13 [INFO] [Gold2Economy] Plugin disabled. Version 1.0
    2011-08-09 21:30:13 [INFO] [AmbientSeasons] is now disabled!
    2011-08-09 21:30:13 [INFO] [ChestShop] version 3.00 BETA 11 shutting down!
    2011-08-09 21:30:13 [INFO] LWC: Freeing SQLite
    2011-08-09 21:30:13 [INFO] [LogOres] version [0.7] unloading
    2011-08-09 21:30:13 [INFO] [LogOres] version [0.7] unloaded
    2011-08-09 21:30:13 [INFO] [CFBanner] CFBanner has been disabled.
    2011-08-09 21:30:13 [INFO] [CFBanner] CFBanner was created by CainFoool
    2011-08-09 21:30:13 [INFO] ResidenceSigns disabled.
    2011-08-09 21:30:13 [INFO] [NoCheat] version [1.11c] is disabled.
    2011-08-09 21:30:13 [INFO] Saving chunks
     
  7. Offline

    Spice_king

    Do you happen to have both Essentials and iConomy installed?
     
  8. Offline

    Moe041991

    yes, i have Essentials and EssentialsSpawn. Never caused any problem.
     
  9. Offline

    Spice_king

    Essentials also has an economy system in it, which Register also picks up. Kinda wish they would put it in a separate plugin. I assume you have iConomy because it has more plugins for it or something like that?
     
  10. Offline

    Moe041991

    Hmm cant i tell he API which plugin i wish to use?
    Yes i use iconomy for that reason.
     
  11. Offline

    Spice_king

    There is a "preferred" payment method inside Register, so I'll forward that out to the config, just so that Essentials does not bug us and get in there when we have others systems.
    Edit: Found what starts your error, and fixed it in theory, still have not replicated your error. [bedrock]
    Edit2: Now I have replicated your error, now on to making it never happen!
     
  12. Offline

    chartsngraphs

    I'm using BOSEco and I do have Essentials installed as well (obviously not for the economy) but the issue I'm having is that no text is showing up at all on my screen. I'm receiving no errors reported, just that I don't see anything.
     
  13. Offline

    Spice_king

    Have you tried v1.3.1 with ignoreEssentials set to false in the config?
     
  14. Offline

    chartsngraphs

    I just downloaded the plugin maybe 30 minutes ago, so I assume it's the most up to date version. lol. Yes, I've also tried both false and true in the config for ignoreEssentials.
     
  15. Offline

    Spice_king

    I meant true. :p Just a little busy with things, got my mind in a mess. Are you using the Spout launcher on the client and have Spout 1.0.1 on the server?
     
  16. Offline

    chartsngraphs

    Hm. I wasn't aware I also needed a client mod. I did just install it though. So now I have the client and I've had Spout 1.0.1 on the server.
    This is my config:
    Code:
    UpdateSpeed: 20
    Funds: You have %s with you.
    Rank: 'Your rank is: #%s'
    Height: 3
    ignoreEssentials: false
    ShowRank: true
    
    In the server console it does seem to find BOSEco as noted by:
    Code:
    22:23:14 [INFO] [SpoutWallet] Payment method found <BOSEconomy version: 0.7.0>
    Still, with the client mod + Spout 1.0.1 on the server, I seem to not have any information appear on screen.
     
  17. Offline

    Spice_king

    Does the server log show a line like: [INFO] [Spout] Successfully authenticated Spice_King's Spoutcraft client. Running client version: 101
     
  18. Offline

    chartsngraphs

    Actually I re-installed the mod by itself, as I had others as well. So now that I'm running nothing but the spout client and try running my server I get this:
    [​IMG]

    I can log in just fine. But the instant I take a step or move in any direction I am disconnected.

    Edit:
    Also just reverted back to my old bin folder and I receive no such errors.

    Only thing I can think of is a possible incompatibility with Spout 1.0.1 and some other plugin that I'm using except for that it doesn't occur until I have the client mod installed. D: lol
     
  19. Offline

    Spice_king

    Ah ha! Old "SpoutCraft" client! V17 is BukkitContrib and it does not play nice with Spout, please use the Spout Launcher to get Spoutcraft v101!
     
  20. Offline

    Ross Gosling

    @Spice_king

    It doesn't show up anywhere is there a command to make your balance appear?
     
  21. Offline

    Spice_king

    Yes, there it, but as my post says, this plugin was a request by my brother. I took it as a chance to learn some Java and the Bukkit and Spout APIs.
     
  22. Offline

    Ross Gosling

    so... whats the command ?
     
  23. Offline

    Spice_king

    Check your economy systems page, as this plugin only looks to others.
     
  24. Offline

    darkcloud784

    Anyway you can add in a display command so it doesn't display all the time. Like /wallet
     
  25. Offline

    Spice_king

    Per-player toggle coming up!
     
  26. Offline

    Forecaster

    Does not seem to be working with spout client 1.0.2.0.137 (a dev build) but works fine with 1.0.1
     
  27. Offline

    Spice_king

    Thanks for pointing that out, I have not done any testing with dev builds yet, only 1.0.1 and 1.0.0.

    Just for testing purposes, you you using a dev build of the spout plugin?
     
  28. Offline

    Forecaster

    I was using dev build 1.0.2.0.137 of the spout launcher on my laptop and noticed that it didn't display the info at all. While it worked fine on 1.0.1

    As was the case with some other spout plugins I might add.
     
  29. Offline

    Spice_king

    What is the version of the Spout plugin on the server? Might be an incompatibility with SpoutCraft 1.0.2 and Spout 1.0.1.

    Edit: Dev SpoutCraft 1.0.2 and Spout 1.0.1 are incompatible, Spout does not see SP 1.0.2 builds. Tested with dev Spout 1.0.2.101 and SpoutCraft 1.0.2.137, works fine, abet some distortions as it looks like they made some changes in regard to the GUI API.
     
  30. Offline

    Forecaster

    That makes sense. They've added a lot of options in 1.0.2 which probably required updating the api.
     
  31. Offline

    lipe123

    I'm also using the 1.0.2 client and 1.0.1 server version of spout and no luck.

    I tried to update the server plugin to 1.0.2 and that did not work either :(
     

Share This Page