Guest User

Untitled

a guest
Mar 25th, 2024
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. #Skript publiched on https://minecraft-list.gg
  2.  
  3. import:
  4. org.bukkit.Bukkit
  5. com.vexsoftware.votifier.model.Vote
  6. com.vexsoftware.votifier.model.VotifierEvent
  7.  
  8. VotifierEvent:
  9. set {_player} to (event.getVote().getUsername() parsed as offline player) #Gets the player who has entered a vote on a website.
  10. set {_site} to event.getVote().getServiceName() #Get the plain URL of the vote website.
  11. voteReceived({_player}, {_site})
  12.  
  13. function voteReceived(player: offlineplayer, site: text):
  14. set {_now} to unix timestamp of now
  15. #{_site} would output the plain URL of the server-list website.
  16. #If the link to your server-listing page is https://minecraft-list.gg/server/minemalia.20
  17. #Then {_site} would be "minecraft-list.gg"
  18.  
  19. #{_player} is parsed as an offlineplayer.
  20. broadcast "%{_now}%" #Timestamp of the vote
  21. broadcast "%{_player}%" #Example "Maaads_"
  22. broadcast "%{_site}%" #Example "minecraft-list.gg"
Advertisement
Add Comment
Please, Sign In to add comment