Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoSuchMethodError when trying to use the reload script effect. #28

Open
Snow-Pyon opened this issue Jun 30, 2017 · 5 comments
Open

NoSuchMethodError when trying to use the reload script effect. #28

Snow-Pyon opened this issue Jun 30, 2017 · 5 comments

Comments

@Snow-Pyon
Copy link

As said in the title, I'm getting a NoSuchMethodError while trying to use the reload script effect. This might be due to the changes made on this commit as it uses Config objects rather than File objects now.


Code:

#although it isn't really useful since the error happens no matter how you execute the effect, here is it:
on skript load:

  wait 1 second

  reload script script's name 

Errors:

[18:23:15 WARN]: [Skript] Task #26 for Skript v2.2-dev29 generated an exception
java.lang.NoSuchMethodError: ch.njol.skript.ScriptLoader.loadScripts([Ljava/io/File;)Lch/njol/skript/ScriptLoader$ScriptInfo;
        at uk.tim740.skUtilities.util.EffReloadSkript.execute(EffReloadSkript.java:32) ~[?:?]
        at ch.njol.skript.lang.Effect.run(Effect.java:52) ~[?:?]
        at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61) ~[?:?]
        at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89) ~[?:?]
        at ch.njol.skript.effects.Delay$1.run(Delay.java:94) ~[?:?]
        at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-6e3cec8]
        at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:353) [spigot-1.11.2.jar:git-Spigot-3fb9445-6e3cec8]
        at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:738) [spigot-1.11.2.jar:git-Spigot-3fb9445-6e3cec8]
        at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:399) [spigot-1.11.2.jar:git-Spigot-3fb9445-6e3cec8]
        at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:678) [spigot-1.11.2.jar:git-Spigot-3fb9445-6e3cec8]
        at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:576) [spigot-1.11.2.jar:git-Spigot-3fb9445-6e3cec8]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]

Versions:

Addon Version: 0.9.0
Skript Version: 2.2-dev29
Minecraft Version: 1.11.2
Java Version: 1.8.0_131b11

@aescraftbr
Copy link

can confirm.
Nice.

@tim740
Copy link
Owner

tim740 commented Aug 29, 2017

@bensku

@bensku
Copy link

bensku commented Aug 30, 2017

I did remov some methods due to changes to internals. And even before they were removed, it was required to call another method before actually loading the script to parse function signatures.

I'll see if I can add more sane and documented API for script reloads. Also, possibly emulating old behaviour like this.

@tim740
Copy link
Owner

tim740 commented Sep 16, 2017

@bensku i suggest you add this to base skript

@bensku
Copy link

bensku commented Sep 16, 2017

It is planned, but no ETA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants