Jump to content

For yo managers & admin (a complaint about your skript fork)


Yodexx

Recommended Posts

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)

 

QUACK.png.e70970f3c45a686de33482fa9bc3eadc.png

Link to comment
Share on other sites

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

---------------------------------------------------------

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

Link to comment
Share on other sites

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

 

forums.gif.5d3db2db4a05c9465b84fa9bf0293df4.gif

Link to comment
Share on other sites

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)

 

QUACK.png.e70970f3c45a686de33482fa9bc3eadc.png

Link to comment
Share on other sites

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

 

forums.gif.5d3db2db4a05c9465b84fa9bf0293df4.gif

Link to comment
Share on other sites

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

---------------------------------------------------------

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

Link to comment
Share on other sites

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 by stampynotcat

Yodexx

OWNER - MCMinemon Minigames

DUCK - Discord (QuackyYodexx#0001)

 

QUACK.png.e70970f3c45a686de33482fa9bc3eadc.png

Link to comment
Share on other sites

@_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 by stampynotcat

Yodexx

OWNER - MCMinemon Minigames

DUCK - Discord (QuackyYodexx#0001)

 

QUACK.png.e70970f3c45a686de33482fa9bc3eadc.png

Link to comment
Share on other sites

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

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 by TheGoose
typo

VIP since January 7th, 2020

Support since September 19th, 2020

Helper since November 3rd, 2020

Moderator since March 8th, 2021

unknown.png

5.png.e14b1bf83edf0ac2edc1bfb822177184.png

image.png.fe30b7b2c0be5a541ba4ed2187b23030.png

Link to comment
Share on other sites

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

unknown.png

5.png.e14b1bf83edf0ac2edc1bfb822177184.png

image.png.fe30b7b2c0be5a541ba4ed2187b23030.png

Link to comment
Share on other sites

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

Urt3GYyYLm.png

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