help/Vote Custom Commands
Custom Vote Commands
Vote has several of its own commands that it can read itself. They were added much later in the cycle of the plugin, but they're one of the most important aspects of the plugin. These are all of the vote custom commands available:
- FINDPLAYER [%X] - This command will attempt to find partial matches for player names. For the kick command, it does a FINDPLAYER for the first argument, which is the player to be kicked.
- VERIFYPLAYERONLINE [%X] - This command will verify that the target player is online before executing the vote. This was designed in response to people dodging the kick and ban votes aimed at them. After the vote finished, they would log out for a few seconds, then log back in after the Vote plugin already tried to execute the commands. Putting VERIFYPLAYERONLINE in the command list will only run when the player is online.
- vote setvalue X - These commands are only supposed to be used by the vote plugin itself. For many of the default commands, they require some code behind them to execute, such as changing the time. You shouldn't ever need to use these, but there are only these commands available: time, kick, ban, rain, and sun. No other parameters will work.
Comments