Update 'HelixuAddons.sk'

This commit is contained in:
Helixu 2022-01-23 11:18:00 +00:00
parent 9e93fd8878
commit a00b22c8b0

View file

@ -108,18 +108,24 @@ 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] &e%player's prefix%%player's name% &ejoined." to loop-player send "&b[STAFF] &e%first 2 characters of coloured 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] &e%player's prefix%%player's name% &eleft." to loop-player send "&b[STAFF] &e%first 2 characters of coloured player's prefix%%player's name% &eleft." to loop-player
command /o [<text>]: command /o [<text>]:
aliases: /staffchat aliases: /staffchat
permission: helixu.staffchat permission: helixu.staffchat
trigger: trigger:
if sender is console:
loop all players:
if loop-player has permission "helixu.staffchat":
send "&b[STAFF] &cCONSOLE&f: &c%arg-1%" to loop-player
send "&b[STAFF] &cCONSOLE&f: &c%arg-1%" to console
if sender is not console:
loop all players: loop all players:
if loop-player has permission "helixu.staffchat": if loop-player has permission "helixu.staffchat":
send "&b[STAFF] %player's prefix%%player's name%&f: %arg-1%" to loop-player send "&b[STAFF] %player's prefix%%player's name%&f: %arg-1%" to loop-player
@ -195,3 +201,13 @@ on server ping:
stop stop
if {mm} is not set: if {mm} is not set:
set motd to "&cLads Factions &6| &dDaewoo Espero nation" set motd to "&cLads Factions &6| &dDaewoo Espero nation"
command /csay [<text>]:
trigger:
if sender is console:
if arg-1 is not set:
send "&cYou cannot send an empty message!"
if arg-1 is set:
broadcast "&cCONSOLE &f» &c%arg-1%"
if sender is not console:
send "&cYou are not console!" to player