SkBee if arg 1 is not set error

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

SLMR

Member
Jun 29, 2024
2
0
1
21
I tried to use "SkBee" because I needed "on tab complete", but "on tab complete" works, but an error occurs in the same type of code as "if arg 1 is not set:".
Is there a solution or alternative?
Code:
command /test [<text>]:
  trigger:
    if arg 1 is not set:
      send "test"
    else:
      send "%arg-1% test"

[19:42:21] [Server thread/ERROR]: #!#!
[19:42:21] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[19:42:21] [Server thread/ERROR]: #!#! An error occurred while trying to load a Structure.
[19:42:21] [Server thread/ERROR]: #!#!
[19:42:21] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
[19:42:21] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[19:42:21] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[19:42:21] [Server thread/ERROR]: #!#! Here is full list of them:
[19:42:21] [Server thread/ERROR]: #!#! SkBee v3.5.5 (https://github.com/ShaneBeee/SkBee)
[19:42:21] [Server thread/ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[19:42:21] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[19:42:21] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[19:42:21] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[19:42:21] [Server thread/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[19:42:21] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[19:42:21] [Server thread/ERROR]: #!#!
[19:42:21] [Server thread/ERROR]: #!#! Stack trace:
[19:42:21] [Server thread/ERROR]: #!#! java.lang.NullPointerException: Cannot invoke "java.util.function.BiFunction.apply(Object, Object)" because "this.updater" is null
[19:42:21] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_20_R4.CraftRegistry.get(CraftRegistry.java:196)
[19:42:21] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_20_R4.CraftRegistry.get(CraftRegistry.java:155)
[19:42:21] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_20_R4.legacy.FieldRename.get(FieldRename.java:58)
[19:42:21] [Server thread/ERROR]: #!#! at com.shanebeestudios.skbee.api.wrapper.RegistryClassInfo.BUKKIT_CUSTOM_METHOD_org_bukkit_craftbukkit_v1_20_R4_legacy_FieldRename_get(RegistryClassInfo.java)
[19:42:21] [Server thread/ERROR]: #!#! at com.shanebeestudios.skbee.api.wrapper.RegistryClassInfo.parse(RegistryClassInfo.java:150)
[19:42:21] [Server thread/ERROR]: #!#! at com.shanebeestudios.skbee.api.wrapper.RegistryClassInfo$1.parse(RegistryClassInfo.java:76)
[19:42:21] [Server thread/ERROR]: #!#! at com.shanebeestudios.skbee.api.wrapper.RegistryClassInfo$1.parse(RegistryClassInfo.java:72)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.registrations.Classes.parseSimple(Classes.java:481)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:588)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:771)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.TypePatternElement.match(TypePatternElement.java:162)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.LiteralPatternElement.match(LiteralPatternElement.java:65)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.OptionalPatternElement.match(OptionalPatternElement.java:46)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.LiteralPatternElement.match(LiteralPatternElement.java:65)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.LiteralPatternElement.match(LiteralPatternElement.java:65)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.ChoicePatternElement.match(ChoicePatternElement.java:63)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.GroupPatternElement.match(GroupPatternElement.java:47)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.LiteralPatternElement.match(LiteralPatternElement.java:65)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.LiteralPatternElement.match(LiteralPatternElement.java:65)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.ChoicePatternElement.match(ChoicePatternElement.java:63)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.GroupPatternElement.match(GroupPatternElement.java:47)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.ChoicePatternElement.match(ChoicePatternElement.java:63)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.GroupPatternElement.match(GroupPatternElement.java:47)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.ParseTagPatternElement.match(ParseTagPatternElement.java:89)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.GroupPatternElement.match(GroupPatternElement.java:47)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.LiteralPatternElement.match(LiteralPatternElement.java:65)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.TypePatternElement.match(TypePatternElement.java:157)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.LiteralPatternElement.match(LiteralPatternElement.java:65)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.PatternElement.matchNext(PatternElement.java:54)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.LiteralPatternElement.match(LiteralPatternElement.java:65)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.ChoicePatternElement.match(ChoicePatternElement.java:63)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.GroupPatternElement.match(GroupPatternElement.java:47)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.SkriptPattern.match(SkriptPattern.java:62)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1293)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:232)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:179)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Condition.parse(Condition.java:76)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.sections.SecConditional.init(SecConditional.java:212)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Section.init(Section.java:68)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:259)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:179)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Section.lambda$parse$0(Section.java:178)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Section$SectionContext.modify(Section.java:211)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Section.parse(Section.java:177)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:965)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.command.ScriptCommand.<init>(ScriptCommand.java:190)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.structures.StructCommand.load(StructCommand.java:303)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$loadScripts$8(ScriptLoader.java:566)
[19:42:21] [Server thread/ERROR]: #!#! at java.base/java.util.ArrayList.removeIf(ArrayList.java:1755)
[19:42:21] [Server thread/ERROR]: #!#! at java.base/java.util.ArrayList.removeIf(ArrayList.java:1743)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$loadScripts$10(ScriptLoader.java:558)
[19:42:21] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.CompletableFuture.uniApplyNow(CompletableFuture.java:684)
[19:42:21] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.CompletableFuture.uniApplyStage(CompletableFuture.java:662)
[19:42:21] [Server thread/ERROR]: #!#! at java.base/java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:2200)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:511)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:457)
[19:42:21] [Server thread/ERROR]: #!#! at ch.njol.skript.Skript$1.run(Skript.java:836)
[19:42:21] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_20_R4.scheduler.CraftTask.run(CraftTask.java:82)
[19:42:21] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_20_R4.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:415)
[19:42:21] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1397)
[19:42:21] [Server thread/ERROR]: #!#! at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:402)
[19:42:21] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1293)
[19:42:21] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.y(MinecraftServer.java:1064)
[19:42:21] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:311)
[19:42:21] [Server thread/ERROR]: #!#! at java.base/java.lang.Thread.run(Thread.java:1583)
[19:42:21] [Server thread/ERROR]: #!#!
[19:42:21] [Server thread/ERROR]: #!#! Version Information:
[19:42:21] [Server thread/ERROR]: #!#! Skript: 2.8.7 (latest)
[19:42:21] [Server thread/ERROR]: #!#! Flavor: skriptlang-github
[19:42:21] [Server thread/ERROR]: #!#! Date: 14:50:13.592363600
[19:42:21] [Server thread/ERROR]: #!#! Bukkit: 1.20.6-R0.1-SNAPSHOT
[19:42:21] [Server thread/ERROR]: #!#! Minecraft: 1.20.6
[19:42:21] [Server thread/ERROR]: #!#! Java: 21.0.3 (Java HotSpot(TM) 64-Bit Server VM 21.0.3+7-LTS-152)
[19:42:21] [Server thread/ERROR]: #!#! OS: Windows 10 amd64 10.0
[19:42:21] [Server thread/ERROR]: #!#!
[19:42:21] [Server thread/ERROR]: #!#! Server platform: Spigot
[19:42:21] [Server thread/ERROR]: #!#!
[19:42:21] [Server thread/ERROR]: #!#! Current node: if arg 1 is not set: (sethome.sk, line 5)
[19:42:21] [Server thread/ERROR]: #!#! Current item: null
[19:42:21] [Server thread/ERROR]: #!#!
[19:42:21] [Server thread/ERROR]: #!#! Thread: Server thread
[19:42:21] [Server thread/ERROR]: #!#!
[19:42:21] [Server thread/ERROR]: #!#! Language: english
[19:42:21] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
[19:42:21] [Server thread/ERROR]: #!#!
[19:42:21] [Server thread/ERROR]: #!#! End of Error.
[19:42:21] [Server thread/ERROR]: #!#!
 
maybe you should add this: on line 3

Code:
if arg-1 is not set:
I tried it in that way, but the same error occurs

[21:57:34] [Server thread/ERROR]: #!#! Version Information:
[21:57:34] [Server thread/ERROR]: #!#! Skript: 2.8.7 (latest)
[21:57:34] [Server thread/ERROR]: #!#! Flavor: skriptlang-github
[21:57:34] [Server thread/ERROR]: #!#! Date: 14:50:13.592363600
[21:57:34] [Server thread/ERROR]: #!#! Bukkit: 1.20.6-R0.1-SNAPSHOT
[21:57:34] [Server thread/ERROR]: #!#! Minecraft: 1.20.6
[21:57:34] [Server thread/ERROR]: #!#! Java: 21.0.3 (Java HotSpot(TM) 64-Bit Server VM 21.0.3+7-LTS-152)
[21:57:34] [Server thread/ERROR]: #!#! OS: Windows 10 amd64 10.0
[21:57:34] [Server thread/ERROR]: #!#!
[21:57:34] [Server thread/ERROR]: #!#! Server platform: Spigot
[21:57:34] [Server thread/ERROR]: #!#!
[21:57:34] [Server thread/ERROR]: #!#! Current node: if arg-1 is not set: (test.sk, line 3)
[21:57:34] [Server thread/ERROR]: #!#! Current item: null
[21:57:34] [Server thread/ERROR]: #!#!
[21:57:34] [Server thread/ERROR]: #!#! Thread: Server thread
[21:57:34] [Server thread/ERROR]: #!#!
[21:57:34] [Server thread/ERROR]: #!#! Language: english
[21:57:34] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
[21:57:34] [Server thread/ERROR]: #!#!
[21:57:34] [Server thread/ERROR]: #!#! End of Error.