Storable Inventory

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

Then fix it. If you literally can't (because indentation errors are the easiest problem to fix), then show your current code and I will point out the indentation mistake.
Use It and see if It works when i fix the idententation mistake
 

Attachments

  • -pain (1).sk
    604 bytes · Views: 247
You either have to use tabulations or spaces when indenting code. Not both, or the parser goes crazy. So either replace every tabulation with 4 spaces on your code (bad) or every 4 spaces with a tabulation (good).

For your information, the tabulator is the key above caps lock.

It's completely incredible the amount of people that don't know this when it's the basics of skript coding...
 
Redo all the lines that are indented (make them not indented), then indent them again.
It gives me this error
16:56:41 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) ~[MZombie.jar:git-Spigot-db6de12-18fbb24]

at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[MZombie.jar:git-Spigot-db6de12-18fbb24]

at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[MZombie.jar:git-Spigot-db6de12-18fbb24]

at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [MZombie.jar:git-Spigot-db6de12-18fbb24]

at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [MZombie.jar:git-Spigot-db6de12-18fbb24]

at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [MZombie.jar:git-Spigot-db6de12-18fbb24]

at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [MZombie.jar:git-Spigot-db6de12-18fbb24]

at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [MZombie.jar:git-Spigot-db6de12-18fbb24]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_131]

at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_131]

at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [MZombie.jar:git-Spigot-db6de12-18fbb24]

at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [MZombie.jar:git-Spigot-db6de12-18fbb24]

at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [MZombie.jar:git-Spigot-db6de12-18fbb24]

at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [MZombie.jar:git-Spigot-db6de12-18fbb24]

at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [MZombie.jar:git-Spigot-db6de12-18fbb24]

at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]

Caused by: java.lang.NoSuchMethodError: ch.njol.util.Pair.getFirst()Ljava/lang/Object;

at com.pie.tlatoani.Mundo$41.parse(Mundo.java:965) ~[?:?]

at ch.njol.skript.registrations.Classes.parseSimple(Classes.java:398) ~[?:?]

at ch.njol.skript.registrations.Classes.parse(Classes.java:427) ~[?:?]

at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:97) ~[?:?]

at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:86) ~[?:?]

at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:1) ~[?:?]

at ch.njol.skript.conditions.CondCompare.init(CondCompare.java:174) ~[?:?]

at ch.njol.skript.conditions.CondCompare.init(CondCompare.java:126) ~[?:?]

at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:237) ~[?:?]

at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:164) ~[?:?]

at ch.njol.skript.lang.Condition.parse(Condition.java:80) ~[?:?]

at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:694) ~[?:?]

at ch.njol.skript.command.Commands.loadCommand(Commands.java:449) ~[?:?]

at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:462) ~[?:?]

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) ~[MZombie.jar:git-Spigot-db6de12-18fbb24]

... 15 more

>
 
Last edited by a moderator: