Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Skript publiched on https://minecraft-list.gg
- import:
- org.bukkit.Bukkit
- com.vexsoftware.votifier.model.Vote
- com.vexsoftware.votifier.model.VotifierEvent
- VotifierEvent:
- set {_player} to (event.getVote().getUsername() parsed as offline player) #Gets the player who has entered a vote on a website.
- set {_site} to event.getVote().getServiceName() #Get the plain URL of the vote website.
- voteReceived({_player}, {_site})
- function voteReceived(player: offlineplayer, site: text):
- set {_now} to unix timestamp of now
- #{_site} would output the plain URL of the server-list website.
- #If the link to your server-listing page is https://minecraft-list.gg/server/minemalia.20
- #Then {_site} would be "minecraft-list.gg"
- #{_player} is parsed as an offlineplayer.
- broadcast "%{_now}%" #Timestamp of the vote
- broadcast "%{_player}%" #Example "Maaads_"
- broadcast "%{_site}%" #Example "minecraft-list.gg"
Advertisement
Add Comment
Please, Sign In to add comment