SLOW CHAT

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

FactionsCrazy

New Member
Sep 1, 2019
8
0
0
20
So I have this


command /slowchat %arg1%
#arg1 would be seconds
permission: slow.chat
permission message: No Permission
Trigger:
#STUFF
#STUFF

Can someone help
[doublepost=1568420607,1568403466][/doublepost]bump
 
Code:
command /slowchat [<text>]:
    permission: slow.chat
    permission message: No Permission
    executable by: players and console
        Trigger:
 
So
Code:
command /slowchat [<text>]:
    permission: slow.chat
    permission message: No Permission
    executable by: players and console
        Trigger:     
on chat:
    cancel event
    if {COOLDOWN::CHAT::%sender%} is not set:
        broadcast "%sender%: &7%message%"
        set {COOLDOWN::CHAT::%sender%} to now
        stop
    set {_cooldown} to difference between {COOLDOWN::CHAT::%sender%} and now
    if {_cooldown} is less than 15 seconds:
        message "You cannot talk for another %{difference between {COOLDOWN::CHAT::%sender%} and now}%"
        stop

 
Status
Not open for further replies.