zKoro Posted December 1, 2019 Share Posted December 1, 2019 Here is a simple staff chat script. This only works for my server because it works with my custom rank system. However, you can alter the script to your desire command /staffchat [<string>]: aliases: /sc trigger: if {rank::%uuid of executor%} is "owner" or "manager" or "admin" or "srmod" or "mod" or "trmod": if arg 1 is set: if {rank::%uuid of executor%} is "owner": send "&8[&9STAFF&8] &8[&cOwner&8] &7%executor% &8» &f%arg 1%" to all players where [{rank::%uuid of input%} is "owner" or "admin" or "manager" or "srmod" or "mod" or "trmod"] if {rank::%uuid of executor%} is "admin": send "&8[&9STAFF&8] &8[&cAdmin&8] &7%executor% &8» &f%arg 1%" to all players where [{rank::%uuid of input%} is "owner" or "admin" or "manager" or "srmod" or "mod" or "trmod"] if {rank::%uuid of executor%} is "manager": send "&8[&9STAFF&8] &8[&5Manager&8] &7%executor% &8» &f%arg 1%" to all players where [{rank::%uuid of input%} is "owner" or "admin" or "manager" or "srmod" or "mod" or "trmod"] if {rank::%uuid of executor%} is "srmod": send "&8[&9STAFF&8] &8[&eSenior Mod&8] &7%executor% &8» &f%arg 1%" to all players where [{rank::%uuid of input%} is "owner" or "admin" or "manager" or "srmod" or "mod" or "trmod"] if {rank::%uuid of executor%} is "mod": send "&8[&9STAFF&8] &8[&eMod&8] &7%executor% &8» &f%arg 1%" to all players where [{rank::%uuid of input%} is "owner" or "admin" or "manager" or "srmod" or "mod" or "trmod"] if {rank::%uuid of executor%} is "trmod": send "&8[&9STAFF&8] &8[&eTrial Mod&8] &7%executor% &8» &f%arg 1%" to all players where [{rank::%uuid of input%} is "owner" or "admin" or "manager" or "srmod" or "mod" or "trmod"] else: send "&cPlease specify a message" else: send "&cYou do not have permission" on chat: if {rank::%uuid of player%} is "owner" or "manager" or "admin" or "srmod" or "mod" or "trmod": if message starts with "*": cancel event set {_m} to last (length of message - 1) characters of message execute player command "/sc %{_m}%"  1 ⮞ Junior Mod (01/04/2020) - Resigned ⮜ ⮞ Discord » Koronotchi#0001 ⮜⮞ Minecraft Username » Koronotchi ⮜  Link to comment Share on other sites More sharing options...
Endgator Posted December 3, 2019 Share Posted December 3, 2019 0 o 0 that;s awesome I could never do something like that, how can I use this on my server since you said it only works on urs? (I use PerrmissionsEX if that helps, idk) 1 ¯\_(ツ)_/¯ Link to comment Share on other sites More sharing options...
zKoro Posted December 4, 2019 Author Share Posted December 4, 2019 On 12/3/2019 at 3:34 AM, Endgator said: 0 o 0 that;s awesome I could never do something like that, how can I use this on my server since you said it only works on urs? (I use PerrmissionsEX if that helps, idk) I don't know if you'd be able to have the prefixes, correct me if I'm wrong someone. All you need to do is remove the {rank::%uuid of player%} variables and declare your permission node above the trigger. You could change the first line to "if player has permission "node" ⮞ Junior Mod (01/04/2020) - Resigned ⮜ ⮞ Discord » Koronotchi#0001 ⮜⮞ Minecraft Username » Koronotchi ⮜  Link to comment Share on other sites More sharing options...
Endgator Posted December 5, 2019 Share Posted December 5, 2019 Ok ill try also you you know why my skrip for a bossbar isn't working  on join:  create bossbar titled "&2&lWelcome &6%player's uuid%" and id "welcome.%player's uuid%" for player with progress 100 with colors green  wait 5 ticks  loop 100 times:   set {_Value} to value of bossbar "welcome.%player's uuid%"   remove 1 from {_Value}   set bossbar "welcome.%player's uuid%" value to {_Value}   wait 3 ticks  remove bossbar "welcome.%player's uuid%" IDK if you'll know but it is worth a shot. ¯\_(ツ)_/¯ Link to comment Share on other sites More sharing options...
zKoro Posted December 5, 2019 Author Share Posted December 5, 2019 2 hours ago, Endgator said: Ok ill try also you you know why my skrip for a bossbar isn't working  on join:  create bossbar titled "&2&lWelcome &6%player's uuid%" and id "welcome.%player's uuid%" for player with progress 100 with colors green  wait 5 ticks  loop 100 times:   set {_Value} to value of bossbar "welcome.%player's uuid%"   remove 1 from {_Value}   set bossbar "welcome.%player's uuid%" value to {_Value}   wait 3 ticks  remove bossbar "welcome.%player's uuid%" IDK if you'll know but it is worth a shot. Fixed it for you. You've pressed enter at 'progress 100 with colors green". If this still has errors, then I suggest asking in the #skript channel in the MH Discord on join: create bossbar titled "&2&lWelcome &6%player's uuid%" and id "welcome.%player's uuid%" for player with progress 100 with colors green wait 5 ticks loop 100 times: set {_Value} to value of bossbar "welcome.%player's uuid%" remove 1 from {_Value} set bossbar "welcome.%player's uuid%" value to {_Value} wait 3 ticks remove bossbar "welcome.%player's uuid%"  1 ⮞ Junior Mod (01/04/2020) - Resigned ⮜ ⮞ Discord » Koronotchi#0001 ⮜⮞ Minecraft Username » Koronotchi ⮜  Link to comment Share on other sites More sharing options...
Endgator Posted December 5, 2019 Share Posted December 5, 2019 Thanks ill try it 1 ¯\_(ツ)_/¯ 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