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
I was just wondering how the "timed-commands" work. Are the commands executed X amount of time after a vote or X amount of time after first join?
@ForsakenRealmz
Thanks. I will have to downgrade the JDK I use to compile the plugin because I am aware that many server owners still run on Java 6. Although I should tell you that from the error log you posted, there is at least one more plugin that requires Java 7.
Anyways, thanks for the liking the plugin :)
@xPuyttre
Java Version on dedicated machine: java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11.5) (6b24-1.11.5-0ubuntu112.04.1) OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
Most recent recommended version of Craftbukkit 1.4.7-R1.0 found here (This is what I'm using): http://dl.bukkit.org/downloads/craftbukkit/view/01845_1.4.7-R1.0/
Using Votifier 1.9 found here: http://dev.bukkit.org/server-mods/votifier/files/9-votifier-1-9/
Error Message: http://pastebin.com/chDVyBUN
I think that's most of the information you were asking about lol. Thanks for your help. Love the plugin. Btw.. My computer is running Java 7. My dedicated server is Java 6.
@ForsakenRealmz
Hi,
Please make sure you're
If this still does not work, please give the error from the console (if one is produced) or explain in detail what the issue is.
:)
For some reason the plugin works for my server ran from my computer, but not my dedicated server on a Linux Ubuntu operating system.
I added the plugin.jar into my plugins folder and I have votifier in there. The plugin is not registering to load up when the server is restarted for some reason.
Wow! Thanks for this amazing plugin sir!
Very lightweight, love the plugin.
Is this suppose to be a config file? I accidentally installed the 1.4.7-R0.1 version using the "Download" button at the top and it didn't create a config file. Would it be possible to add a reload command to generate a config file if there is not one? <3
@externo6
Sorry the only reason a player has to be online is because most websites using Votifier require the player to be on to confirm the vote. I can not do anything from my side but you can probably ask the owner of Votifier if anything can be done from his side.
Is it possible to add a queue feature, such as if a player votes while offline they will be put into a queue?
Thanks!
@newfization
I can fix that tonight then I'll start working on timed commands.
Hi! Anyway I can get rid of this error on my server log?
15.02 01:44:51 [Server] WARNING Could not save SimpleVoteListener.yml to plugins/SimpleVoteListener/SimpleVoteListener.yml because SimpleVoteListener.yml already exists.
I know it's meaningless, but it's the second last error I have to clear to have a clean log. :)
@vortechjsbz
I use Permissionsbukkit. There is not funktion, to set a player to another permissionsgroup, whet he voted for the Server. And if 24 hours are over, so he should be set back to previous group.
this cannot do a permissions-addon. not only, because the function between a vote-plugin and the permissionsplugin is not existend, its not implemented...
so give a suggestion , which is working with permissionsbukkit and any vote-plugin, so ill try it.
@SkyRanger
@xPuyttre
Not for nothing but why not leave permission management to the permission plugins? The addition of such a feature isn't in the spirit of lightweight IMO. There are permissions plugins with the described functionality already available. Just saying and I don't mean to come off as rude here.
I'm a bit busy this week. Don't expect it before the end of the week ;)
@xPuyttre
That would be awesome!
@xPuyttre
this would b very nice.
I didnt didnt find any plugin, which is able to do this.
U may make it more flexible, if u create 2 new variables for the config.
timer disable/enable - for onetime-actions or eg. daily actions
time - time in hours Xh or minutes Xm to activate timecommand.
timecommand - what should happen to the same player, if the time is reached
@SkyRanger
I can start working on this.
Is it possible to set a User, which has voted, into another permissionsgroup for 24 hours and then set em back ?
@lotpvp12
You can do either do
/give %name% 304 - to give them the exp bottles.
or
/xp give %name% 10 - to give them 10 experience in their experience bar.
Both of those commands come with regular bukkit so you don't need to download an extra plugin. Just add them to your config and you're good :)