Simple Vote Listener
SimpleVoteListener
SVL requires Java 7
Description
SimpleVoteListener was designed to be as lightweight as possible and make endless possibilities. SimpleVoteListener can perform commands, broadcast messages, and do everything you could possibly need it to do.
PLANNED Features
- Vault Economy support.
- Bungeefier and Spigot support.
- Public broadcasts.
- Private messaging to voting players.
- Offline voting.
- Unknown player blocking. (Vote will not go through unless player has joined server previously)
- Configurable
- Permissions can be given and taken upon vote.
- Items can be given to player.
- Commands can be run through console upon voting.
- Service-specific awards.
- Permission-specific awards.
- Vote counting.
- Vote count awards.
- Timed commands.
- Timed commands continue after restarting server.
- Config variables.
- Color codes in config.
Installation
Requires Votifier
- Drop SimpleVoteListener.jar into your plugins directory.
- Reload or restart your server.
- Done!
note: You don't need to do anything special to get SimpleVoteListener to connect to Votifier
Planned Commands
/svl reload - Reloads configuration.
/svl test - Tests vote process.
/svl debug - Toggles debug mode for development.
Usage
Sample usage:
# Changing the version will ruin your config. version: 1.0 debug: false vault: true time-format: 'HH:mm:ss' public-broadcast: '&e%player% voted from %service%!' private-message: '&aThanks, &c%player%&a, for voting!' player-awards: money: 100 permissions: - 'example.permission' - 'example.permission.two' items: - 'ITEM{DATA_VALUE}:AMOUNT' - 'WOOL{6}:64' commands: - 'warp %player% vote' # Note that specific awards do not include the awards above. specific: # Awards given to players that vote from a specific voting service. service: PlanetMinecraft: money: 100 permissions: - 'example.permission' items: - 'DIAMOND:1' commands: - 'warp %name% pmc' # Awards given to players that have a specific permission. # Replace dots with dashes in permissions. permissions: example-permission: money: 100 permissions: - 'example.permission' items: - 'GOLD_BAR:1' commands: - 'warp %name% china' # Awards given to players that have voted a specific amount of times. votes: 100: money: 100 permissions: - 'example.permission' items: - 'DIAMOND:10' commands: - 'say %name% has voted %votes% times!'
- %name% - Username of the player. Not the nickname.
- %ip% - IP Address of the player who voted
- %time% - Not sure what format of time, Votifier handles the format.
- %service% - Service used when voting, eg. "PlanetMinecraft.com"
- %votes% - Amount of times player has voted.
- %connection% - Returns "online" or "offline" accordingly.
Troubleshooting
Nothing is Happening on Vote
- Check to make sure the port you are using in your Votifier config is not already in use.
- Read the Troubleshooting section on the Votifier page.
Plugin not generating files
- Make sure your plugins folder isn't restricted. Usually this is not the case if other plugins can write files to it.
- Try using Java 7 instead of Java 6.
- Check that you're using the correct version of CraftBukkit corresponding to the version of SVL.
Config not working
- Parse your config by pasting it. If there is an error it will tell you the line and column number!
- Make sure you are using correct variables (listed above)
Commands not being run
- Check to make sure you have a plugin that can run the commands you are trying to run!
- Some plugins don't let certain commands run from the console, and there is nothing that can be done except look for a different plugin!
Connecting to Votifier but not SVL
- Make sure SVL started up without errors and is enabled by typing
/pl
(it should be green in the list). - Make sure config works by checking advanced setups section of Configuration Page
Still not working?/Question not answered?
Leave a comment with the following:
- SVL version
- Votifier version
- CraftBukkit version
- Errors in console (if one is given)
- Config file posted on either pastie.org or pastebin.com
- Actual problem typed and explained to best of detail
The plugin loads and shows up in /pl, but in the plugins folder there is no folder for Simple Vote Listener? Why is this?
@Zaphrae
Use /eco give
@xDefcon
It doesn't sound like an error it just says that the port is not in use. the erros start with [ERROR] and not with [SEVERE]. If its not working try to change the port from the config and on the website that you want to add your server. I am not a master on that but you could give it a try
A great feature, imo, would be random rewards. That way, a voter will get one (possibly more, if specified?) of the items from the list specified in the config after voting :)
Hello, I'm a server admin and I got a problem. My community has three minecraft servers and I need to install the plugins "Votifier" and "Simple Vote Listener" in all the servers. Since Votifier doesn't allow me to do it, reporting the error "[SEVERE] [Votifier] IP address and port are not already in use. This is a common problem with hosting services and, if so, you should check with your hosting provider.", how can I resolve it?
i got exactly the same problem as Zaphrae, please update or help us out, this is the only viable vote listener i can find :/
NVM
Testing Votifier on minestatus and other testing sites send the commands to console BUT
money give %name% 1000
Does not work the error is [Money] Account does not exist.
money give TEST 1000
will give 100 to TEST so its a problem with the %name% not actually using a playername
How can we fix this?
Testing Votifier on minestatus and other testing sites send the commands to console BUT
money give %name% 1000
Does not work the error is
[Money] Account does not exist.
I cant do - 'pex user %name% group set {namegroup}
How to fix this error???
I have both Votifier and SVL installed. When someone votes, the console receives it, and so does Votifier, but they don't receive their reward from SVL.
It is in both my listeners file and its own plugin file.
The ports are both open and not used.
Here is my SVL http://pastebin.com/4eNvxrSr
Is there any way to set an order to the commands done at login?
@thereallegend
sorry I misread you post. I have loked again and can't seem to find the problem. The timed commands work perfectly for me and seem to have the same syntax however i am using group manager rather then permisionsex so i am not sure exactly how it works.
@TheJamiePatrol
I'd like to have it at 20 hours, not 20 minutes
@ViscousSummer88
yes, you need to use timed and normal operations to give and take perms with your permision plugin. I have groupmanager and can do in the config to run munuaddp %name% [permision node] then in the timed commands i do manudelp %name% [permision node]. It fairly simple
@thereallegend
your main problem will be that your config is set to demote after 20 hours in stead of 20mins
- 'pex user %name% group remove Votanti;20h'
should be
- 'pex user %name% group remove Votanti;20m'
does this allow for giving a command to a user example /nick then remove that command after for example 24hours? So a command to run after vote and then a command to run after 24hours has gone
is it normal that timed command doesn't work? i add player in a group and after 20 hours they should not be there anymore. But they are still in the group. How can i fix that?
this is my config: http://pastebin.com/SVTjezpn
i use spigot #1031 but whit craftbukkit i've got the same problem
SVL v2.6
Does this work on 1.5.2 or 1.6? If not, when are you updating this?
@Gunnerrrrr
http://topg.org/test_votifier
https://minestatus.net/votifier/test
So is it capable of promoting someone by the use of a command on X amount of votes? And if yes, Is it able to promote someone on X amount of votes in a 24hour interval or monthly or something?