Error Analysis Summary
9
Total Errors Found
7
Syntax Errors
2
Deprecated Patterns
1
Web Request Issues
Detected Errors in kits.sk 9 errors
  • ✖
    Syntax Error: {_cooldown} parsed as a time span is not a number
    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}:
  • ✖
    Syntax Error: Can't understand this expression: '{_remaining} in hours'
    set {_hours} to {_remaining} in hours
    Fix:

    Convert time span to hours using the proper syntax:

    set {_hours} to {_remaining}'s hours
  • ✖
    Syntax Error: '1 of speed potion extended' can't be added to {_p} because the former is not an object
    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
  • ✖
    Syntax Error: Can't understand this condition/effect: apply permanet effect speed 1 to {_p}
    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
  • ⚠
    Deprecation Warning: (spawn|play) are very slow for this effect and will be removed in the future
    play 10 happy villager at {_p}'s location
    Fix:

    Replace deprecated particle effects with the new syntax:

    draw happy villager at {_p}'s location with count 10
  • ✖
    Syntax Error: The returned value of the function 'giveKit', boolean (yes/no), is not a java object.
    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)

  • ✖
    Syntax Error: 'else' has to be placed just after another 'if' or 'else if' section
    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
  • ✖
    Syntax Error: "1d" parsed as a time span is not a number
    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:
  • ✖
    Web Request Error: Can't understand this event: 'on request to "https://ваш-сервер.com/donate/confirm"'
    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