LocalServerHost Posted March 24, 2021 Share Posted March 24, 2021 (edited) Simple staffchat Skript! Be sure to credit Splxshy when using it! # Be sure to credit Splxshy when using this skript! command /sc: permission: staffchat.use aliases: /staffchat trigger: if {sc.%player%} is not set: send "&aEnabled &estaffchat!" set {sc.%player%} to true stop if {sc.%player%} is set: delete {sc.%player%} send "&cDisabled &estaffchat!" stop on chat: if {sc.%player%} is set: cancel event loop all players: if loop-player has permission "op": send "&c&l[S&4&lC] &3%player%&e: &e%message%" to loop-player Edited April 4, 2021 by Splxshy CrystlGens.minehut.gg - Owner Link to comment Share on other sites More sharing options...
_Tarna_ Posted March 24, 2021 Share Posted March 24, 2021 Nice skript but here are some things you could change. The stops aren't needed. You can just use else if statements. And instead of looping all players and sending a message if the loop-player has a certain permission, you can do this - send " " to players where [input has permission " "]. This will still internally loop all players but it'll reduce that part of the skript from one 3 lines to 1. Also you should use list variables instead of nested variables. Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 | 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - now Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
Fusezion Posted April 4, 2021 Share Posted April 4, 2021 On 4/3/2021 at 7:14 AM, Nitrogen said: You've just gone and nicked my skript and changed the prefix and asked people to credit you. smh he didn't even change the on chat permission XD I'm a guy yes but I am also human just like any female so why do you believe it's so wrong to cry too? 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