asaf03124 Posted November 21, 2022 Share Posted November 21, 2022 staffchat command /staffchat [<text>]: trigger: if player has permission "staffchat.toggle": if arg-1 isn't set: send "&cYou must use /staffchat on/off" if arg-1 is "on": set {staffchat::toggle::%player's uuid%} to true send "&aYou enabled staff chat!" if arg-1 is "off": set {staffchat::toggle::%player's uuid%} to false send "&cYou disabled staff chat!" on chat: loop all players: if loop-player has permission "staffchat.toggle": if {staffchat::toggle::%player's uuid%} is true: cancel event send "&8[&aStaffChat&8]&7%player%: &7%message%" warn command /warn [<offlineplayer>] [<text>]: trigger: if player has permission "warn.give": add skull of arg-1 named "&c&l&nWarning: %arg-1%" with lore "&8* &bWho warned: &c%player%", "&8* &bReason: %colored arg-2%", "" and "&c&lClick to remove warn!" to {warns::*} send "&aYou warned %arg-1%&a!" command /warnlist: trigger: if player has permission "warn.list": warns(player) function warns(P: player): open chest inventory with 6 rows named "&c&l&nWarnings" to {_P} set {_fill} to -1 loop {warns::*}: set {_W} to loop-value add 1 to {_fill} set slot {_fill} of {_P}'s current inventory to {_W} on inventory click: if name of player's current inventory contains "&c&l&nWarnings": cancel event if clicked inventory isn't player's inventory: remove event-slot from {warns::*} warns(player) Link to comment Share on other sites More sharing options...
SkriptUser103 Posted November 26, 2022 Share Posted November 26, 2022 that’s cool to make a skript im a beginner using skript so it’s nice knowing they have a tag for skript Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now