Jump to content

Staffchat Skript

Recommended Posts

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
        if {sc.%player%} is not set:
            send "&aEnabled &estaffchat!"
            set {sc.%player%} to true
        if {sc.%player%} is set:
            delete {sc.%player%}
            send "&cDisabled &estaffchat!"

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 by Splxshy

CrystlGens.minehut.gg - Owner

Link to comment
Share on other sites

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...