Jump to content

Chat ping skript


pnguin

Recommended Posts

For you guys not knowing how to make a "@<insert name>" skript 🙂 

on chat:
	loop all players:
		if message contains "%loop-player%":
			replace "%loop-player%" with "&e@%loop-player%&f" in message
			if {pingsound::%loop-player's uuid%} is true:
				play sound "BLOCK_NOTE_BLOCK_PLING" with volume 1 and pitch 1 to loop-player
				
command /togglepingsound:
	cooldown: 3 seconds
	cooldown message: &cYou are on cooldown! &8(&c%remaining%&8)
	trigger:
		if {pingsound::%player's uuid%} is not set:
			set {pingsound::%player's uuid%} to true
			send "&aYou enabled the Ping Sound!"
		if {pingsound::%player's uuid%} is true:
			delete {pingsound::%player's uuid%}
			send "&cYou disabled the Ping Sound!"

Update: Added a toggle for the pling sound

Edited by skPizza
  • Like 1
I used to play Minehut I guess?
Yeah, I still watch the forums for some reason. (15/5/2023)
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...