Advertisement
wrejktoermgkdth

evaluate system

May 30th, 2020
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. options:
  2. ver: 1.0.0 #DON'T CHANGE!
  3.  
  4. prefix: &9Evaluater&8ยป &7
  5.  
  6. on load:
  7. set {superadmins::*} to "pAlNy", "Apple" and "Console"
  8. set {_count} to 0
  9.  
  10. on load:
  11. set {_version} to text from "https://pastebin.com/raw/S2K0dDxD"
  12. if {_version} is not "{@ver}":
  13. loop all players:
  14. loop-player is op:
  15. send "{@prefix}There is an update for &9Evaluater&7. You are currently running &9{@ver}&7, new version: %{_version}%" to loop-player
  16. if {_version} is "{@ver}":
  17. loop all players:
  18. loop-player is op:
  19. send "{@prefix}You are running the latest version of &9Evaluater&7!" to loop-player
  20.  
  21. command /evaluate [<text>]:
  22. aliases: eval
  23. trigger:
  24. if {superadmins::*} contains player:
  25. if arg 1 is not set:
  26. send "{@prefix}Usage: &9/eval <code>"
  27. stop
  28. evaluate logging errors in {_errors::*}: arg-1
  29. if {_errors::*} is set:
  30. send "{@prefix}Ran into an error(s)!"
  31. set {_count} to 1
  32. loop {_errors::*}:
  33. send "{@prefix}%{_errors::%{_count}%}%"
  34. add 1 to {_count}
  35. clear {_errors::*}
  36. set {_count} to 0
  37. stop
  38. else:
  39. send "{@prefix}You have successfully ran your skript without any errors!"
  40. stop
  41. else:
  42. send "{@prefix}You are not allowed to use this command!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement