SpoutWallet
SpoutWallet - A display for your wallet:
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.
Also shows your ranking in iConomy5.Removed in v1.4.4
- Can ignore EssentialsEco, in the event you use it for just commands.
Requirements:
- Spout
- Vault
- iConomy4/5/6, BOSEconomy, or Essentials
Download SpoutWallet
Source Code
Sample config:
UpdateSpeed: 20 ignoreEssentials: false Funds: You have %s with you. xOffset: 3 yOffset: 3 location: TOP_LEFT color: rank: red: 255 blue: 255 green: 255
Permissions:
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
Todo list
- Nothing!
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
Old Changelog:
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
-
View User Profile
-
Send Message
Posted Jun 6, 2012@Spice_King
The way nolagg examine works is it evaluates every plugin and than every task from that plug-in and the time it takes to complete. It has been very accurate so far.
Conditions, any player count, any of the 3 of 5 servers the i have spout wallet on have the same persistent usage.
They all have the same result. The latency or ms for the plugin are not a major issue that I can tell. The usage per task is only 2-3 ms per server tick. But over a 6000 tick period results in using 480-500 ms of the servers time with or without players. The next highest usage is spout at 78ms for 6000 ticks.
Setting the update speed from 20 to 60 had the same ms usage over the same 6000 server ticks.
-
View User Profile
-
Send Message
Posted Jun 5, 2012@Underbalanced
I'm not sure I would want to trust calculations from nolagg, but I'll look into using VisualVM, a Java tool that provides lots of data from CPU usage, to time to run functions, to RAM costs, to counts of java objects. All of this will proved me with a far better image of the problem than nolagg can do.
Any way.
How many player happen to be on your server? What is "updatespeed" set to? What economy is Vault using?
And as to answer your question, I'm not sure if there is a way to make my code faster, short of the economy plugins all adding events for me to hook, then only update when the event is fired.
-
View User Profile
-
Send Message
Posted Jun 4, 2012Would there be any more efficient way to write the code? This plugin actually generates the most lag on my server according to the many no lagg examines, usually 25-50x more milliseconds usage than even intensive plugins. I know i can set the time long, just thought i would breing it up.
-
View User Profile
-
Send Message
Posted May 18, 2012@EMOberger
Yes, I am, I just have very little time now a days
@gibbly96
I'm not too sure on what you mean by 'a "nice" way'. Care to fill me in?
-
View User Profile
-
Send Message
Posted May 18, 2012Any chance for a interface that show your currency in a "nice" way?
-
View User Profile
-
Send Message
Posted May 16, 2012I'm not sure if you're still working on this, but just letting you know; Spout not supports a gui when opening your inventory.
-
View User Profile
-
Send Message
Posted Mar 20, 2012@fengchiu1997
@AVirusC
1.4.4.1 totally works with 1.2.3 as is, just have to grab latest dev builds of CraftBukkit, SpoutPlugin, SpoutCraft and the latest copy of your economy plugin. Just make sure you have the right builds of stuff, that can cause bigger issues than my plugin not working right. BTW, I don't recommend running a server on development builds.
Link to proof
Edit: Just changed the tags to reflect this on the last build I've uploaded.
-
View User Profile
-
Send Message
Posted Mar 20, 2012@fengchiu1997
Not at the moment. Looking forward to an update though. =)
-
View User Profile
-
Send Message
Posted Mar 19, 2012still works for 1.2.3?
-
View User Profile
-
Send Message
Posted Mar 4, 2012@SmashboxGaming
Yeah, it will require spoutcraft for it to display text in the client like that I should imagine.
-
View User Profile
-
Send Message
Posted Feb 29, 2012Does this require SpoutCRAFT? I would imagine it does, however the requirements only list Spout.
Cheers.
-
View User Profile
-
Send Message
Posted Feb 29, 2012Just added a new version, Curse will take some time, but if you want it now, you can grab it from here: https://github.com/downloads/Spice-King/SpoutWallet/SpoutWallet-1.4.4.1.jar
Change log: Moved to Vault from Register Updates for deprecated Bukkit APIs. Make safe for Bukkit 1.1-R5 ;)
P.S.: I cut a feature with the move to Vault, rank display in iConomy5, but who will still use iCo5 on Bukkit1.1-R5 based server anyway?
-
View User Profile
-
Send Message
Posted Feb 29, 2012Just looked through the Spout JavaDocs and found that they added the event I wanted. Got to restructure code to make the feature work.Will add it later.
-
View User Profile
-
Send Message
Posted Feb 29, 2012@tomomosius
Sorry, have not had much time to play with Minecraft right now, way too much real life stuff happening. No job, family coming over and my place is a wreck, etc.. I will be getting an earful from my grandmother about that stuff. Anyway, my git work space is a total mess with half baked stashes and a dirty working tree, should take me a bit to find stuff.
-
View User Profile
-
Send Message
Posted Feb 25, 2012so yeah i guess this is dead
-
View User Profile
-
Send Message
Posted Feb 1, 2012@darkcloud784
Sorry, sorry! Have been busy as hell over the past month with work and finding a new job. They ramped up production to 30 units/week from 20 and my lead hand was wanting to get 40 units/week. I was just not fast enough for the production line and got cut. I'll see if I can spare sometime from my job hunt to finish what ever I was working on.
-
View User Profile
-
Send Message
Posted Feb 1, 2012This project dead? havent seen an update in a while.
-
View User Profile
-
Send Message
Posted Dec 29, 2011@darkcloud784
OK, I have a ball park idea as to why this happens. My warning fix was quick and rather dirty. I also never checked the XX_CENTER and XX_RIGHT options after the fix.
Why I think this happens: a line for each label that sets hight and width. EX. fundsLable.setHeight(427).setWidth(240); I'm going to try a few things and see if they solve it.
-
View User Profile
-
Send Message
Posted Dec 28, 2011I posted a ticket on github about my issue. GUI not scaling properly when set to different corners.
The spout team said its not their issue but I have had this issue with pretty much every other plugin/addon used with spoutcraft. If you cant find a solid reason it should cause this issue in your code they suggested submitting a ticket to them to ensure it gets looked at.
-
View User Profile
-
Send Message
Posted Dec 28, 2011:DDDDDDD