Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- ver: 1.0.0 #DON'T CHANGE!
- prefix: &9Evaluater&8ยป &7
- on load:
- set {superadmins::*} to "pAlNy", "Apple" and "Console"
- set {_count} to 0
- on load:
- set {_version} to text from "https://pastebin.com/raw/S2K0dDxD"
- if {_version} is not "{@ver}":
- loop all players:
- loop-player is op:
- send "{@prefix}There is an update for &9Evaluater&7. You are currently running &9{@ver}&7, new version: %{_version}%" to loop-player
- if {_version} is "{@ver}":
- loop all players:
- loop-player is op:
- send "{@prefix}You are running the latest version of &9Evaluater&7!" to loop-player
- command /evaluate [<text>]:
- aliases: eval
- trigger:
- if {superadmins::*} contains player:
- if arg 1 is not set:
- send "{@prefix}Usage: &9/eval <code>"
- stop
- evaluate logging errors in {_errors::*}: arg-1
- if {_errors::*} is set:
- send "{@prefix}Ran into an error(s)!"
- set {_count} to 1
- loop {_errors::*}:
- send "{@prefix}%{_errors::%{_count}%}%"
- add 1 to {_count}
- clear {_errors::*}
- set {_count} to 0
- stop
- else:
- send "{@prefix}You have successfully ran your skript without any errors!"
- stop
- else:
- send "{@prefix}You are not allowed to use this command!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement