1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Addon skript-votifier-hook 1.1.0

Create custom Votifier listeners in Skript!

  1. Rezz
    Supported Minecraft Versions:
    • 1.11
    skript-votifier-hook
    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 (Skript):
    1. on [(any|every|raw)] [votifier] vote receiv(e|ed)
    2. 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 (Skript):
    1. 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 (Skript):
    1. ([web]site|server[ ]list|service) [name] of event-vote

    Voter Username
    The voter's submitted username.
    Code (Skript):
    1. [(voter|sender)] user[(-| )]name of event-vote

    Voter IP Address
    The IP address used when the voter submitted their vote.
    Code (Skript):
    1. [(voter|sender)] [ip(-| )]address of event-vote

    Vote Timestamp
    The timestamp from when the vote was cast.
    Code (Skript):
    1. [(voter|sender)] time[(-| )]stamp of event-vote

    Example Script
    Code (Skript):
    1. # This voter is online!
    2. on vote:
    3.  
    4.     broadcast "&6&l&oVote! &e%username of event-vote% voted on &f&n%website of event-vote%"
    5.     send "&6Congrats&7, %username of event-vote%!" to event-player
    6.  
    7. # The voter may or may not be online...
    8. on votifier vote:
    9.  
    10.     send "&9Received a vote." to console
    11.     send "&7-&f Username: %username of event-vote%" to console
    12.     send "&7-&f Website: %server list of event-vote%" to console
    13.     send "&7-&f Address: %ip address of event-vote%" to console
    14.     send "&7-&f Timestamp: %timestamp of event-vote%" to console
    Getreidemonster likes this.