Give Anything Listener
Introduction
This is a plugin that works with Votifier 1.8 or higher, and as such should be placed inside the plugins folder NOT the listeners one. | |
This plugin listens to voting events passed from Votifier and allows you to reward players with anything when they vote for your server. | |
If you can type it as a command you can use it to in this plugin! | |
The Plugin works like a lot of the other listeners, but gives the user a detailed Configuration, on how to setup the broadcast message, and the colour / control codes they can use, Like {BOLD} etc... | |
This Plugin REQUIRES Votifier 1.8 or above! | |
When installing you must place the GAListener.jar into your /plugins folder. | |
It will then create a config.yml inside of the folder which you can edit to your liking! |
Configuration
Configuration information (Including Lucky Voters can be found) Configuration Page!
Here's a video tutorial thanks to Koz4Christ!
Metrics
This plugin utilizes Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
You can disable the stat collection via /plugins/PluginMetrics/config.yml if you wish.
Sponsors
Sponsored by MC-Index! For all your voting needs! http://www.minecraft-index.com/
Please create a ticket with any issues you are having and we would be happy to help, don't post it on the front page!
In reply to ijonasss:
In reply to MrsKliper:
It would be useful if the source was on github. :)
Update please! 1.12
Please update to 1.12!
Will there be 1.12 support soon?
No longer works for 1.12: https://gyazo.com/9f6f7adaa2f31b391bfbeb33acd275b6
In reply to BillyGalbreath:
[10:50:35 WARN]: Exception in thread "Craft Scheduler Thread - 22"
[10:50:35 WARN]: org.apache.commons.lang.UnhandledException: Plugin GAListener v1.3.2 generated an exception while executing task 521
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoSuchMethodError: org.bukkit.Server._INVALID_getOnlinePlayers()[Lorg/bukkit/entity/Player;
at com.swifteh.GAL.RewardTask.run(RewardTask.java:37)
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:59)
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
... 3 more
WARN org.apache.commons.lang.UnhandledException: Plugin GAListener v1.3.2 generated an exception while executing task 474 12.03 18:07:58 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56) 12.03 18:07:58 [Server] INFO at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 12.03 18:07:58 [Server] INFO at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 12.03 18:07:58 [Server] INFO at java.lang.Thread.run(Thread.java:745) 12.03 18:07:58 [Server] INFO Caused by: java.lang.NoSuchMethodError: org.bukkit.Server._INVALID_getOnlinePlayers()[Lorg/bukkit/entity/Player; 12.03 18:07:58 [Server] INFO at com.swifteh.GAL.Metrics.postPlugin(Metrics.java:335) 12.03 18:07:58 [Server] INFO at com.swifteh.GAL.Metrics.access$4(Metrics.java:328) 12.03 18:07:58 [Server] INFO at com.swifteh.GAL.Metrics$1.run(Metrics.java:223) 12.03 18:07:58 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) 12.03 18:07:58 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) 12.03 18:07:58 [Server] INFO ... 3 more
Hey , little question here , my server has the "multiverse" and "perworldinventory" plugins , is it possible to make GAlistener give items to players only once they enter a certain world ?
Thanks for helping c:
Hello, after testing voting today it seems that GAListener is not giving the voter vote rewards or broadcasting the on vote messages. The votes register fine, as their vote numbers displayed on /vote go up as usual, and the sites being voted from connect to my server's votifier just fine, so I know for a fact the plugins are at least working.
GAListener config:http://pastebin.com/yYs60i7a
Any help is appreciated, thanks again!
https://gyazo.com/b9203f4a16519c7ad096a38fc1509d22
kk, seems not to work on my Prison server but works on all other ones.
How do I stop players from seeing 'has voted from {service} 290463875 with address their (IP)?
Seeing as this project has been abandoned on Spigot, and a non-UUID supported version exists here, I'd like to let you all know that I've made a replacement plugin called "TsunamiListener" that works on 1.10.2+ and has FULL UUID support. It allows you to run commands when a player votes. It offers an "offline queue" so that if a player votes while they're offline, they may receive their vote rewards upon login. At the time of writing this the plugin is under review by Bukkit and it will be public shortly.
Give TsunamiListener a try, it's the next great Votifier listener! https://dev.bukkit.org/bukkit-plugins/tsunami-listener/
@Cop_Derp_SSundee
That's exactly why UUID support is needed...
Server received vote for offline player named Bob. Server gets UUID from name at that moment using UUID from OfflinePlayer object. Bob then changes his name to Mary, because gender assumptions. Sally changes her name to Bob and logs into server where Bob voted. Sally will not receive Bob's reward even though her name is now Bob because of UUID support. Mary (the original Bob that voted as Bob) finally comes online and receives reward.
Anyways, why I'm here is I cant seem to get the API in this plugin to work correctly. There is a RewardEvent I am listening for and I am modifying the broadcast message with RewardEvent#setBroadcastMessage(String) but the changes dont seem to be taking. I'm simply trying to suppress the broadcasted message (set the message to empty String ""). I know its triggering correctly because I am debugging it to console when it happens. http://prnt.sc/d1aebu
I was going to post a ticket, but the developers/maintainers seem to be MIA and havent been on this site in months. So if any of you fellow developers know a way, let me know please.
@Gunnerrrrr
UUID support will never happen as names can be changed for instance
my name was Bl4ckscor3_ I change my name to IHaxx Someone else comes along and uses Bl4ckscor3_
What are the service name for each thing?
How do I configure this plugin to ignore votes for offline players?
When a player mistypes their playername while voting, it seems like my two choices are: 1) queue up the vote indefinitely because a player with the mistyped name is unlikely to ever join. 2) initiate the rewards with a mistyped playername which unfortunately tends to produce a lot of errors in the logs and surprisingly frequently finds another similarly named, but different player on a busy server to give the rewards to.
Is source code available?