- Supported Minecraft Versions
- 1.11
skript-votifier-hook
It does what it says!
This addon requires:
Events
Vote Receive Event
Called every time Votifier receives a vote.
This event has access to: event-vote
Online Player Vote Event
Called when an online player votes for the server.
This event has access to: event-player and event-vote
Expressions
All of the available expressions from this addon are properties of event-vote.
Vote Website
The server list name from where the vote was cast.
Voter Username
The voter's submitted username.
Voter IP Address
The IP address used when the voter submitted their vote.
Vote Timestamp
The timestamp from when the vote was cast.
Example Script
It does what it says!
This addon requires:
- Votifier (obviously)
- Java 8
Events
Vote Receive Event
Called every time Votifier receives a vote.
This event has access to: event-vote
code_language.skript:
on [(any|every|raw)] [votifier] vote receiv(e|ed)
on [(any|every|raw)] votifier vote
Online Player Vote Event
Called when an online player votes for the server.
This event has access to: event-player and event-vote
code_language.skript:
on [online] [player] vote
Expressions
All of the available expressions from this addon are properties of event-vote.
Vote Website
The server list name from where the vote was cast.
code_language.skript:
([web]site|server[ ]list|service) [name] of event-vote
Voter Username
The voter's submitted username.
code_language.skript:
[(voter|sender)] user[(-| )]name of event-vote
Voter IP Address
The IP address used when the voter submitted their vote.
code_language.skript:
[(voter|sender)] [ip(-| )]address of event-vote
Vote Timestamp
The timestamp from when the vote was cast.
code_language.skript:
[(voter|sender)] time[(-| )]stamp of event-vote
Example Script
code_language.skript:
# This voter is online!
on vote:
broadcast "&6&l&oVote! &e%username of event-vote% voted on &f&n%website of event-vote%"
send "&6Congrats&7, %username of event-vote%!" to event-player
# The voter may or may not be online...
on votifier vote:
send "&9Received a vote." to console
send "&7-&f Username: %username of event-vote%" to console
send "&7-&f Website: %server list of event-vote%" to console
send "&7-&f Address: %ip address of event-vote%" to console
send "&7-&f Timestamp: %timestamp of event-vote%" to console