#UPDATER | DON'T TOUCH | on skript start: set {_devbuild} to line 3 from url "https://pastebin.com/raw/rMtrHYLL" if {_devbuild} is 0.3: send "&1[ServerTools] &aUsing the lastest version!" to the console stop else: send "&1[ServerTools] &4Update found! Download at: https://github.com/buccimichele5/ServerTools-MC-Skript" to console #CONFIG-READER | DON'T TOUCH | on skript start: set {_configvers} to line 5 from url "https://pastebin.com/raw/rMtrHYLL" Command /update-st: trigger: if {_devbuild} is 0.3: send "&1[ServerTools] &aUsing the lastest version!" to player else: send "&1[ServerTools] &4Update found! Download at: https://github.com/buccimichele5/ServerTools-MC-Skript" to player Command /help-st: trigger: send "/help-st : Shows this list" send "/update-st : check for updates" send "/servertools : Shows info about servertools" send "/gmc : Sets the gamemode to creative" send "/gms : Sets gamemode to survival" send "/gma : Sets gamemode to adventure" send "/gmsp : Sets gamemode to spectator" send "/panel : Shows the panel link" send "/report : Report a player" send "/check : Checks if a player got reported" send "/setmotd : Sets a join message" send "/showmotd : Shows the join message" send "/setjome : Set your home to current location" send "/home : Teleport at your home" send "/tpa : Request to teleport to a player" Command /servertools: trigger: send "&4==================ServerTools=================" send "&aThis server is running ServerTools" send "&eVersion: 0.3" send "&1Build: 1-(Beta)" send "&3Made by: buccimichele5" send "&4==============================================" Command /gmc []: permission: gm.sut trigger: if arg-1 is not set: make console execute command "gamemode creative %player%" stop else: make console execute command "gamemode creative %arg-1%" Command /gms []: permission: gm.sut trigger: if arg-1 is not set: make console execute command "gamemode survival %player%" stop else: make console execute command "gamemode survival %arg-1%" Command /gma []: permission: gm.sut trigger: if arg-1 is not set: make console execute command "gamemode adventure %player%" stop else: make console execute command "gamemode adventure %arg-1%" Command /gmsp []: permission: gm.sut trigger: if arg-1 is not set: make console execute command "gamemode spectator %player%" stop else: make console execute command "gamemode spectator %arg-1%" Command /panel: trigger: player has permission "ppanel.sut": send "Panel currently disabled" else: send "%{_noperms}%" Command /sudo : trigger: player has permission "sudo.sut": make arg-1 execute command " %arg-2% " send "Made %arg-1% execute %arg-2%" else: send "%{_noperms}%" command /check : usage: /check permission: report.sut permission message: you are not admin trigger: send "&5===== REPORTS =====" to player send "&4%arg 1% &6have been reported &4%{report1.%arg 1%}% &6times" send "&4%arg 1% &6have reported other users &4%{report2.%arg 1%}% &6times" command /report : usage: /report trigger: if {report.cooldown.%player%} is false: add 1 to {report1.%arg 1%} add 1 to {report2.%player%} send "&6Report sent to all staff online" to player loop all players: if loop-player have permission "report.sut": send "&5===== &5REPORT =====" to loop-player send "&6Report by: %player%" to loop-player send "&6Player reported: %arg 1%" to loop-player send "&6Reason: %arg 2%" to loop-player set {report.cooldown.%player%} to true wait 30 seconds set {report.cooldown.%player%} to false if {report.cooldown.%player%} is true: send "&6Please wait before reporting again" on join: set {report.cooldown.%player%} to false command /setmotd : permission: setmotd.sut description: Sets message of the day trigger: message "Set the MOTD to '%argument%'" set {motd} to argument command /showmotd: description: Displays the message of the day trigger: message {motd} on join: # uncomment the following line to make the MOTD appear after other messages # wait a tick message {motd} command /sethome: description: Set your home executable by: players trigger: set {homes.%player%.location} to location of player message "Set your home to %location of player%" command /home: description: Teleport yourself to your home executable by: players trigger: if {homes.%player%.location} is not set: message "You have not set your home yet!" stop trigger teleport player to {homes.%player%.location} command /tpa : trigger: set {essentials.tpa.%argument 1%} to player send " &e%{essentials.tpa.%argument 1%}% would like to tp to you." to arg-1 send "&eType &b/tpaccept &eto accept" to arg-1 send "&eType &b/tpdeny &eto deny" to arg-1 message "&eYour request has been sent" to player command /tpaccept: trigger: if {essentials.tpa.%player%} exists: teleport {essentials.tpa.%player%} to location of player send "&e&l%player% was teleported to you" to player send "&e&lYou were teleported to %{essentials.tpa.%player%}%" to {essentials.tpa.%player%} delete {essentials.tpa.%player%} else: message "&eyou do not have any pending request" to player command /tpdeny: trigger: if {essentials.tpa.%player%} exists: send "&e&lYour request was &c&ldeclined" to {essentials.tpa.%player%} delete {essentials.tpa.%player%} else: message "&eyou do not have any pending request" to player on disconnect: delete {essentials.tpa.%player%} every 30 seconds: loop all players: if {essentials.tpa.%loop-player%} exists: send "&aTeleport request expired" to loop-player