Update 'HelixuAddons.sk'

This commit is contained in:
Helixu 2022-01-11 16:34:04 +00:00
parent c418648792
commit ece3e6e34e

View file

@ -1,3 +1,14 @@
command /disall <text>:
permission: op
trigger:
loop all players:
make console execute command "displayer %loop-player% %arg-1%"
command /undisall:
permission: op
trigger:
loop all players:
make console execute command "undisplayer %loop-player%"
command /sethubloc: command /sethubloc:
permission: op permission: op
@ -107,20 +118,28 @@ on join:
if player has permission "helixu.staffchat": if player has permission "helixu.staffchat":
loop all players: loop all players:
loop-player has permission "helixu.staffchat": loop-player has permission "helixu.staffchat":
send "&b[STAFF] %player's name% &ejoined." to loop-player send "&b[STAFF] &e%player's prefix%%player's name% &ejoined." to loop-player
on quit: on quit:
if player has permission "helixu.staffchat": if player has permission "helixu.staffchat":
loop all players: loop all players:
loop-player has permission "helixu.staffchat": loop-player has permission "helixu.staffchat":
send "&b[STAFF] %player's name% &eleft." to loop-player send "&b[STAFF] &e%player's prefix%%player's name% &eleft." to loop-player
command /o [<text>]: command /o [<text>]:
permission: helixu.staffchat permission: helixu.staffchat
trigger: trigger:
loop all players: loop all players:
if loop-player has permission "helixu.staffchat": if loop-player has permission "helixu.staffchat":
if arg-1 is not set: send "&b[STAFF] %player's prefix%%player's name%&f: %arg-1%" to loop-player
send "&eYou cannot send a message with no text!"
send "&b[STAFF] %player's display name%&f: %arg-1%" to loop-player command /push [<player>]:
permission: helixu.push
trigger:
if arg-1 is not set:
send "&cUsage: /push (player)" to player
if arg-1 is set:
push arg-1 upwards at speed 2
push arg-1 backwards at speed 2
send "&6Player has been pushed!" to player