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!
You can always check out skUnity Downloads for downloads and any other information about Skript!
import:
org.bukkit.event.block.BlockPhysicsEvent
on right click on grass:
if player's tool is any hoe:
cancel event
set event-block to moist farmland
on BlockPhysicsEvent:
if event.getSourceBlock() = soil or moist farmland:
set {_b} to event.getSourceBlock()
set {_state} to {_b}.getBlockData()
{_state}.setMoisture(7)
{_b}.setBlockData({_state})
Send the console errorOh thank you so much
[doublepost=1581873989,1581873763][/doublepost]oh wait
i have an error with a skript (mirror)
Code:import: org.bukkit.event.block.BlockPhysicsEvent on right click on grass: if player's tool is any hoe: cancel event set event-block to moist farmland on BlockPhysicsEvent: if event.getSourceBlock() = soil or moist farmland: set {_b} to event.getSourceBlock() set {_state} to {_b}.getBlockData() {_state}.setMoisture(7) {_b}.setBlockData({_state})
error: An internal error occurred.... blah blah
You're using a very old version of Skript, I recommend 2.2-dev36 for 1.8 servers.[20:27:39 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'sk' in plugin Skript v2.1.2
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_241]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_241]
at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_241]
Caused by: java.lang.NoClassDefFoundError: ch/njol/skript/lang/function/Function
at com.btk5h.skriptmirror.util.SkriptReflection.<clinit>(SkriptReflection.java:53) ~[?:?]
at com.btk5h.skriptmirror.skript.custom.CustomImport.updateImports(CustomImport.java:131) ~[?:?]
at com.btk5h.skriptmirror.skript.custom.CustomImport.registerImport(CustomImport.java:123) ~[?:?]
at com.btk5h.skriptmirror.skript.custom.CustomImport.access$100(CustomImport.java:25) ~[?:?]
at com.btk5h.skriptmirror.skript.custom.CustomImport$SectionImport.lambda$init$0(CustomImport.java:75) ~[?:?]
at java.lang.Iterable.forEach(Unknown Source) ~[?:1.8.0_241]
at com.btk5h.skriptmirror.skript.custom.CustomImport$SectionImport.init(CustomImport.java:75) ~[?:?]
at ch.njol.skript.lang.SkriptParser.parseEvent(SkriptParser.java:680) ~[?:?]
at ch.njol.skript.lang.SkriptParser.parseEvent(SkriptParser.java:651) ~[?:?]
at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:481) ~[?:?]
at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:262) ~[?:?]
at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:155) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
... 15 more
Caused by: java.lang.ClassNotFoundException: ch.njol.skript.lang.function.Function
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_241]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_241]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_241]
at com.btk5h.skriptmirror.util.SkriptReflection.<clinit>(SkriptReflection.java:53) ~[?:?]
at com.btk5h.skriptmirror.skript.custom.CustomImport.updateImports(CustomImport.java:131) ~[?:?]
at com.btk5h.skriptmirror.skript.custom.CustomImport.registerImport(CustomImport.java:123) ~[?:?]
at com.btk5h.skriptmirror.skript.custom.CustomImport.access$100(CustomImport.java:25) ~[?:?]
at com.btk5h.skriptmirror.skript.custom.CustomImport$SectionImport.lambda$init$0(CustomImport.java:75) ~[?:?]
at java.lang.Iterable.forEach(Unknown Source) ~[?:1.8.0_241]
at com.btk5h.skriptmirror.skript.custom.CustomImport$SectionImport.init(CustomImport.java:75) ~[?:?]
at ch.njol.skript.lang.SkriptParser.parseEvent(SkriptParser.java:680) ~[?:?]
at ch.njol.skript.lang.SkriptParser.parseEvent(SkriptParser.java:651) ~[?:?]
at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:481) ~[?:?]
at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:262) ~[?:?]
at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:155) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
... 15 more
If you have SkQuery, what version?ok i did it, but when i reload all the skripts is says: There doesn't exist a material with id (id)! (aliases-english.sk) line (line) (material)
[doublepost=1581940078,1581939990][/doublepost][12:44:56 ERROR]: #!#!
[12:44:56 ERROR]: #!#! [Skript] Severe Error:
[12:44:56 ERROR]: #!#! Could not load plugins.sk
[12:44:56 ERROR]: #!#!
[12:44:56 ERROR]: #!#! Something went horribly wrong with Skript.
[12:44:56 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[12:44:56 ERROR]: #!#! Your Minecraft version or server software appears to be unsupported by Skript (bensku's version).
[12:44:56 ERROR]: #!#! Currently only supported servers are Spigot and its forks for Minecraft 1.9 or newer.
[12:44:56 ERROR]: #!#! Other versions might work, but since you're getting this error message something is NOT working,
[12:44:56 ERROR]: #!#! nor it will work, unless you switch to supported platform.
[12:44:56 ERROR]: #!#! Issue tracker: https://github.com/SkriptLang/Skript/issues (only if you know what you're doing!)
[12:44:56 ERROR]: #!#!
[12:44:56 ERROR]: #!#! Stack trace:
[12:44:56 ERROR]: #!#! ch.njol.skript.SkriptAPIException: No class info found for lambda
[12:44:56 ERROR]: #!#! at ch.njol.skript.registrations.Classes.getClassInfo(Classes.java:263)
[12:44:56 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.createExprInfo(SkriptParser.java:1804)
[12:44:56 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.getExprInfo(SkriptParser.java:1771)
[12:44:56 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1519)
[12:44:56 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:225)
[12:44:56 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:180)
[12:44:56 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:495)
[12:44:56 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:814)
[12:44:56 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1535)
[12:44:56 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1458)
[12:44:56 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1531)
[12:44:56 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1492)
[12:44:56 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:225)
[12:44:56 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:180)
[12:44:56 ERROR]: #!#! at ch.njol.skript.lang.Statement.parse(Statement.java:59)
[12:44:56 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:972)
[12:44:56 ERROR]: #!#! at ch.njol.skript.command.Commands.loadCommand(Commands.java:500)
[12:44:56 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:621)
[12:44:56 ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$1(ScriptLoader.java:389)
[12:44:56 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:401)
[12:44:56 ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$0(ScriptLoader.java:331)
[12:44:56 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:361)
[12:44:56 ERROR]: #!#! at ch.njol.skript.Skript.reload(Skript.java:786)
[12:44:56 ERROR]: #!#! at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:154)
[12:44:56 ERROR]: #!#! at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
[12:44:56 ERROR]: #!#! at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
[12:44:56 ERROR]: #!#! at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641)
[12:44:56 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162)
[12:44:56 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997)
[12:44:56 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
[12:44:56 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
[12:44:56 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
[12:44:56 ERROR]: #!#! at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[12:44:56 ERROR]: #!#! at java.util.concurrent.FutureTask.run(Unknown Source)
[12:44:56 ERROR]: #!#! at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
[12:44:56 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)
[12:44:56 ERROR]: #!#! at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[12:44:56 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[12:44:56 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[12:44:56 ERROR]: #!#! at java.lang.Thread.run(Unknown Source)
console error
Do you have 2 SkQuery plugins on your server?this is my version of skquery, also i tried to delete skquery 4.1.1 but nothing
[doublepost=1581943193,1581943155][/doublepost]View attachment 4235
Try this, if that one doesn't work, try a few versions from here: https://www.spigotmc.org/resources/skquery-1-9-1-15.36631/historyi had 2 skquery, now i deleted one of them, also i'm using version 3.21.4
Which SkQuery version did you use for that?Ok i tried, it works but when i reload a skript it says "can't compare a player: ("if player is holding any hoe")"
console error:
[12:18:11 ERROR]: #!#!
[12:18:11 ERROR]: #!#! [Skript] Severe Error:
[12:18:11 ERROR]: #!#! Could not load farm.sk
[12:18:11 ERROR]: #!#!
[12:18:11 ERROR]: #!#! Something went horribly wrong with Skript.
[12:18:11 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[12:18:11 ERROR]: #!#! Your Minecraft version or server software appears to be unsupported by Skript (bensku's version).
[12:18:11 ERROR]: #!#! Currently only supported servers are Spigot and its forks for Minecraft 1.9 or newer.
[12:18:11 ERROR]: #!#! Other versions might work, but since you're getting this error message something is NOT working,
[12:18:11 ERROR]: #!#! nor it will work, unless you switch to supported platform.
[12:18:11 ERROR]: #!#! Issue tracker: https://github.com/SkriptLang/Skript/issues (only if you know what you're doing!)
[12:18:11 ERROR]: #!#!
[12:18:11 ERROR]: #!#! Stack trace:
[12:18:11 ERROR]: #!#! ch.njol.skript.SkriptAPIException: No class info found for player'
[12:18:11 ERROR]: #!#! at ch.njol.skript.registrations.Classes.getClassInfo(Classes.java:263)
[12:18:11 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.createExprInfo(SkriptParser.java:1804)
[12:18:11 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.getExprInfo(SkriptParser.java:1771)
[12:18:11 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1519)
[12:18:11 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:225)
[12:18:11 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:180)
[12:18:11 ERROR]: #!#! at ch.njol.skript.lang.Statement.parse(Statement.java:59)
[12:18:11 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:972)
[12:18:11 ERROR]: #!#! at ch.njol.skript.lang.TriggerSection.<init>(TriggerSection.java:54)
[12:18:11 ERROR]: #!#! at ch.njol.skript.lang.Conditional.<init>(Conditional.java:44)
[12:18:11 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1058)
[12:18:11 ERROR]: #!#! at ch.njol.skript.lang.TriggerSection.<init>(TriggerSection.java:54)
[12:18:11 ERROR]: #!#! at ch.njol.skript.lang.Conditional.<init>(Conditional.java:44)
[12:18:11 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1058)
[12:18:11 ERROR]: #!#! at ch.njol.skript.lang.TriggerSection.<init>(TriggerSection.java:54)
[12:18:11 ERROR]: #!#! at ch.njol.skript.lang.Conditional.<init>(Conditional.java:44)
[12:18:11 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1058)
[12:18:11 ERROR]: #!#! at ch.njol.skript.lang.TriggerSection.<init>(TriggerSection.java:54)
[12:18:11 ERROR]: #!#! at ch.njol.skript.lang.Conditional.<init>(Conditional.java:44)
[12:18:11 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1058)
[12:18:11 ERROR]: #!#! at ch.njol.skript.lang.TriggerSection.<init>(TriggerSection.java:54)
[12:18:11 ERROR]: #!#! at ch.njol.skript.lang.Conditional.<init>(Conditional.java:44)
[12:18:11 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1058)
[12:18:11 ERROR]: #!#! at ch.njol.skript.lang.TriggerSection.<init>(TriggerSection.java:54)
[12:18:11 ERROR]: #!#! at ch.njol.skript.lang.Conditional.<init>(Conditional.java:44)
[12:18:11 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1058)
[12:18:11 ERROR]: #!#! at ch.njol.skript.lang.TriggerSection.<init>(TriggerSection.java:54)
[12:18:11 ERROR]: #!#! at ch.njol.skript.lang.Conditional.<init>(Conditional.java:44)
[12:18:11 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1058)
[12:18:11 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:662)
[12:18:11 ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$1(ScriptLoader.java:389)
[12:18:11 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:401)
[12:18:11 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:434)
[12:18:11 ERROR]: #!#! at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:181)
[12:18:11 ERROR]: #!#! at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
[12:18:11 ERROR]: #!#! at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
[12:18:11 ERROR]: #!#! at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641)
[12:18:11 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162)
[12:18:11 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997)
[12:18:11 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
[12:18:11 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
[12:18:11 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
[12:18:11 ERROR]: #!#! at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[12:18:11 ERROR]: #!#! at java.util.concurrent.FutureTask.run(Unknown Source)
[12:18:11 ERROR]: #!#! at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
[12:18:11 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)
[12:18:11 ERROR]: #!#! at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[12:18:11 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[12:18:11 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[12:18:11 ERROR]: #!#! at java.lang.Thread.run(Unknown Source)
.Try this, if that one doesn't work, try a few versions from here: https://www.spigotmc.org/resources/skquery-1-9-1-15.36631/history
I'm not sure in that case.the one you gave me
[doublepost=1582039228,1582038564][/doublepost]
.