Error Analysis Summary
9
Total Errors Found
7
Syntax Errors
2
Deprecated Patterns
1
Web Request Issues
Detected Errors in kits.sk
9 errors
-
if {_diff} is less than {_cooldown} parsed as timespan:Fix:
Use proper time span parsing syntax. In Skript 2.6.4, you need to ensure the time value is properly formatted.
if {_diff} is less than time span from {_cooldown}: -
set {_hours} to {_remaining} in hoursFix:
Convert time span to hours using the proper syntax:
set {_hours} to {_remaining}'s hours -
give 1 of speed potion extended to {_p}Fix:
Use the correct potion syntax for Skript 2.6.4:
give 1 extended speed potion to {_p}or for more control:
give {_p} 1 potion of speed with duration 8 minutes -
apply permanet effect speed 1 to {_p}Fix:
Correct the spelling of "permanent" and use proper effect syntax:
apply permanent speed 1 to {_p}For infinite duration:
apply permanent speed 1 to {_p} with infinite duration -
play 10 happy villager at {_p}'s locationFix:
Replace deprecated particle effects with the new syntax:
draw happy villager at {_p}'s location with count 10 -
function giveKit(p: player, kit: text) :: boolean:Fix:
Update the function return type declaration:
function giveKit(p: player, kit: text) :: boolean:Make sure all return statements return a boolean value (true/false)
-
if {_kit} is "starter": ... else if {_kit} is "pvp": ... else:Fix:
Ensure proper if-else structure without empty lines between conditions:
if {_kit} is "starter": # code else if {_kit} is "pvp": # code else: # code -
if {_diff} is less than "1d" parsed as timespan:Fix:
Use proper time span parsing:
if {_diff} is less than time span from "1 day":or:
if {_diff} is less than 1 day: -
on request to "https://ваш-сервер.com/donate/confirm":Fix:
Web requests require Skript's HTTP request feature or an addon like Skellett. Update the syntax:
on skript load: set {_url} to "https://ваш-сервер.com/donate/confirm" set {_response} to http request using get to {_url}Or use SkBee's web request syntax if available:
on http request to "donate/confirm": if event-path is "donate/confirm": # handle request
Fixed Skript Code