Jump to content

Staff Chat | Communicate with your staff!


Swayl

Recommended Posts

Staff Chat (Skript)

Using this script,

You are able to communicate with

your staff without the normal players

knowing. It can be toggled by

Simply typing /sc or /staffchat

 The permission to access

and see the staff chat is simply just

"staff". The commands for it is

either /staffchat or /sc. This script

also has a bonus feature.

By adding @ at the start of you message,

The message will be sent to staff chat instead.

Pictures

image.png.c5878bb9d542770fbc1482473258415c.png

image.png.6b2e4fcf2faf7cec163a87c8f3e11809.png

image.png.093c42e94876598d399df3a1a2cc8bec.png

 


Script (32 lines)

options:
	server: &3[Server]&7
	no-perm: &cYou lack of permission.
	usage: &3&lUSAGE &8|

command /sc [<text>]:
	aliases:staffchat
	permission: staff
	permission message: "{@no-perm}"
	trigger:
		if arg-1 is set:
			send "&3&L(STAFF-CHAT) &f%player's display name% &8| &f%arg-1%" to all players where [input has permission "staff"]
		else:
			if {staff.chat::%player's uuid%} is not set:
				set {staff.chat::%player's uuid%} to true
				send "&3&L(STAFF-CHAT) &7Staff chat &aenabled&7."
			else:
				delete {staff.chat::%player's uuid%}
				send "&3&L(STAFF-CHAT) &7Staff chat &cdisabled&7."

on chat:
	if {staff.chat::%player's uuid%} is set:
		cancel event
		send "&3&L(STAFF-CHAT) &f%player's display name% &8| &f%message%" to all players where [input has permission "staff"]

on chat:
	set {_m} to uncolored message
	set {_mes::*} to {_m} split at ""
	if {_mes::1} is "@":
		cancel event
		replace all "@" with "" in message
		execute player command "/sc %message%"

 

  • Like 2
  • Thanks 1

Things to know about me

• I have 2 years of skript experience

• I work on my servers all by myself
• I like being alone

• I have insane trust issues

• I simp for alot of people (trying my best not to)

• My mental age is somewhere 8

• I dont like meeting new people

• Very toxic

 

Discord Swayl#0099

MC IGN - Swayl

(I suggest avoiding me because I get too attached to people quick)

Link to comment
Share on other sites

  • 4 months later...
  • 1 year later...

Locked - Necroposting

Please do not comment on threads that haven't been active in over a month.

Support  July 29, 2020 → November 3, 2020

► Helper November 3, 2020 → February 22, 2021

► Moderator February 22, 2021 → May 17, 2021

 I might not always respond to forum dms, however I am always contactable on discord (mig#0069)

Screen Shot 2020-03-20 at 5.23.33 pm.png

Link to comment
Share on other sites

  • Migins locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...