Advertisement
Haon

MatchPost [SK]

Sep 10th, 2017
1,030
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. #=====================================#
  2. #=---Matchpost Skript by /u/haon35---=#
  3. #=====================================#
  4.  
  5. options:
  6. C: §7Matchpost §8»
  7.  
  8. command /matchpost [<text>]:
  9. trigger:
  10. if arg-1 is set:
  11. if player is op:
  12. if arg-1 contains "https://redd.it":
  13. set {MatchPost} to arg 1
  14. send "§7§o[%command sender% : changed the matchpost to » %arg-1%.]"
  15. broadcast "{@C} §7%{MatchPost}%"
  16. else:
  17. send "{@C} §7Bad format !"
  18. else:
  19. send "{@C} §7You are not allowed to change the matchpost !"
  20. wait 10 ticks
  21. send "{@C} §7%{MatchPost}%"
  22. else:
  23. if {MatchPost} is set:
  24. send "{@C} §7%{MatchPost}%"
  25. send json of "{@C}" open "%{Matchpost}%" to player
  26. else:
  27. send "{@C} §7The Matchpost is not set !"
  28. if arg-1 is "remove":
  29. if player is op:
  30. delete {Matchpost}
  31. send "{@C} §7Matchpost deleted"
  32. else:
  33. send "{@C} §7You are not allowed to delete the matchpost !"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement