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!
@davidjm6
You should fork this and do it properly...
Any chance you could write a 1.8 forge version of this? I can't find a single Listener for forge for my Pixelmon Servers
@LaughNgamez
YEP please add that :)
How can I reset the /votetop count? Also would it be possible to make a command to do this/make it reset monthly.
I have a Factions Server With Votifier set up to PlanetMC and minecraftserverlist it says Votifier is connected but when people Vote it doesnt work First Thing I would like to know is if it is possible to "Test Connection" and second I changed the DBport to My Server PORT what should The DBport be I know thats probably the problem! PLEASE HELP!!!!
Can anyone help me?
I'm setting up the lucky votes and want to add a diamond pickaxe with efficiency 1 on it but i don't know the command. Can anyone help me with this thank you!
This is such a cool plugin, but i use a website called Planet Minecraft (you might've heard of it) and it doesn't come up, so yeah, is there something i'm missing? Thanks.
Is there a command to switch to SQL from sqllite? Still keeping your data ofc.
Hey how do I add different services? Like can I get the list service names? .-.
how do i disable the command when they vote like this part
if i leave it blank i get errors in my logs "error type /help" after each vote, this is for the HUB so i want it to be able to vote and announce it but not send any commands and without showing up like that in the console, thanks
could you please redesign the reminder system?
in your current system, lets say we have a good sized server of 100 players. none of them have voted recently. the server uses 4 different server lists, each of which take up a line in the reminder system. the top 2 lines are a header for what the user is seeing and the bottom line is a footer, marking the end of the message. in total, the reminder message is 7 lines.
since we have 100 players that have not voted recently, the reminder system will loop through all 100 players. for each player that hasn't voted recently, it will send the player the reminder message. 1 line at a time.
each line is sent 100 times. since there are 7 lines, a total of 700 messages were sent. since you use a BukkitRunnable to do this, that loop of 700 was done in a single tick.
now imagine this is a modded server. mods are always designed in a way that they never want to work well with each other. this creates lag. so while that loop of 700 doesn't seem like all that much, with the extra lag that the mod pack produces (many mod packs run at 15-17 tps without plugin interference regardless of server specs), the extra lag from that loop of 700 can actually freeze the server for 3-5 seconds, interrupting game play and causing player to have to repeat tasks (such as mining), wait to preform actions (such as opening a chest or interacting with another gui based block), or may even die to damage they couldn't defend against while the server was lagging out.
your vote reminder timer assumes that the server is perfect, running at 20tps. this is simply not true for 99% of servers. while some may be close at 19.99 tps, that is not a perfect 20. in the case of the slower modded servers running at 15tps, if a remind time of 3600 seconds (1 hour) was put into the config, it would in fact take 4800 seconds (1 hour 20 minutes). 15tps is by far still playable and hardly noticeable by players, but it affects your plugin drastically.
The solution I would suggest is to move away from BukkitRunnables.
BukkitRunnables are great for doing something every X number of ticks. They however are not good at doing Y number of things X number of ticks. Everything you tell a BukkitRunnable to do, it does in a single tick, freezing the server until its task is complete. It then waits the X number of ticks to do it again.
For time sensitive tasks, it would be best to use a multithreading technique built in to the java libraries. My personal favorite currently is using a Callable with an ExecutorService.
Using a multithreading technique from java libraries will ignore the ticks of the server. You can use Thread.sleep(remindseconds*1000) to more closely reflect real time.
I'm not entirely sure what you will need to do to access everything you need from the callable to make everything thread safe. I'm not in the mood to play with it myself today. Figuring it out though will greatly increase the value of this plugin as it should remove the lag it causes in servers.
(our servers range from 10-50 people and the reminder freezes the server from 2-8 seconds in each of them. this may not sound significant, but when preforming a time sensitive action or fighting a boss, it is extremely significant)
Greetings,
I've tinkered with this for what seems like hours but can't find a way to make it work so I thought I'd ask here. Is there a way to have a random "lucky vote" for specific permissions groups?
For example, I would like to have my VIP group receive a better haul with a lucky vote compared to the haul my MEMBERS group receives with a lucky vote.
Thanks in advance.
Hi, Great Plugin! My Server is white listed but players who are not even able to join send votes. Is there a command that I can clear these queued votes from the database or do i just need to edit the database?
Hi, I was wondering if there was a way to prevent the spam , I run more then 1 server and use /votesend from hub , the problem is if a player uses server A and votes for say 7 days in a row , and then visits server B , it spams all his votes at once. As I have about 10 servers if I was to to show every vote when offlien this would likely be just as spammy. Is there a way to only show first one in their queue or something similar ? Or another way to reduce the spam ?
Does this plugin gives reward to monthly top voter?
Will this listener still give the rewards even if the player is offline, and when they log on they receive the reward? I'm asking because i'm running a bungeecord server and obviously the player can't be on all the servers at the same time. (by the way i do have it setup to send votes to each and every server)
@captin_fuzzyfury
Nope sorry, I'm using 1.7.2 since most of the plugins I'm utilizing don't work past 1.7.4. Thank you for the reply though!
@BODOCITY111
i am assuming you are using 1.8
@BODOCITY111
you could try just giving them the regen effect by using the /effect command with the duration set
Any chance someone here knows why the vote count gets reset to 0 on a server restart?