Resource icon

Addon SkStuff 1.6.4.1

  • 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!

Unexpected exception while parsing console command "skript reload all"
org.bukkit.command.CommandException: Unhandled exception executing command 'skript' in plugin Skript v2.2-SNAPSHOT
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[s.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[s.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[s.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:627) [s.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:412) [s.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:375) [s.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [s.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [s.jar:git-Spigot-db6de12-18fbb24]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
Caused by: java.lang.NoSuchMethodError: com.sk89q.worldguard.bukkit.WorldGuardPlugin.getFlagRegistry()Lcom/sk89q/worldguard/protection/flags/registry/FlagRegistry;
at me.TheBukor.SkStuff.SkStuff$4.parse(SkStuff.java:238) ~[?:?]
at me.TheBukor.SkStuff.SkStuff$4.parse(SkStuff.java:233) ~[?:?]


Please help! :emoji_frowning:
 
NBT is not working.
What is "not working"? Give more details about it please.

Unexpected exception while parsing console command "skript reload all"
org.bukkit.command.CommandException: Unhandled exception executing command 'skript' in plugin Skript v2.2-SNAPSHOT
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[s.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[s.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[s.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:627) [s.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:412) [s.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:375) [s.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [s.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [s.jar:git-Spigot-db6de12-18fbb24]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
Caused by: java.lang.NoSuchMethodError: com.sk89q.worldguard.bukkit.WorldGuardPlugin.getFlagRegistry()Lcom/sk89q/worldguard/protection/flags/registry/FlagRegistry;
at me.TheBukor.SkStuff.SkStuff$4.parse(SkStuff.java:238) ~[?:?]
at me.TheBukor.SkStuff.SkStuff$4.parse(SkStuff.java:233) ~[?:?]


Please help! :emoji_frowning:

Both versions (the latest SkStuff from here and my fork) requires WorldGuard 6.2+ if I'm not wrong. If you can't update WorldEdit (since you are at 1.8) and you don't use WorldGuard/WorldEdit stuffs, let me know so I can make a build for you that make it optional.
 
What is "not working"? Give more details about it please.



Both versions (the latest SkStuff from here and my fork) requires WorldGuard 6.2+ if I'm not wrong. If you can't update WorldEdit (since you are at 1.8) and you don't use WorldGuard/WorldEdit stuffs, let me know so I can make a build for you that make it optional.
It would be better to make the WorldGuard hook toggleable because it's annoying how many times it broke skStuff for the people who only use it for the NBT stuff.
 
@TheBukor I get many nbt related errors after updating to latest Skript and Spigot 1.12.1:
https://hastebin.com/equkazezet.scala
https://hastebin.com/judutamiwo.coffeescript
Do you think you can fix this?

This is one of the lines in my code:
code_language.skript:
add "{Attributes:[{Name:""generic.maxHealth"",Base:{@klingendaemon_health}}]}" to nbt of last spawned entity

SkStuff version:
[12:36:06] [Server thread/INFO]: [SkStuff] Loading SkStuff v1.6.4.1
Skript:
Skript v2.2-dev30d
 
@TheBukor I get many nbt related errors after updating to latest Skript and Spigot 1.12.1:
https://hastebin.com/equkazezet.scala
https://hastebin.com/judutamiwo.coffeescript
Do you think you can fix this?

This is one of the lines in my code:
code_language.skript:
add "{Attributes:[{Name:""generic.maxHealth"",Base:{@klingendaemon_health}}]}" to nbt of last spawned entity

SkStuff version:
[12:36:06] [Server thread/INFO]: [SkStuff] Loading SkStuff v1.6.4.1
Skript:
Skript v2.2-dev30d
@Tuke_Nuke made a fork of skStuff as @TheBukor isn't developing his addon anymore, here is the link of the fork:
https://github.com/Tuke-Nuke/SkStuff
 
  • Like
Reactions: pepper82
none of the NBT stuff works for me anymore on 1.12 both the with the latest official version and the 1.12 fork. there are so many errors i don't even know where to begin, it's all so confusing
 
test is an item
He added some nbt content

set {test} to book with nbt "{display:{Lore:[0:""§7test""],Name:""§r§r§btest""},Tags:[0:""test""]}"

Then I checked him in the function
function xbxy(p:player, s:string):
if {_p}'s inventory has {test}:
send "ok"
else:
send "no"
#Not detected

This writing can not detect it

But I use the following two wording can be detected

function xbxy(p:player, s:string):
if {_p} is holding {test}:
send "ok"
else:
send "no"
#Can be detected

set {test::1} to book with nbt "{display:{Lore:[0:""§7test""],Name:""§r§r§btest""},Tags:[0:""test""]}"
function xbxy(p:player, s:string):
loop {test::*}:
if {_p}'s inventory has loop-value:
send "ok"
else:
send "no"
#Can be detected

Hope to repair
 
What is "not working"? Give more details about it please.



Both versions (the latest SkStuff from here and my fork) requires WorldGuard 6.2+ if I'm not wrong. If you can't update WorldEdit (since you are at 1.8) and you don't use WorldGuard/WorldEdit stuffs, let me know so I can make a build for you that make it optional.
Hey I'm using your skstuff fork on 1.12.2 Dev32b. I was wondering if you have a build of it with worldguard support removed? I noticed some of the vanilla skript worldguard support doesn't work with Skstuff installed, for example if I parse a text as a region it will not work, but as soon as I uninstalled skstuff it worked fine. I really only use skstuff for nbt so I would love a build without it
 
Both versions (the latest SkStuff from here and my fork) requires WorldGuard 6.2+ if I'm not wrong. If you can't update WorldEdit (since you are at 1.8) and you don't use WorldGuard/WorldEdit stuffs, let me know so I can make a build for you that make it optional.
Was this build without worldguard/worldedit stuff made? A lot of my server is broken because of it.
 
Was this build without worldguard/worldedit stuff made? A lot of my server is broken because of it.
I was never able to get anyone with java experience to compile a version with worldguard support removed, I did however go in and just straight up removed some class files to do with worldguard, I honestly forgot which ones I removed but I basically broke the worldguard functionality from skstuff and although skstuff loads with a few errors now obviously because of missing class files, my worldguard functionality is fine now. If you want me to pm you my build I can do that unless its against the rules
 
Hi, I tried using your addon and it doesn't run.

I'm not using worldguard 6.2 because it's for 1.12 and my server is running in 1.8 (With viaversion).

Console errors:
code_language.skript:
26.03 22:32:41 [Server] WARN Task #5 for Skript v2.2-dev24b generated an exception
26.03 22:32:41 [Server] INFO java.lang.NoSuchMethodError: com.sk89q.worldguard.bukkit.WorldGuardPlugin.getFlagRegistry()Lcom/sk89q/worldguard/protection/flags/registry/FlagRegistry;
26.03 22:32:41 [Server] INFO at me.TheBukor.SkStuff.SkStuff$4.parse(SkStuff.java:244) ~[?:?]
26.03 22:32:41 [Server] INFO at me.TheBukor.SkStuff.SkStuff$4.parse(SkStuff.java:1) ~[?:?]
26.03 22:32:41 [Server] INFO at ch.njol.skript.registrations.Classes.parseSimple(Classes.java:422) ~[?:?]
26.03 22:32:41 [Server] INFO at ch.njol.skript.registrations.Classes.parse(Classes.java:451) ~[?:?]
26.03 22:32:41 [Server] INFO at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:97) ~[?:?]
26.03 22:32:41 [Server] INFO at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:86) ~[?:?]
26.03 22:32:41 [Server] INFO at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:1) ~[?:?]
26.03 22:32:41 [Server] INFO at ch.njol.skript.conditions.CondCompare.init(CondCompare.java:181) ~[?:?]
26.03 22:32:41 [Server] INFO at ch.njol.skript.conditions.CondCompare.init(CondCompare.java:132) ~[?:?]
26.03 22:32:41 [Server] INFO at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:249) ~[?:?]
26.03 22:32:41 [Server] INFO at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:176) ~[?:?]
26.03 22:32:41 [Server] INFO at ch.njol.skript.lang.Condition.parse(Condition.java:83) ~[?:?]
26.03 22:32:41 [Server] INFO at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:833) ~[?:?]
26.03 22:32:41 [Server] INFO at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:513) ~[?:?]
26.03 22:32:41 [Server] INFO at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:247) ~[?:?]
26.03 22:32:41 [Server] INFO at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:201) ~[?:?]
26.03 22:32:41 [Server] INFO at ch.njol.skript.Skript$2.run(Skript.java:406) ~[?:?]
26.03 22:32:41 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) ~[Spigot_1_8_8.jar:git-Spigot-db6de12-18fbb24]
26.03 22:32:41 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [Spigot_1_8_8.jar:git-Spigot-db6de12-18fbb24]
26.03 22:32:41 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:723) [Spigot_1_8_8.jar:git-Spigot-db6de12-18fbb24]
26.03 22:32:41 [Server] INFO at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [Spigot_1_8_8.jar:git-Spigot-db6de12-18fbb24]
26.03 22:32:41 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [Spigot_1_8_8.jar:git-Spigot-db6de12-18fbb24]
26.03 22:32:41 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [Spigot_1_8_8.jar:git-Spigot-db6de12-18fbb24]
26.03 22:32:41 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_161]
 
Hi I'm using the fork to 1.12 but he doesn't work correctly :


code_language.skript:
[22:44:34] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[22:44:34] [Server thread/ERROR]: #!#! Could not load vampire.sk
[22:44:34] [Server thread/ERROR]: #!#!
[22:44:34] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
[22:44:34] [Server thread/ERROR]: #!#! This issue is NOT your fault! You can't probably fix it yourself, either.
[22:44:34] [Server thread/ERROR]: #!#! You're running outdated version of Skript! Please try updating it NOW; it might fix this.
[22:44:34] [Server thread/ERROR]: #!#! You may download new version of Skript at https://github.com/bensku/Skript/releases
[22:44:34] [Server thread/ERROR]: #!#! You will be given instructions how to report this error if it persists with latest Skript.
[22:44:34] [Server thread/ERROR]: #!#! Issue tracker: https://github.com/bensku/Skript/issues (only if you know what you're doing!)
[22:44:34] [Server thread/ERROR]: #!#!
[22:44:34] [Server thread/ERROR]: #!#! Stack trace:
[22:44:34] [Server thread/ERROR]: #!#! java.lang.NullPointerException
[22:44:34] [Server thread/ERROR]: #!#!     at me.TheBukor.SkStuff.SkStuff$5.parse(SkStuff.java:263)
[22:44:34] [Server thread/ERROR]: #!#!     at me.TheBukor.SkStuff.SkStuff$5.parse(SkStuff.java:257)
[22:44:34] [Server thread/ERROR]: #!#!     at ch.njol.skript.registrations.Classes.parseSimple(Classes.java:420)
[22:44:34] [Server thread/ERROR]: #!#!     at ch.njol.skript.registrations.Classes.parse(Classes.java:449)
[22:44:34] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:95)
[22:44:34] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:84)
[22:44:34] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:1)
[22:44:34] [Server thread/ERROR]: #!#!     at ch.njol.skript.conditions.CondCompare.init(CondCompare.java:179)
[22:44:34] [Server thread/ERROR]: #!#!     at ch.njol.skript.conditions.CondCompare.init(CondCompare.java:130)
[22:44:34] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:251)
[22:44:34] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:178)
[22:44:34] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Condition.parse(Condition.java:81)
[22:44:34] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:921)
[22:44:34] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerSection.<init>(TriggerSection.java:54)
[22:44:34] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Conditional.<init>(Conditional.java:44)
[22:44:34] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:928)
[22:44:34] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:567)
[22:44:34] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.lambda$1(ScriptLoader.java:333)
[22:44:34] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:345)
[22:44:34] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.lambda$0(ScriptLoader.java:275)
[22:44:34] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:305)
[22:44:34] [Server thread/ERROR]: #!#!     at ch.njol.skript.Skript$2.run(Skript.java:410)
[22:44:34] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:71)
[22:44:34] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:353)
[22:44:34] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:739)
[22:44:34] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406)
[22:44:34] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679)
[22:44:34] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577)
[22:44:34] [Server thread/ERROR]: #!#!     at java.lang.Thread.run(Thread.java:748)
[22:44:34] [Server thread/ERROR]: #!#!
[22:44:34] [Server thread/ERROR]: #!#! Version Information:
[22:44:34] [Server thread/ERROR]: #!#!   Skript: 2.2-dev30d (OUTDATED)
[22:44:34] [Server thread/ERROR]: #!#!   Bukkit: 1.12.2-R0.1-SNAPSHOT
[22:44:34] [Server thread/ERROR]: #!#!   Minecraft: 1.12.2
[22:44:34] [Server thread/ERROR]: #!#!   Java: 1.8.0_171 (OpenJDK 64-Bit Server VM 25.171-b11)
[22:44:34] [Server thread/ERROR]: #!#!   OS: Linux amd64 4.9.0-6-amd64
[22:44:34] [Server thread/ERROR]: #!#!
[22:44:34] [Server thread/ERROR]: #!#! Running CraftBukkit: false
[22:44:34] [Server thread/ERROR]: #!#! Running Spigot (or compatible): true
[22:44:34] [Server thread/ERROR]: #!#! Running Paper (or compatible): false
[22:44:34] [Server thread/ERROR]: #!#!
[22:44:34] [Server thread/ERROR]: #!#! Current node: if victim is a skeleton: (vampire.sk, line 31)
[22:44:34] [Server thread/ERROR]: #!#! Current item: null
[22:44:34] [Server thread/ERROR]: #!#! Thread: Server thread
 
doesn't work on 1.13+ and i assume the same for 1.14+ will there be updates? :emoji_slight_smile: