VaultListener
JCVaultListener
JCVaultListener is a plugin that works in conjunction with Votifier 1.8, or better, to receive voting events allowing you to reward players with currency when they vote for your server. JCVaultListener uses Vault to interface with many popular econony plugins.
Features
- Multi-economy support - iConomy 4,5,6, BOSEconomy 6 & 7, EssentialsEcon, 3Co, MultiCurrency, eWallet, EconXP, CurrencyCore, CraftConomy, AEco, and more (thanks to the great work by Sleaker and his Vault team.) See Vault for a complete list of supported economy plugins.
- Pays online and offline players instantly. No queues to get lost during server reboots.
- Custom reward amounts/types for different voting services (+).
- Two reward types:
- fixed - every player receives a fixed amount
- rate - reward is a percentage of a player's balance or a fixed amount, whichever is larger.
- Reward amount can be adorned with a prefix and/or suffix to set currency names and/or symbols.
- Optional player verification to ignore votes from players not known to your server. (+)
- Configurable messages for confirming vote and payment to player.
- Configurable broadcast message sent to online players.
- Colorized multi-line messages.
(+) New feature.
Test Validation & Verification
JCVaultListener has been extensively tested against the following components:
Problems?
If you run into problems with JCVaultListener, we'd like to hear from you. However, we expect that you do some research first. Make sure to check out the Troubleshooting JCVaultListener section; check this site's discussions and Tickets to make sure that your issue hasn't already been addressed. If not, please feel free to submit a Ticket.
Revision History
- v2.0.3 05/10/13
- Tested under CB 1.5.2-R0.1 Beta (b2771)
- 04/21/13
- Tested under CB 1.5.1-R0.2 Beta (b2754)
- v2.0.3 03/22/13
- Tested under CB 1.5.1-R0.1 Dev (b2723)
- v2.0.3 01/10/13
- Tested under CB 1.4.6-R0.3 Beta (b2586)
- v2.0.3 11/18/12
- Tested under CB 1.4.5-R0.1 Beta (b2483)
- v2.0.3 10/15/12
- Fixed what was supposed to be a simple fix. Custom messages, colors, and rewards should be functioning as expected.
- v2.0.2 09/21/12
- Minor bug fix. Periods in SERVICE_NAME were treated as configuration path separators. Path separator changed to '/'. Thank you to ModernDragoness for reporting the issue.
- v2.0.1 07/08/12
- Removed build artifacts that were causing McMyAdmin some grief.
- v2.0 06/11/12
- Converted to plugin supporting Votifier's
VotifierEvent
- Added support for custom reward configuration per voting service.
- Added optional player verification for ignoring votes from player unknown to a server.
- Eliminates potential concurrency issues with certain economy plugins
- Better error handling and diagnostics.
- Converted to plugin supporting Votifier's
- v1.1.5, 05/02/12
- Added ability to use message font styles in customized messages.
- Changed default reward_suffix from " USD" to "" (i.e. no suffix unless explicitly configured).
- Multi-line customized messages. Embed newline ("\n") in message to split into separate lines.
- v1.1.4, 03/23/12
- Cosmetic change only, no functional or operational changes.
- Payment type value is now correctly reported in configuration debug dump.
- v1.1.3, 03/15/12
- Tested and validated with CraftBukkit Beta Build 1.2.3-R0.2
- Fixed debug property not being saved when creating default configuration
- Added additional debug information for testing and verifying operation.
- Fixed messages not showing correct reward amount when using rate-based calculations.
- v1.1.2, 03/11/12
- Tested and validated against CraftBukkit beta Build 1.2.3-R0.2 (#2060)
- Added reward prefix and suffix properties to set currency names or symbols.
- Rewards can now be a fixed amount or a percentage of player's balance.
- v1.1.1, 01/30/12
- Added basic chat color support
- v1.1, 01/29/12
- Added broadcast message option to send a configurable message to all online players.
- v1.0, 12/06/11
- Initial release.
Installation
See JCVaultListener Installation
Configuration
See JCVaultListener Configuration
@Rowtag87
Based on the log information provided. Votifier successfully loads the VaultListener class. However,
is an error generated by Votifier, not VaultListener, indicating that it had a problem creating a socket to listen for votes. Please see Troubleshooting Vault Listener Problem Source #2 & #3.
What means that:
2012-03-14 16:52:05 [INFO] Loaded vote listener: VaultListener 2012-03-14 16:52:05 [INFO] Votifier enabled. 2012-03-14 16:52:05 [SEVERE] Error initializing vote receiver
Port is open and the Votofier check is also working!
@Tealk123
See Troubleshooting VaultListener, Problem Source #3.
Anyone know how it works if i have 2 server with 2 ips on one root, the votifier writer mine it is not running, but he dont answer me why -_-
@rotzak123
And the problem was....?
Found the problem :D thank you.
@frelling
I asked my host, and all the ports are open.
When i click on "Test votifier" It says that it maked connection.
@rotzak123
Sounds like that may be the problem. Keep in mind that many hosting providers host more than one server per IP address and generally lock down ports until you request one to be opened.
I'm assuming you're using Minestatus. Have you used the Test Votifier function on the server Edit page? If the port is not open, it should fail. If it is is successful, then most likely there is another server already using that IP for Votifier. Given that port 8192 is the default port used without any configuration, I'd be willing to bet dollars to donuts that someone else is already using that port.
@frelling
Ok, i am hosting my server, so i gues i have to ask my host.
@rotzak123
Have you made sure that port 8192 is actually open to allow your server to receive notification messages. See Troubleshooting VaultListener, Problem Source #2.
@Tealk123
This is not a VaultListener issue, but rather your Votifier plugin. VaultListener only processes received votes. Based on the stack trace snippet, it looks like Votifier does not like the encoding of the vote notification message. I would verify that the RSA keys are correct. The simplest would be to delete the RSA keys and have Votifier regenerate them. Then install the new public key per the instructions of the voting service (e.g. Minestatus, etc.)
@domingo15
I got 6 votes, voted myself 2 times. IGN is correct. You mean votifier right? and yes, i connected my public rsa right.
@rotzak123
maybe ur problem is that no one really voted yet, to be honest its better if u vote ur self to test it and make sure ur IGN is correct when voting.
Also, u kno that u have to go to mine status and connect ur notifier public rsa key right.
@domingo15
I did multiple test, can you maybe say what i did wrong?
I am using craftbukkit 1.2.3 Ro 2
This is what is in my votifer folder
listeners
rsa
config
vaultlisteners
this is what is in my listeners folder
vaultlistener.class
This is what is in my rsa
private
public
This is what is in my config
host: 31.25.103.42
port: 8192
listener_folder: plugins\Votifier/listeners
This is in vaultlisteners
confirm_msg=Dankjewel {IGN}, voor het voten op {SERVICE}\!
payment_msg={AMOUNT} is toegevoegd aan je account.
broadcast=true
broadcast_msg=Er is gevote op de server door {IGN}\!
reward_amount=250.0
To connect to my server i use 31.25.103.42:25578
On minestatus i have this
votifier adress: 31.25.103.42
votifier port: 8192
votifier public key: [My public key]
I hope you will find the problem
@rotzak123
lol its working perfectly your just doing something wrong, before you guys comment saying it doesn't work do multiple test --!
@Tealk123
dude, you just need to delete your whole votifier folder and generate a new one then add vault listener on the listener folder and reload your sever then it will work.
EDIT: Do multiple test first because you guys report false comments.
I gues the owner have to update.
Its the same on my server log:
2012-03-10 18:46:55 [WARNING] Exception caught while receiving a vote notification
javax.crypto.BadPaddingException Data must start with zero
at sun.security.rsa.RSAPadding.unpadV15(RSAPadding.java:308)
at sun.security.rsa.RSAPadding.unpad(RSAPadding.java:255)
at com.sun.crypto.provider.RSACipher.a(DashoA13*..)
at com.sun.crypto.provider.RSACipher.engineDoFinal(DashoA13*..)
at javax.crypto.Cipher.doFinal(DashoA13*..)
at com.vexsoftware.votifier.crypto.RSA.decrypt(RSA.java:65)
at com.vexsoftware.votifier.net.VoteReceiver.run(VoteReceiver.java:114)
It didnt work for me. When someone votes no broadcast, no money