Jump to content

Recommended Posts

Hello, I'm looking of skript which will slow down chat

Commands

/chatslow <seconds> 

 "Chat has been slowed to {slowness} seconds"

/chatslow cancel

 "Chatslowness has been cancelled"

When a player tries to spam the chat

"Please wait {slowness} seconds before typing your message."

Thank you!

Link to post
Share on other sites
command /chatslow <text>:
  permission: chatslow.set
  trigger:
  	if arg-1 is "cancel" or "Cancel":
  		delete {slowness}
  		broadcast "Chatslowness has been cancelled"
  	else:
  		set {_i} to arg-1 parsed as an integer
  		set {slowness} to {_i}
  		broadcast "Chat has been slowed to %{slowness}% seconds"
  
on chat:
  if {slowness} is set:
  	if {chatslow::%player's uuid%} is not set:
  		set {chatslow::%player's uuid%} to {slowness} seconds ago 
  	if now < {chatslow::%player's uuid%}:
      cancel event
      send "Please wait %difference between now and {chatslow::%player's uuid%}% seconds before typing your message"
     else:
      set {chatslow::%player's uuid%} to now

Skript is not tested. If it gives you any errors message me on Discord Tarna256#8675. Next time request skripts in the Marketplace Category. Just made it here for you because I was bored.

 

[VIP] - 7/27/2020
Support - 7/08/2020
Senior Support - 8/02/2020


image.png.2111009afbd8bef10966ba9ede35a199.pngimage.png.70849a9b84e0347ce107b8e3eaee312c.png

Great website if you need help with any plugins or answers to commonly asked questions - https://minehut.xyz/

IGN: _Tarna_
Discord: Tarna256#867

Link to post
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...