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

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SLOW CHAT

Discussion in 'Skript' started by FactionsCrazy, Sep 13, 2019 at 8:37 PM.

  1. F

    FactionsCrazy Member

    Joined:
    Sep 1, 2019
    Messages:
    8
    Likes Received:
    0
    So I have this


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

    Can someone help
    --- Double Post Merged, Sep 14, 2019 at 1:23 AM, Original Post Date: Sep 13, 2019 at 8:37 PM ---
    bump
     
  2. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    254
    Likes Received:
    17
    What's the issue, show the code, care to elaborate
     
    • Agree Agree x 1
  3. F

    FactionsCrazy Member

    Joined:
    Sep 1, 2019
    Messages:
    8
    Likes Received:
    0
    Code (Text):
    1. command /slowchat [<text>]:
    2.     permission: slow.chat
    3.     permission message: No Permission
    4.     executable by: players and console
    5.         Trigger:
     
  4. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    254
    Likes Received:
    17
    What's the issue, show the code, care to elaborate
    --- Double Post Merged, Sep 14, 2019 at 3:47 PM, Original Post Date: Sep 14, 2019 at 1:51 PM ---
    Code (Skript):
    1. on chat:
    2.     cancel event
    3.     if {COOLDOWN::CHAT::%sender%} is not set:
    4.         broadcast "%sender%: &7%message%"
    5.         set {COOLDOWN::CHAT::%sender%} to now
    6.         stop
    7.     set {_cooldown} to difference between {COOLDOWN::CHAT::%sender%} and now
    8.     if {_cooldown} is less than 15 seconds:
    9.         message "You cannot talk for another %{difference between {COOLDOWN::CHAT::%sender%} and now}%"
    10.         stop
    Pseudo code
     
  5. F

    FactionsCrazy Member

    Joined:
    Sep 1, 2019
    Messages:
    8
    Likes Received:
    0
    So
    Code (Text):
    1.  
    2. command /slowchat [<text>]:
    3.     permission: slow.chat
    4.     permission message: No Permission
    5.     executable by: players and console
    6.         Trigger:    
    7. on chat:
    8.     cancel event
    9.     if {COOLDOWN::CHAT::%sender%} is not set:
    10.         broadcast "%sender%: &7%message%"
    11.         set {COOLDOWN::CHAT::%sender%} to now
    12.         stop
    13.     set {_cooldown} to difference between {COOLDOWN::CHAT::%sender%} and now
    14.     if {_cooldown} is less than 15 seconds:
    15.         message "You cannot talk for another %{difference between {COOLDOWN::CHAT::%sender%} and now}%"
    16.         stop

     
  6. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    254
    Likes Received:
    17
    Code (Skript):
    1. command /slowchat [<text>]:
    2.     permission: slow.chat
    3.     permission message: No Permission
    4.     executable by: players and console
    5.         Trigger:
    WTF is this?
     
  7. F

    FactionsCrazy Member

    Joined:
    Sep 1, 2019
    Messages:
    8
    Likes Received:
    0
    Its to enable /disable the slowchat as well as change the timing
    I think
     
  8. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    254
    Likes Received:
    17
    I meant the no code part, you have no idea what you're talking about...
     
  9. F

    FactionsCrazy Member

    Joined:
    Sep 1, 2019
    Messages:
    8
    Likes Received:
    0
Loading...