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!



-
View User Profile
-
Send Message
Posted Jun 21, 2014Seems like I'm not able to turn off the "onlineonly" feature.
Even when I set it to false, the players have to be online, before the server executes the command. Just me or anyone else having the same issue?
-
View User Profile
-
Send Message
Posted Jun 19, 2014Can you please tell me how to fix the plugin I was eediting the vote message and now when I type /vote /reward Or I vote it doesn't work so owner of this can you please tell me how to fix it
Here is the config copy
# GAListener v1.3.1
# http://www.minecraft-index.com
# settings section
# onlineonly - Only delivers rewards when the player is online. If they are offline it will wait and deliver when they next join the server!
# luckyvote - Enables the lucky voting section, this allows voters to have a random chance to receive additional rewards when they vote.
# permvote - Enables the permission voting section, this allows voters to receive different rewards based upon their permissions.
# cumulative - Enables the cumulative voting section, this allows voters to receive rewards once they have reached a certain number of votes.
# broadcastqueue - Show broadcast message for queued votes.
# broadcastoffline - Show broadcast message for offline queued votes.
# broadcastrecent - Show broadcast message to recent voters (last 24 hours)
# votecommand - Enables the /vote command which will show the message contained in the votemessage section at the bottom of the config.
# rewardcommand - Enables the /rewards command which will show a list of all the cumulative voting rewards.
# joinmessage - Show the message contained in the joinmessage section at the bottom of this config when a player joins the server.
# voteremind - Message players who haven't voted in the last 24 hours. Shows the message contained in the remindmessage section at the bottom of this config.
# remindseconds - How often (in seconds) between each reminder message.
# ratelimit - Ignore votes received within this many seconds since the last vote for the same player on the same site. This should prevent duplicate votes.
# logfile - Log received votes to vote.log file.
# dbMode - Database mode. Use either mysql or sqlite.
# dbFile - Database filename for SQLite.
# dbHost - Database IP / Hostname for MySQL.
# dbPort - Database port for MySQL.
# dbUser - Database username for MySQL.
# dbPass - Database password for MySQL.
# dbName - Database name for MySQL.
# dbPrefix - Database table prefix.
settings:
onlineonly: true
luckyvote: true
permvote: true
cumulative: false
broadcastqueue: true
broadcastrecent: true
broadcastoffline: false
votecommand: true
rewardcommand: true
joinmessage: true
voteremind: false
remindseconds: 300
ratelimit: 10
logfile: false
dbMode: 'sqlite'
dbFile: 'GAL.db'
dbHost: 'localhost'
dbPort: 3306
dbUser: 'root'
dbPass: ''
dbName: 'GAL'
dbPrefix: ''
# services section (default is used if service doesn't exist)
# The example below would give 5 diamonds per vote.
services:
default:
broadcast: '{GREEN}{username} {GOLD}has voted @ {GREEN}{service} {GOLD}and received {GREEN}1 God Apple!'
playermessage: '{GREEN}Thanks for voting at {AQUA}{service}!'
commands:
- '/give {username} 322:1 1'
Minecraft Servers:
broadcast: '{GREEN}{username} {GOLD}has voted @ {GREEN}MinecraftServers.org {GOLD}and received {GREEN}5 Beacons!'
playermessage: '{GREEN}Thanks for voting at {AQUA}{service}!'
commands:
- '/give {username} 138 5'
# luckyvotes section
# The example below would give a 1 in 10 chance of a voter receiving an extra $1000, and a 1 in 50 chance of an extra $1000 and 100XP.
luckyvotes:
'10':
broadcast: '{GREEN}{username} {GOLD}was lucky and received an {GREEN}extra $10000000!'
playermessage: '{GREEN}You were lucky and received an extra $10000000!'
commands:
- '/eco give {username} 10000000'
'8':
broadcast: '{GREEN}{username} {GOLD}was super lucky and received an {GREEN}extra 100 XP and $1000000!'
playermessage: '{GREEN}You were super lucky and received an {GREEN}extra 30 XP Levels and $1000000!'
commands:
- '/xp give {username} 30l'
- '/eco give {username} 1000000'
# permission reward section
# This example would give players with the permission node "gal.double" 10 Diamonds instead of their regular reward.
perms:
double:
broadcast: '{GREEN}{username} {GOLD}has voted @ {GREEN}{service} {GOLD}and received {GREEN}10 Diamonds!'
playermessage: '{GREEN}Thanks for voting at {AQUA}{service}!'
commands:
- '/give {username} 138 64'
- '/give {username} 322:1 5'
# cumulative reward section
# This example would give players 20 Diamonds once they have reached a total of 10 votes.
cumulative:
'10':
broadcast: '{GREEN}{username} {GOLD}has voted a total of {YELLOW}10 times {GOLD}and received {GREEN}10 Enchanted Golden Apples!'
playermessage: '{GREEN}Thanks for voting {AQUA}10 times!'
rewardmessage: '20x Diamond'
commands:
- '/give {username} 322:1 10'
# blocked - a list of worlds where rewards should be disabled, they will remain queued until the player is in an allowed world.
blocked:
- world_blocked
# Available formatting codes for messages:
# {service} {servicename} {SERVICE} = service name
# {username} {player} {name} = player username
# {votes} = current vote total
# & = Colour Symbol to enter manual colours / control codes
# {AQUA} {BLACK} {BLUE} {DARK_AQUA} {DARK_BLUE}
# {DARK_GRAY} {DARK_GREEN} {DARK_PURPLE} {DARK_RED} {GOLD}
# {GRAY} {GREEN} {LIGHT_PURPLE} {RED} {WHITE} {YELLOW} {BOLD}
# {ITALIC} {UNDERLINE} {STRIKETHROUGH} {STRIKE}
# {STRIKETHROUGH} {MAGIC} {RESET}
votemessage:
- '{GOLD}-----------------------------------------------------'
- 'Vote Daily For Rewards'
- '{GOLD}-----------------------------------------------------'
- '{AQUA}You currently have {GREEN}{votes} Votes'
remindmessage:
- '{GOLD}-----------------------------------------------------'
- 'You have not voted recently, please vote to support the server'
- '{GOLD}-----------------------------------------------------'
- '{AQUA}You currently have {GREEN}{votes} Votes'
joinmessage:
- '{GOLD}-----------------------------------------------------'
- 'Don't forget to type /vote to vote for the server'
- '{GOLD}-----------------------------------------------------'
- '{AQUA}You currently have {GREEN}{votes} Votes'
# Additional formatting codes for below:
# {TOTAL} = vote total - used for /rewards
# {REWARD} = current rewardmessage as specified in the cumulative reward section - used for /rewards
# {POSITION} = current rank - used for /votetop
# {username} = player name - used for /votetop
rewardformat: '{GREEN}{TOTAL} Votes {GRAY}- {AQUA}{REWARD}'
votetopformat: '{POSITION}. {GREEN}{username} - {WHITE}{TOTAL}'
rewardheader:
- '{GOLD}---------------- {WHITE}[ {DARK_AQUA}Rewards{WHITE} ] {GOLD}----------------'
votetopheader:
- '{GOLD}---------------- {WHITE}[ {DARK_AQUA}Top Voters{WHITE} ] {GOLD}----------------'
rewardfooter:
- '{AQUA}You currently have {GREEN}{votes} Votes'
-
View User Profile
-
Send Message
Posted Apr 5, 2015Hey, I had the same issue you had. I figured it out though :)
You have to change this: cumulative: false
to this: cumulative: true
Depending on if you want cumulative rewards or not, you should change this:
cumulative:
'10':
broadcast: '{GREEN}{username} {GOLD}has voted a total of {YELLOW}10 times {GOLD}and received {GREEN}10 Enchanted Golden Apples!'
playermessage: '{GREEN}Thanks for voting {AQUA}10 times!'
rewardmessage: '20x Diamond'
commands:
- '/give {username} 322:1 10'
to this (just remove the '10' and all that comes with it):
cumulative:
This is good for everyone who had the same issue! :D
-
View User Profile
-
Send Message
Posted Jun 14, 2014@firefireman7009
If you share it using hastebin.com instead pastebin may i can help you
-
View User Profile
-
Send Message
Posted Jun 9, 2014can anyone tell me if this is correct http://pastebin.com/jZwePsyT. It keeps giving the players $1000 (LUCKYVOTE it says) everytime they vote. I changed that too.
-
View User Profile
-
Send Message
Posted Jun 8, 2014Can you have multiple cumulative rewards and do the cumulative rewards reset each month? Or does it just reset everytime they reach the highest cumulative number?
-
View User Profile
-
Send Message
Posted Jun 7, 2014Ok so... I have a question: If a player is in a blacklisted world, and he/she votes, are they going to receive the reward when they enter a non-blacklisted world, or not? Can you guys please make a config option for that?
-
View User Profile
-
Send Message
Posted Jun 6, 2014This maybe a complete newbie question, but where do I put the websites addresses in the config file? Also, do I need a SQL database to use this?
Edit: Nvm, i see now where to put the websites. SQL does not seem to be needed.
-
View User Profile
-
Send Message
Posted Jun 5, 2014@ItIsMeMyself
Thanks for the clarification :)
-
View User Profile
-
Send Message
Posted Jun 5, 2014@Maroseliss
The duplicate broadcasts issue caused the plugin to broadcast a message 2 times when an offline player voted, once when they voted and once when they joined.
-
View User Profile
-
Send Message
Posted Jun 4, 2014In 1.3 release, "Fixed duplicate broadcasts." what does this mean exactly? Is it a setting and/or how does it work?
I'd love it if the same voting message didn't broadcast to the server all 7 times when players are voting, just the first time. It'd be nice if it still messaged them privately saying the vote went through, however.
Is that how this works? Is there something I need to enable? I'm currently using this build on Spigot 1387.
Thank you for such a wonderful plugin!
-
View User Profile
-
Send Message
Posted Jun 4, 2014Does the cumulative votes reset every month? If not how does it work?
-
View User Profile
-
Send Message
Posted Jun 4, 2014@kanoajb
Yes
-
View User Profile
-
Send Message
Posted Jun 3, 2014Do the regular MC color codes work too with the config?
-
View User Profile
-
Send Message
Posted Jun 2, 2014I was able to successfully use the mySQL feature on one of my servers, but when I move the same files over to my centOS minecraft server I get "[Craft Scheduler Thread - 16/ERROR]: [GAListener] SQL connection failed." I allowed that server for remote mySQL, but that didn't work, is it possible to print out a more clear error message?
-
View User Profile
-
Send Message
Posted Jun 1, 2014does it reset after each month?
-
View User Profile
-
Send Message
Posted May 31, 2014So could you enable the option that offline players won't get rewards? Cuz I have different servers and I don't want them to receive the reward on every server for one vote.
Thanks in advance
-
View User Profile
-
Send Message
Posted May 24, 2014Is there anyway to make per world rewards??
-
View User Profile
-
Send Message
Posted May 21, 2014Ticket submitted. Delete plz
-
View User Profile
-
Send Message
Posted May 20, 2014@dweSheppard
Try it and find out, wouldn't that be easier?