Jump to content

How to fix it? [skript]


MaroGamer2026

Recommended Posts

Hi, I'm Maro
 
Just I don't know how to fix this problem, can someone help me?
 
code:
on break:
	player's world is "DoubleDigX"
	add 1 to {tg.%player%}
	

every 1 second:
	loop all players:
		if {tg.%loop-player%} is 10:
			clear {tg.%loop-player%}
			send "test" to loop-player
Edited by MaroGamer2026
Link to comment
Share on other sites

Hey hey! The provided Skript code has some syntax errors. Here's the corrected version:

on block break:
    if player's world is "DoubleDigX":
        add 1 to {tg.%player%}

every 1 second:
    loop all players:
        if {tg.%loop-player%} is 10:
            clear {tg.%loop-player%}
            send "test" to loop-player

In the updated code, I fixed the indentation and corrected the event name to "block break" instead of just "break." Additionally, I added the necessary conditions and fixed the variable syntax for {tg.%player%} and {tg.%loop-player%}.

Please note that this Skript code assumes you have the required plugin and the proper environment set up to execute Skript scripts on your server. Make sure to adjust the conditions, actions, and messages as needed.

Let me know if you have any further questions or issues!

Edited by JoshG

If I helped you at all please consider boosting my account with the follow button!
Minehut ♥ [VIP] 12/19/2020 - Present

I am either extremely active or not lol.

 

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