Solved Different Way To Detect Who Voted

  • 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 community!

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Farid

Active Member
Feb 5, 2017
179
11
18
So I removed my plugin, SkRayFall, because it interferes with Skellet BossBar, I was wondering if there is another way to check who voted on what website.


I know there's like a custom spigot event with skript, but sadly I do not know which plugin it is from and what the syntax is!


Thanks for reading! Peace.
 
If possible, send the code to see/try, solve your problem
 
@couger44
6b7594ac69848dcc83a45e90d39d4902.png

ba0a1e34c843047d9c19ed8beb0635d3.png

daa61885b0c30119c03c36c3e50e1aba.png
 
Use skellett's method stuff with this. A method to start with would be "getVote"
 
You're using an incorrect event class. The actual event class is VotiferEvent. Here is how the CustomEvents.yml should look for you
code_language.skript:
CustomEvents: true
# Unleash the power, and stride onwards!
CustomEventSetup:
  NumberOfEvents: 1
  1:
    Event: "com.vexsoftware.votifier.model.VotifierEvent"
    Syntax: "[on] [skellett] [player] vot(e|ing)"

Example coding:

code_language.skript:
on player voting:
    set {_vote} to method "getVote"
    set {_player} to method "getUsername" from {_vote}
    set {_website} to method "getServiceName" from {_vote}
    set {_time} to method "getTimeStamp" from {_vote}
    set {_ip} to method "getAddress" from {_vote}
Hope this helped :emoji_grinning:
 
Last edited by a moderator:
You're using an incorrect event class. The actual event class is VotiferEvent. Here is how the CustomEvents.yml should look for you
code_language.skript:
CustomEvents: true
# Unleash the power, and stride onwards!
CustomEventSetup:
  NumberOfEvents: 1
  1:
    Event: "com.vexsoftware.votifier.model.VotifierEvent"
    Syntax: "[on] [skellett] [player] vot(e|ing)"
This is asuming you have NuVotifier https://www.spigotmc.org/resources/nuvotifier.13449/

Example coding:

code_language.skript:
on player voting:
    set {_vote} to method "getVote"
    set {_player} to method "getUsername" from {_vote}
    set {_website} to method "getServiceName" from {_vote}
    set {_time} to method "getTimeStamp" from {_vote}
    set {_ip} to method "getAddress" from {_vote}
Hope this helped :emoji_grinning:
How can we do this with only Votifier? :emoji_grinning:
 
Status
Not open for further replies.