Wolfeee_ Posted July 7, 2019 Share Posted July 7, 2019 Hey! I just created an Simple Chat-Clear skript, and it is parsed with no errors. So I hope you enjoy it! By the way, change "[ServerName]" with your server-name. You may also change the color of the text. If you don't know how to do that, then watch a video on color codes or search it up. Here's the skript!: command /clear [<text>]: permission: staff.clear permission message: &cYou may not execute this command! trigger: if arg-1 is not set: send "&cUsage: /clear chat" if arg-1 is "clear": loop 250 times: broadcast "" broadcast "" broadcast "&b[ServerName]" broadcast "&c%player% &7has just cleared the chat!" broadcast "" stop IGN: Wolfeee_ Discord: Nathan.#4380 Link to comment Share on other sites More sharing options...
Wolfeee_ Posted July 7, 2019 Author Share Posted July 7, 2019 If you do end up having troubles, then shoot me a dm on discord! Join my discord server here too shoot me a dm!https://discord.gg/gY3dJ6q IGN: Wolfeee_ Discord: Nathan.#4380 Link to comment Share on other sites More sharing options...
xlr100 Posted July 7, 2019 Share Posted July 7, 2019 A couple of things to fix: 1. No need for "stop" 2. You wrote in the usage that the command is /clear chat but the command would only work if the player types /clear clear 3. After you finished looping there is no need for 4 more broadcasts, use one 4. You should just use if arg-1 is "chat": and else: Link to comment Share on other sites More sharing options...
Wolfeee_ Posted July 8, 2019 Author Share Posted July 8, 2019 Oh, thanks OMan100! I will use that for future references. IGN: Wolfeee_ Discord: Nathan.#4380 Link to comment Share on other sites More sharing options...
123456789hsoikhtgt Posted January 27 Share Posted January 27 Hey, i tried that skript and it broadcasted the message but didnt clear chat please help this is the skript i used command /clear [<text>]: permission: staff.clear permission message: &cYou may not execute this command! trigger: if arg-1 is not set: send "&cUsage: /clear chat" if arg-1 is "clear": loop 250 times: broadcast "" broadcast "" broadcast "&b[ServerName]" broadcast "&c%player% &7has just cleared the chat!" broadcast "" stop Link to comment Share on other sites More sharing options...
sulfur Posted February 16 Share Posted February 16 On 1/27/2024 at 5:54 PM, 123456789hsoikhtgt said: Hey, i tried that skript and it broadcasted the message but didnt clear chat please help this is the skript i used command /clear [<text>]: permission: staff.clear permission message: &cYou may not execute this command! trigger: if arg-1 is not set: send "&cUsage: /clear chat" if arg-1 is "clear": loop 250 times: broadcast "" broadcast "" broadcast "&b[ServerName]" broadcast "&c%player% &7has just cleared the chat!" broadcast "" stop the client you're using probably disables messages without characters in them or you are using an anti-spam mod Link to comment Share on other sites More sharing options...
123456789hsoikhtgt Posted February 20 Share Posted February 20 oh ok thank you lemme have a look Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now