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

Status
Not open for further replies.

SheewSpielt

Member
Jun 5, 2017
39
1
0
Hello, I had an error sometimes, but now is fixed, thank you again :emoji_slight_smile: In any case, I now have a new one, and goes from now no longer "if arg 1 is not set:" before, I went publish now times times my error and my script part where that does not go.
code_language.skript:
[05:10:08] [Server thread/INFO]: EinBrite issued server command: /sk reload System
[05:10:08] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'sk' in plugin Skript v2.2-Fixes-V8b
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot.jar:git-Spigot-21fe707-e1ebe52]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot.jar:git-Spigot-21fe707-e1ebe52]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[spigot.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_144]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_144]
    at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]
Caused by: java.lang.NoSuchMethodError: com.sk89q.worldguard.protection.flags.DefaultFlag.fuzzyMatchFlag(Ljava/lang/String;)Lcom/sk89q/worldguard/protection/flags/Flag;
    at me.TheBukor.SkStuff.SkStuff$4.parse(SkStuff.java:220) ~[?:?]
    at me.TheBukor.SkStuff.SkStuff$4.parse(SkStuff.java:1) ~[?:?]
    at ch.njol.skript.registrations.Classes.parseSimple(Classes.java:400) ~[?:?]
    at ch.njol.skript.registrations.Classes.parse(Classes.java:429) ~[?:?]
    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:179) ~[?:?]
    at ch.njol.skript.conditions.CondCompare.init(CondCompare.java:131) ~[?:?]
    at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:248) ~[?:?]
    at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:175) ~[?:?]
    at ch.njol.skript.lang.Condition.parse(Condition.java:83) ~[?:?]
    at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:729) ~[?:?]
    at ch.njol.skript.command.Commands.loadCommand(Commands.java:467) ~[?:?]
    at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:469) ~[?:?]
    at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:268) ~[?:?]
    at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:155) ~[?:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot.jar:git-Spigot-21fe707-e1ebe52]
    ... 15 more

code_language.skript:
command /gamemode [<text>]:
    aliases: /gm
    permission: Roped.Premium
    permission message: &4Permissions&8 »&7 Du hast&c keine&3 Rechte&7 auf diesen&a Befehl&7!
    trigger:
        if arg 1 is "0":
            set player's gamemode to survival
            send "&8×&e Gamemode&8 »&7 Du hast dich in den&e Gamemode&a&o SURVIVAL&7 gesetzt."
        if arg 1 is "1":
            set player's gamemode to creative
            send "&8×&e Gamemode&8 »&7 Du hast dich in den&e Gamemode&c&o CREATIVE&7 gesetzt."
        if arg 1 is "2":
            set player's gamemode to adventure
            send "&8×&e Gamemode&8 »&7 Du hast dich in den&e Gamemode&6&o ADVENTURE&7 gesetzt."
        if arg 1 is "3":
            set player's gamemode to spectator
            send "&8×&e Gamemode&8 »&7 Du hast dich in den&e Gamemode&b&o SPECTATOR&7 gesetzt."
        if arg 1 is not set:
            send "&8×&e Gamemode&8 »&7 Bitte gebe einen&2 gültigen&b Parameter&7 an!"
 
This is an issue with skstuff. Either remove skstuff or find a worldguard version that works with it. For what its worth, you could have gathered all this info by just looking at the error
 
Status
Not open for further replies.