Hot Summer Deals are Here!
Celebrate with up to 99% off on 17,100 resources
03
Days
11
Hours
26
Mins
09
Secs

need help on skript

Status
This thread has been locked.

lolhooft

Feedback score
0
Posts
38
Reactions
6
Resources
0
hello i am dutchminer523 owner of ragepvpfactions.

i have made a gkit skript with cooldown enz.
but i want it to have wen you click it again send a message saying you have (time left) before you can use this gkit again.


i hope i can get a reply fast.

greetings dutchminer523
 

Attachments

  • gkit help mc market.txt
    2.1 KB · Views: 27
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

PhazeClan

Feedback score
2
Posts
15
Reactions
8
Resources
0
When it's first used and the cooldown begins, you must set the player variable to now. (set {cooldown.%player%} to now)

Then when they try to use it again, you must use the difference between the desired cooldown time and when they try to use it at that moment.

With the cooldown as 30 seconds for this example, I'd do something like this. (With the correct formatting)
if {cooldown.%player%} is set:
if difference between 30 seconds and {cooldown.%player%} is great than 30 seconds:
send "You must still wait %difference between 30 seconds and {cooldown.%player%}%" to player
 

PhazeClan

Feedback score
2
Posts
15
Reactions
8
Resources
0
no way ur phase clan and using skript
I've used Skript for a year as I have very little patience and learning Java was always a struggle for me. I've learned a lot more of the Spigot/Bukkit API recently. If someone's asking for help I'll give a hand.

EDIT: Skript is more powerful than you may think. Don't just go with the stereotype that Skript is bad because everyone else does.
 
Last edited:

PhazeClan

Feedback score
2
Posts
15
Reactions
8
Resources
0
Honestly same, i went to codeacademy.com and they have a course of computer programming to basic to hard
HTML, PHP, CSS is the first language, and i'm having a blast Kappa
My uncle works for a large company and he's a web/java developer. I have too many responsibilities to dedicate a good amount of time to learning java and whatnot. It's a good thing to learn during the Summer.
 
Status
This thread has been locked.
Top