VoteCommander
VoteCommander
VoteCommander is the long needed plugin for all servers! VoteCommander, a simple votifier listener, can be as powerful as you want it to be! Using a powerful engine developed by xNTKx, this plugin is very resource friendly, extremely responsive, reliable, and best of all, comes with a simple command based user experience. The extensibility of this plugin ranges to what ever you can think of! Have it simply run 2 commands, 1st command to tell the server a player has voted, and then 2nd command to give the player 3 diamonds. Or it can be even more than that. Have it execute a Websend command to have it inserted into Databases for things such as vote logging!
Commands
- /vc - Base VoteCommander command. Also displays the help page.
- /vc <command> <arguments/parameters> - This is the command to actually add the command. Say you want a message that says, "hcherndon, has just voted at PlanetMinecraft!" Then you would use "/vc say %p has just voted at %s!" You can also use %t as the Timestamp. The Timestamp is kept in Unix time for most vote sites. If you have a Websend command that adds them to a Database you can do, (For example), "/vc ws voteadd %p %s %t" which will, if your Websend command is setup correctly, add to the selected table, player:hcherndon site:PlanetMinecraft timestamp:1358481066, depending on your set up.
- /vc list - This will list all the commands in your config, (6 per page).
- /vc list # - Does the same as above, but allows you to specify pages.
- /vc remove <id num> - All VoteCommander events are listed with a ID number. You can simply type "/vc remove 0", to remove the command with the ID 0.
- /vc test <player name> OR null (To test null player. It does absolutely nothing. Just saying.) - Tests as if a player were to vote on your server so you can see what the command execution line will be.
Secret Command
- /vc reload - If you prefer to edit your plugins through the config.ylm folder, you may do so, and for them to take effect in-game you can type "/vc reload" for the effects to be imported and loaded on the server RAM.
Permissions
There are no permission nodes for this plugin. The only way to use the plugin features, you must have OP, or be on your server's console. If you think I should really add permission nodes, post below. If I get enough of a demand, I will probably add them in the future.
Config.yml
The config is by default blank, but as you add commands, the config will fill itself correctly. If you wish to intervene, feel free to do so, just, heres some help.
The formula is simple.
Command(incrementing number): command
Parameter(same number as above): arguments
-Or-
Command0: say
Parameter0: %p has voted at %s!
Other than that, there should NEVER be anything inserted into the config.
Dependancies
This plugin is a Votifier dependent plugin. If you do not have Votifier, VoteCommander will NOT work, and will just be sitting in your server doing nothing, therefore is completely useless.
Coming Soon (Maybe)
/vc test <player> - Sends a TestFake packet so you can see the effects of VoteCommander!
Suggestions please? =3
Credits
The functionality of this plugin is made by hcherndon.
The engine of this plugin is made by xNTKx. I have also been given full rights to using this by him, (As we are co-workers).
Uh it doesn't register with anything?
@TheRealhcherndon
What are all the options for the things that come after the % sign (IE: %s, %p, %t). Also, what does the %t do exactly? I am looking for a plugin that checks if a player has voted with the past 24 hours on given sites, and if they havent they get reminded at everytime time interval.
@Chaett
Have the same scenario.. users vote for diamonds in teh SkyBlock world and makes it unfair. I want them to get the reward in the Main world. A vote listener that supports multiverse-inventories would be awesome.
Permissions would be nice for per world basis. Denying item rewards on world A but have it reward them in World B.
Or have a "enable this plugin in these worlds:" in the config.
The reason in my case is I have a second world for PvP extreme hard mode, a challenge map, and my rewards are diamonds. It kinda defeats the 'challenge' part. Would like members to receive rewards only in our main world.
Works great. Is there an option to give items even if the player isn't logged in the game? or store the vote and reward on next login?
@DanielMullaly
Added in new version. Waiting for approval. :D
@tntfactions
Thank you! :3
Could you make it so if the name received from the voting site is not a player on the server, it will not display, or execute the commands.
Excellent plugin. Nice and simple :)
@Spoilt8920
Quite simple. Have Votifier and VoteCommander installed, then add a command to VoteCommander. Say you want to give the player 3 diamonds on a vote for your server. You would then use the command, "/vc give %p 264 3" (I think that is the diamond ID.) Along with that, lets tell the server that he voted. You can then do, "/vc say %p voted at %s! Vote today!" or something like that. So on a vote, (Saying I vote), I will receive 3 diamonds, and a message will be broadcasted saying, "hcherndon voted at minestatus.net! Vote today!" The commands will be executed by console as of now. So, when entering commands, you have the plugin prefix, "/vc" the command "give" then the parameters (arguments, manipulatable data. Whatever you want to call it.) "%p 264 3". So "/vc give %p 264 3" in 1 command line. The %p will fill in as the players name, %s will fill in as the site, and %t will be the timestamp, (Worthless in most cases).
can you tell us how to set this up?