Solved Whats wrong with this skript?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Wolwer

Active Member
Feb 8, 2018
53
5
8
Hi!
I need help.

I get this error every time when executing a function:

Code:
Code:
function circleBot(p: player):
    set {_name} to "&c%random player out of all players%"
    set {_n} to npc named {_name} "PLAYER"
    set fly of npc {_n} to true
    set protect of npc {_n} to false
    spawn npc {_n} at location of {_p} ~ vector 1, 100, 0
    make citizen {_n} hold iron_sword
    make console execute command "npc select %{_name}%"
    make console execute command "npc gravity"
    make console execute command "npc rename &c%{name}%"
    set {_id} to id of npc {_n}
    set {_e} to entity from npc {_n}
    apply invisibility without particles to {_e} for 4 seconds
    wait 4 seconds
    add {_e} to {bots::*}
    loop 4 times:
        loop 360 times:
            set {_ploc} to location of {_p}
            set {_v} to cylindrical vector 2, loop-number-2, 1
            teleport {_e} to {_ploc} ~ {_v}
            mod(loop-number-2, 16) = 0
            make citizen {_n} swing arm
            wait 1 ticks
    remove {_e} from {bots::*}
    remove npc {_n}
    delete npc {_n}
    wait 5 seconds
    delete {botcheck::%{_p}%}
Error:
Code:
[17:38:24] [Server thread/ERROR]: #!#!
[17:38:24] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[17:38:24] [Server thread/ERROR]: #!#!
[17:38:24] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
[17:38:24] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[17:38:24] [Server thread/ERROR]: #!#! Your Minecraft version or server software appears to be unsupported by Skript (bensku's version).
[17:38:24] [Server thread/ERROR]: #!#! Currently only supported servers are Spigot and its forks for Minecraft 1.9 or newer.
[17:38:24] [Server thread/ERROR]: #!#! Other versions might work, but since you're getting this error message something is NOT working,
[17:38:24] [Server thread/ERROR]: #!#! nor it will work, unless you switch to supported platform.
[17:38:24] [Server thread/ERROR]: #!#! Issue tracker: https://github.com/SkriptLang/Skript/issues (only if you know what you're doing!)
[17:38:24] [Server thread/ERROR]: #!#!
[17:38:24] [Server thread/ERROR]: #!#! Stack trace:
[17:38:24] [Server thread/ERROR]: #!#! java.lang.NullPointerException
[17:38:24] [Server thread/ERROR]: #!#!     at net.rayfall.eyesniper2.skrayfall.citizens.effects.EffCitizenHold.execute(EffCitizenHold.java:53)
[17:38:24] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:52)
[17:38:24] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
[17:38:24] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[17:38:24] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:55)
[17:38:24] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.function.ScriptFunction.execute(ScriptFunction.java:93)
[17:38:24] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.function.Function.execute(Function.java:119)
[17:38:24] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.function.FunctionReference.execute(FunctionReference.java:204)
[17:38:24] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.function.EffFunctionCall.execute(EffFunctionCall.java:53)
[17:38:24] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:52)
[17:38:24] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
[17:38:24] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[17:38:24] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:55)
[17:38:24] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:285)
[17:38:24] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:242)
[17:38:24] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.onCommand(ScriptCommand.java:193)
[17:38:24] [Server thread/ERROR]: #!#!     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
[17:38:24] [Server thread/ERROR]: #!#!     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
[17:38:24] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641)
[17:38:24] [Server thread/ERROR]: #!#!     at com.earth2me.essentials.commands.Commandsudo$1SudoCommandTask.run(Commandsudo.java:61)
[17:38:24] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71)
[17:38:24] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350)
[17:38:24] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:723)
[17:38:24] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[17:38:24] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[17:38:24] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[17:38:24] [Server thread/ERROR]: #!#!     at java.lang.Thread.run(Thread.java:748)
[17:38:24] [Server thread/ERROR]: #!#!
[17:38:24] [Server thread/ERROR]: #!#! Version Information:
[17:38:24] [Server thread/ERROR]: #!#!   Skript: 2.2-dev36 (OUTDATED)
[17:38:24] [Server thread/ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
[17:38:24] [Server thread/ERROR]: #!#!   Minecraft: 1.8.8
[17:38:24] [Server thread/ERROR]: #!#!   Java: 1.8.0_212 (OpenJDK 64-Bit Server VM 25.212-b03)
[17:38:24] [Server thread/ERROR]: #!#!   OS: Linux amd64 4.15.0-54-generic
[17:38:24] [Server thread/ERROR]: #!#!
[17:38:24] [Server thread/ERROR]: #!#! Server platform: Spigot
[17:38:24] [Server thread/ERROR]: #!#!
[17:38:24] [Server thread/ERROR]: #!#! Current node: null
[17:38:24] [Server thread/ERROR]: #!#! Current item: null
[17:38:24] [Server thread/ERROR]: #!#! Current trigger: function circleBot (simple event) (core.sk, line -1)
[17:38:24] [Server thread/ERROR]: #!#!
[17:38:24] [Server thread/ERROR]: #!#! Thread: Server thread
[17:38:24] [Server thread/ERROR]: #!#!
[17:38:24] [Server thread/ERROR]: #!#! Language: english
[17:38:24] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
[17:38:24] [Server thread/ERROR]: #!#!
[17:38:24] [Server thread/ERROR]: #!#! End of Error.
[17:38:24] [Server thread/ERROR]: #!#!

Also, when reloading the skript there is no errors.

Versions:

SkRayFall - 1.9.15 (lime)
Skript: 2.2-dev36
Skellett: 1.9.6b

Help me please...
 
  1. [17:38:24] [Server thread/ERROR]: #!#! Your Minecraft version or server software appears to be unsupported by Skript (bensku's version).
  2. [17:38:24] [Server thread/ERROR]: #!#! Currently only supported servers are Spigot and its forks for Minecraft 1.9 or newer.
  3. [17:38:24] [Server thread/ERROR]: #!#! Other versions might work, but since you're getting this error message something is NOT working,
  4. [17:38:24] [Server thread/ERROR]: #!#! nor it will work, unless you switch to supported platform
Are you using 1.8?
 
  1. [17:38:24] [Server thread/ERROR]: #!#! Your Minecraft version or server software appears to be unsupported by Skript (bensku's version).
  2. [17:38:24] [Server thread/ERROR]: #!#! Currently only supported servers are Spigot and its forks for Minecraft 1.9 or newer.
  3. [17:38:24] [Server thread/ERROR]: #!#! Other versions might work, but since you're getting this error message something is NOT working,
  4. [17:38:24] [Server thread/ERROR]: #!#! nor it will work, unless you switch to supported platform
Are you using 1.8?
I'm using 1.8.8
 
If im not reading mistakenly it says that the spigot version and maybe some of the plugins is only supported by 1.9...
 
If im not reading mistakenly it says that the spigot version and maybe some of the plugins is only supported by 1.9...
So, what I should do? I can't change my server version, but I need this skript...
 
I dont mean to sound rude, but the advice going back and forth here is so terribly wrong

First of all, this:
Code:
[17:38:24] [Server thread/ERROR]: #!#! Your Minecraft version or server software appears to be unsupported by Skript (bensku's version).
[17:38:24] [Server thread/ERROR]: #!#! Currently only supported servers are Spigot and its forks for Minecraft 1.9 or newer.
is NOT the error. This is just part of the stack trace, warning the user that the version of Skript they are using is not supported (By the dev team) on version below 1.9. In this case, running 1.8.x has nothing to do with this error.

If you continue reading the error, you will see:
Code:
[17:38:24] [Server thread/ERROR]: #!#! Stack trace:
[17:38:24] [Server thread/ERROR]: #!#! java.lang.NullPointerException
[17:38:24] [Server thread/ERROR]: #!#!     at net.rayfall.eyesniper2.skrayfall.citizens.effects.EffCitizenHold.execute(EffCitizenHold.java:53)
this part "net.rayfall.eyesniper2.skrayfall.citizens.effects.EffCitizenHold" is meaning the error is coming from SkRayFall, and the error has nothing to do with Skript itself.


SO PLEASE if you are going to go on and on giving advice for an error, please understand how to read these errors, because telling a user to try a different version of Skript, when the error has nothing to do with Skript itself, is just silly, and you are giving very incorrect information.

As for the root of this error, I dont actually know, and I'm not going to sit here making up advice like everyone else, but the reason I dont know, is because I dont use extremely outdated software (4 year old Spigot software and 1+ year old, unsupported Skript software), but my guess is you are most likely running a version of either SkRayFall or Citizens that isn't supported by your ancient version of Spigot.

Check that you are running the correct version of these plugins for your ancient version of Spigot, and if all that seems correct, contact the dev of SkRayFall.
 
I dont mean to sound rude, but the advice going back and forth here is so terribly wrong

First of all, this:
Code:
[17:38:24] [Server thread/ERROR]: #!#! Your Minecraft version or server software appears to be unsupported by Skript (bensku's version).
[17:38:24] [Server thread/ERROR]: #!#! Currently only supported servers are Spigot and its forks for Minecraft 1.9 or newer.
is NOT the error. This is just part of the stack trace, warning the user that the version of Skript they are using is not supported (By the dev team) on version below 1.9. In this case, running 1.8.x has nothing to do with this error.

If you continue reading the error, you will see:
Code:
[17:38:24] [Server thread/ERROR]: #!#! Stack trace:
[17:38:24] [Server thread/ERROR]: #!#! java.lang.NullPointerException
[17:38:24] [Server thread/ERROR]: #!#!     at net.rayfall.eyesniper2.skrayfall.citizens.effects.EffCitizenHold.execute(EffCitizenHold.java:53)
this part "net.rayfall.eyesniper2.skrayfall.citizens.effects.EffCitizenHold" is meaning the error is coming from SkRayFall, and the error has nothing to do with Skript itself.


SO PLEASE if you are going to go on and on giving advice for an error, please understand how to read these errors, because telling a user to try a different version of Skript, when the error has nothing to do with Skript itself, is just silly, and you are giving very incorrect information.

As for the root of this error, I dont actually know, and I'm not going to sit here making up advice like everyone else, but the reason I dont know, is because I dont use extremely outdated software (4 year old Spigot software and 1+ year old, unsupported Skript software), but my guess is you are most likely running a version of either SkRayFall or Citizens that isn't supported by your ancient version of Spigot.

Check that you are running the correct version of these plugins for your ancient version of Spigot, and if all that seems correct, contact the dev of SkRayFall.
Thanks. I'll check versions and reinstall all addons. Again thanks :emoji_slight_smile:
 
Status
Not open for further replies.