Status
This thread has been locked.

ThomasDoetGames

Feedback score
0
Posts
5
Reactions
0
Resources
0
Hi all,

I'm looking for a (skript) solution to add a cooldown to /pt lightning. I would like to be able to change it, should it ever be necessary. Thusfar, any existing plugin/skript I've tried didn't work.
Looking forward to your responses!

Thomas
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Landon

wow!
Supreme
Feedback score
111
Posts
1,590
Reactions
2,040
Resources
7

ThomasDoetGames

Feedback score
0
Posts
5
Reactions
0
Resources
0
I've tried to do it with essentials, but then I can only control '/powertool lightning' or '/lightning' it won't give me a cooldown on each time I leftclick with my powertool.
 

ThomasDoetGames

Feedback score
0
Posts
5
Reactions
0
Resources
0
I don't think you can really do this in Skript (I'm not experienced, so I don't know if it would work), Java would do this for you.
Mmh, Could be, I don't really know actually. I saw someone see something similar with skript, so I thought this would work.
 

UGaming

One man Cringe squad
Supreme
Feedback score
31
Posts
1,082
Reactions
684
Resources
3
On command ____:
if {PLCooldown.%player%} is not set:
set {PLCooldown.%player%} to 1
wait 10 seconds
delete {PLCooldown.%player%}
else:
cancel event

Need anything else, lmk <3

(Add the indents where they are needed, it wouldn't let me put the actual right indents in here.)
 
Last edited:

ThomasDoetGames

Feedback score
0
Posts
5
Reactions
0
Resources
0
On command ____:
if {PLCooldown.%player%} is not set:
set {PLCooldown.%player%} to 1
wait 10 seconds
delete {PLCooldown.%player%}
else:
cancel event

Need anything else, lmk <3

(Add the indents where they are needed, it wouldn't let me put the actual right indents in here.)
Hi, thank you for your reply. However, when I try to run the skript, I get the following errors: '
[20:52:50 ERROR]: [Skript] invalid line - all code has to be put into triggers (command with cooldown.sk, line 3: set {PLCooldown.%player%} to 1')
[20:52:50 ERROR]: [Skript] invalid line - all code has to be put into triggers (command with cooldown.sk, line 4: wait 10 seconds')
[20:52:50 ERROR]: [Skript] invalid line - all code has to be put into triggers (command with cooldown.sk, line 5: delete {PLCooldown.%player%}')
[20:52:50 ERROR]: [Skript] invalid line - all code has to be put into triggers (command with cooldown.sk, line 7: cancel event')' Do you know what these errors mean?
 

Evader

Premium
Feedback score
0
Posts
15
Reactions
3
Resources
0
Hi, thank you for your reply. However, when I try to run the skript, I get the following errors: '
[20:52:50 ERROR]: [Skript] invalid line - all code has to be put into triggers (command with cooldown.sk, line 3: set {PLCooldown.%player%} to 1')
[20:52:50 ERROR]: [Skript] invalid line - all code has to be put into triggers (command with cooldown.sk, line 4: wait 10 seconds')
[20:52:50 ERROR]: [Skript] invalid line - all code has to be put into triggers (command with cooldown.sk, line 5: delete {PLCooldown.%player%}')
[20:52:50 ERROR]: [Skript] invalid line - all code has to be put into triggers (command with cooldown.sk, line 7: cancel event')' Do you know what these errors mean?

He clearly told you to put in the necessary indents and you didnt. Use this code:
Code:
On command ____:
    if {PLCooldown.%player%} is not set:
        set {PLCooldown.%player%} to 1
        wait 10 seconds
        delete {PLCooldown.%player%}
    else:
        cancel event
 

ThomasDoetGames

Feedback score
0
Posts
5
Reactions
0
Resources
0
He clearly told you to put in the necessary indents and you didnt. Use this code:
Code:
On command ____:
    if {PLCooldown.%player%} is not set:
        set {PLCooldown.%player%} to 1
        wait 10 seconds
        delete {PLCooldown.%player%}
    else:
        cancel event
It has been confirmed, I definitely am retarted ;) Thanks anyway, my pc just went boom, I’ll check it out on my laptop
 

Evader

Premium
Feedback score
0
Posts
15
Reactions
3
Resources
0
It has been confirmed, I definitely am retarted ;) Thanks anyway, my pc just went boom, I’ll check it out on my laptop

Also make sure that when replacing the on command _____ you put on command "____" with the brackets and no slash
 

UGaming

One man Cringe squad
Supreme
Feedback score
31
Posts
1,082
Reactions
684
Resources
3
Also make sure that when replacing the on command _____ you put on command "____" with the brackets and no slash
Thank you for the further assistance for him, I was not available at the time. :)
 
Status
This thread has been locked.
Top