Jump to content

can u make a staff call command script like /staffcall


UnbenJrod

Recommended Posts

on join:
	if {staffchat.enabled::%uuid of player%} is not set:
		set {staffchat.enabled::%uuid of player%} to true

command /staffchatmsg [<text>]:
	permission: staff.chat
	permission message: &cYou do not have permission to do that!
	trigger:
		loop all players:
			if arg-1 is set:
				if loop-player has permission "staff.chat":
					if {staffchat.enabled::%uuid of loop-player%} is true:
						send "&8[&cStaff&2Chat&8]&r %player%: %arg-1%"
			else:
				send "&cUsage: /staffchatmsg <message>"
		if {staffchat.enabled::%uuid of player%} is false:
			send "&aYou send: &8[&cStaff&2Chat&8]&r %player%: %arg-1%" to player


command /staffchattoggle:
	permission: staff.chat
	permission message: &cYou do not have permission to do that!
	trigger:
		if {staffchat.enabled::%uuid of player%} is true:
			set {staffchat.enabled::%uuid of player%} to false
			send "&aYou have disabled &8[&cStaff&2Chat&8]" to player
		else if {staffchat.enabled::%uuid of player%} is false:
			set {staffchat.enabled::%uuid of player%} to true
			send "&aYou have enabled &8[&cStaff&2Chat&8]" to player

for some reason the command "/staffchat [<text>]" causes issues for some people, i think it's because there is already a command like that in some plugins?
so i just made it into 2 commands

hope this is what you wanted 🙂

                                                                        Skærmbillede 2024-02-11 151140.png

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...