Yodexx Posted August 28, 2020 Share Posted August 28, 2020 HI. Now recently, me and my buddy candy (ImInCandyland) were trying to make a /mutechat command! Nothing has been working, even other peoples skripts! Now the reason why this cmd isn't working is because either ... Your fork, or because your using beta versions of skript If you can fix YOUR fork, or download the latest version of skript and use it, that would be very appreciated Thx u Yodexx OWNER - MCMinemon Minigames DUCK - Discord (QuackyYodexx#0001) Link to comment Share on other sites More sharing options...
_Tarna_ Posted August 28, 2020 Share Posted August 28, 2020 What is the skript you used that isn't working? Does it give any errors or does it just not work at all? Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 - 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
notminehut Posted August 28, 2020 Share Posted August 28, 2020 You should send us the code you used so we can see if there's any issues with it! Founder - Minehut.xyz The leading Minehut support website. We aim to provide top quality tutorials, provide answers to top questions, and help in any way we can. Our site is community driven, and we will continue to make it better and better. Support | 28/08/20 -13/09/20 Senior Support | 13/09/20 - 19/10/20 Link to comment Share on other sites More sharing options...
Yodexx Posted August 29, 2020 Author Share Posted August 29, 2020 options: #Put "on" to turn on that part of the script and "off" to turn off that part of the script! mutechat: on clearchat: on #Change the prefixes and permission message here! serverprefix: &3&lChat &8>> pm: &3&lChat &8>> &4You can't do that! #Change the permission commands here! talkpower1: /pex user %arg-2% add chat.mute.bypass talkpower2: /pex user %arg-2% remove chat.mute.bypass #Change the permission nodes here! talkpower: chat.chat.mute.talkpower #Permission to do /talkpower chatmute: chat.chat.mute #Permission to do /mutechat chatbypass: chat.mute.bypass #Permission to talk when chat is muted chatclear: chat.clearchat #Permission to clear the chat command /talkpower <text> <player>: permission: {@talkpower} permission message: {@pm} trigger: if {@mutechat} is on: if arg-1 is set: if arg-2 is not set: send "{@serverprefix} &cPlease insert a username!" if arg-2 is set: if arg-1 is not "on" or "off" or "check": send "{@serverprefix} &cPlease insert &c&lon&c, &c&loff&c&c, or &c&lcheck&c!" if arg-1 is "on": if arg-2 is set: send "{@serverprefix} &7You're chat mute bypass has been &8enabled" to arg-2 make console execute "{@talkpower1}" if arg-1 is "off": if arg-2 is set: send "{@serverprefix} &7You're chat mute bypass has been &8disabled" to arg-2 make console execute "{@talkpower2}" if arg-1 is "check": if arg-2 is set: if arg-2 has permission "chat.mute.bypass": send "{@serverprefix} &8%arg-2% &7has chat bypass &8enabled" else if arg-2 does not have permission "chat.mute.bypass": send "{@serverprefix} &8%arg-2% &7has chat bypass &8disabled" if {@mutechat} is off: stop command /mutechat: trigger: if player have permission "mutechat.*": if {mutechat} is not set: set {mutechat} to false broadcast "&3The chat has been unmuted by %player%" else if {mutechat} is true: set {mutechat} to false broadcast "&3The chat has been unmuted by %player%" else: set {mutechat} to true broadcast "&3The chat has been muted by %player%" on chat: if {mutechat} is true: if player do not have permission "mutechat.bypass": cancel event send "&cYou do not have permission to talk while the chat is muted!!!" to player command /clearchat: permission: {@chatclear} permission message: {@pm} trigger: if {@clearchat} is on: loop 1000 times: broadcast "" broadcast "{@serverprefix} &7Chat cleared by &8%player%" if {@clearchat} is off: stop Here Yodexx OWNER - MCMinemon Minigames DUCK - Discord (QuackyYodexx#0001) Link to comment Share on other sites More sharing options...
notminehut Posted August 29, 2020 Share Posted August 29, 2020 Are there any errors when you reload the script? Founder - Minehut.xyz The leading Minehut support website. We aim to provide top quality tutorials, provide answers to top questions, and help in any way we can. Our site is community driven, and we will continue to make it better and better. Support | 28/08/20 -13/09/20 Senior Support | 13/09/20 - 19/10/20 Link to comment Share on other sites More sharing options...
Yodexx Posted August 29, 2020 Author Share Posted August 29, 2020 no Yodexx OWNER - MCMinemon Minigames DUCK - Discord (QuackyYodexx#0001) Link to comment Share on other sites More sharing options...
_Tarna_ Posted August 29, 2020 Share Posted August 29, 2020 You did if {@mutechat} is on: if {@clearchat} is on: if {@clearchat} is off: You have to put the on and off in quotes i think because those are not any types on skript. Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 - 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
Yodexx Posted August 29, 2020 Author Share Posted August 29, 2020 (edited) problem: Line 21: Can't compare a boolean(yes/no) with a text (script.sk, line 21: if {@mutechat} is "on":') Line 68: Can't compare a boolean(yes/no) with a text (script.sk, line 68: if {@clearchat} is "on":') Line 72: Can't compare a boolean(yes/no) with a text (script.sk, line 72: if {@clearchat} is "off":') Edited August 29, 2020 by stampynotcat Yodexx OWNER - MCMinemon Minigames DUCK - Discord (QuackyYodexx#0001) Link to comment Share on other sites More sharing options...
Yodexx Posted August 29, 2020 Author Share Posted August 29, 2020 (edited) @_Tarna_so we tested the command on another server (with a different host) and it was working fine In this case, you guys may have to update skript, or just modify your fork lol Edited August 29, 2020 by stampynotcat Yodexx OWNER - MCMinemon Minigames DUCK - Discord (QuackyYodexx#0001) Link to comment Share on other sites More sharing options...
DeltaRays Posted August 29, 2020 Share Posted August 29, 2020 Make sure you don’t have any other on chat: events Link to comment Share on other sites More sharing options...
DeltaRays Posted August 29, 2020 Share Posted August 29, 2020 Also could you elaborate on what you mean with ‘doesn’t work’? What doesn’t work? Link to comment Share on other sites More sharing options...
farwl Posted August 30, 2020 Share Posted August 30, 2020 tough scenes Graphic Designer - Skript Developer - Professional Builder - Content Creator Been on Minehut since January 2018. Throughout my time here I've mastered the skills you see above. I make free logos, banners, and server art for users on Minehut. I'm a proficient Skript developer. I'm also really good at building, you can see my portfolio by clicking here. Feel free to say hi if you see me somewhere Amethyst Studios Discord Link to comment Share on other sites More sharing options...
UntitledGoose Posted August 31, 2020 Share Posted August 31, 2020 (edited) mate this isnt a problem with our fork we didn't do anything that should break your script and instead of using "if {@clearchat} is yes/no", instead use "if {@clearchat} is true/false", that's how it works pal Edited August 31, 2020 by TheGoose typo VIP since January 7th, 2020 Support since September 19th, 2020 Helper since November 3rd, 2020 Moderator since March 8th, 2021 Link to comment Share on other sites More sharing options...
UntitledGoose Posted August 31, 2020 Share Posted August 31, 2020 1 minute ago, TheGoose said: mate this isnt a problem with our fork we didn't do anything that should break your script and instead of using "if {@clearchat} is yes/no", instead use "if {@clearchat} is true/false", that's how it works pal or perhaps not.... hmm.. not sure why skript is complaining, perhaps just inconsistency, but try my advice anyways VIP since January 7th, 2020 Support since September 19th, 2020 Helper since November 3rd, 2020 Moderator since March 8th, 2021 Link to comment Share on other sites More sharing options...
oVapor Posted August 31, 2020 Share Posted August 31, 2020 On 8/28/2020 at 7:22 PM, stampynotcat said: Now the reason why this cmd isn't working is because either ... Your fork, or because your using beta versions of skript Worked for me with the edits that @_Tarna_ suggested [VIP] - 08/29/2020 Discord - Detective Vapor#2222 Link to comment Share on other sites More sharing options...
Yodexx Posted September 3, 2020 Author Share Posted September 3, 2020 On 8/29/2020 at 5:16 AM, DeltaRays said: Make sure you don’t have any other on chat: events Then, what kind of event can I use? Yodexx OWNER - MCMinemon Minigames DUCK - Discord (QuackyYodexx#0001) Link to comment Share on other sites More sharing options...
DeltaRays Posted September 4, 2020 Share Posted September 4, 2020 You can use all events, it's just better to have only one event per type for it to be harder for you to encounter issues 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