Solved When I add a new command, an error occurs

  • 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
I am currently working on a new script to "program" because I want to be active again on Spigot. As my career may start on skUnity. Well back to the topic, there came directly the problem which I do not quite understand. Here you have 4 pictures which are once with 2 commands, and then with 3.


Before (2 commands)
Bild 1.png
Bild 2.png


Picture 1: https://picload.org/view/dgcoglar/bild1.png.html
Picture 2:https://picload.org/view/dgcoglaa/bild2.png.html
After(3 commands)


So, these were the pictures here I now pack again the error code from my log, I really hope that you can help me.

Sincerely,

Luke - EinBrite


code_language.skript:
[04:12:35] [Server thread/INFO]: EinBrite issued server command: /sk reload Manager.sk
[04:12:36] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'sk' in plugin Skript v2.2-Fixes-V9
    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.lang.TriggerSection.<init>(TriggerSection.java:56) ~[?:?]
    at ch.njol.skript.lang.Conditional.<init>(Conditional.java:46) ~[?:?]
    at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:736) ~[?:?]
    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

 
early v9? Use dev25 (if you're using 1.8) or use dev31 (if you're using 1.9+).
 
Well i can see that you are new / returning old member of Skript so i'll tell you this. There is a person called bensku who made forks for spigot that he updates and maintains so use his forks. These are recommendations not supported.
1.8.* - dev 25
1.9.* - dev 27
and above dev 29 or https://github.com/bensku/skript/releases.

There is a big problem with SkQuery format slot. It is buggy and useless. There is a new addon called TuSKe that has the most powerfull GUI manager out there so here is the link to that https://github.com/Tuke-Nuke/TuSKe/wiki/GUI-Manager
 
No i test all of them.
[doublepost=1507425378,1507424054][/doublepost]So now it goes, but now he says my command / manager does not exist, so he does not look at the script, I now have the latest script version. Oh, who knows what you do now instead of "on join"? I'm still from the old school ...

My Code:
code_language.skript:
#     Manager Skript - German Edition         #
#     Das Skript wurde von EinBrite (Main)    #
#     erstellt. Ich bitte um ein Feedback auf #
#     Spigotmc.org/HierkommtderLinkhin        #





#     Manager Skript - Config                 #
#     Das hier ist die Manager config         #


options:

    Server: Hier den Server Namen ohne Domainendung eintragen # Farbcodes können normal benutzt werden!
    Version: &a1.0&4 Beta # Auf Wunsch kann diese Versionsnummer geändert werden, aber bei Support wird diese Nummer gebraucht!
    ManagerName: &c Servername&8 »&6 Server Managment # Bitte auch hier den Servernamen ohne Domainendung angeben!
    ManagerTeam: &c Servername&8 »&c Team&6 Menü # Bitte auch hier den Servernamen ohne Domainendung angeben!
    ManagerAdmin: &c Servername&8 »&4 Admin&6 Menü # Bitte auch hier den Servernamen ohne Domainendung angeben!

# Permissions

    Permission1: Manager.Werbung # Diese Permission gibt beim Join des Server eine Nachricht an wer das gecodet hat, das sehen nur Leute mit dieser permissions!
    Permission2: Manager.use # Mit dieser Permission kann man das Manager Inventar öffnen
    Permission3: Manager.Admin # Mit dieser Permission könnt ihr das Ränge Inventar öffnen
    Permission4: Manager.addon # /

# Auf Anfrage können Ränge hinzugefügt oder entfernt werden, wenn du Kenntnisse im Skripten hast, kannst du dies auch selber machen (Bitte keine Ränge ohne Kenntnisse hinzufügen!)

    Rang1: &4Admin
    Rang2: &bEntwickler
    Rang3: &cSrModerator
    Rang4: &cModerator
    Rang5: &9Sup
    Rang6: &eBuilder
    Rang8: &9Helfer

    Rang9: &6Premium
    Rang10: &aSpieler

# Funktionen

    ChatClear: &6Chat&8 »&7
    Broadcast: &4Broadcast&8 »&7 #Permission4 ist die Permission damit Teammitglieder diesen Befehl ausführen dürfen! (Freigabe ab Entwickler)

# Funktionen - Admin
    Rangset: &4Rang&8 »&7 Du hast dem Spieler&3 %arg 2%&7 den Rang&c %arg 3%&7 gegeben!
    Rangremove: &4Rang&8 »&7 Du hast dem Spieler&3 %arg 2%&7 den Rang&c %arg 3%&7 und dafür dem Rang&2 %arg 4%&7 gegeben.
    Troll1: &bTroll&8 »&7 Du hast den Spieler&3 %arg 3%&7 mit einem&e Blitz&7 abgeworfen!
    Troll2: &btroll&8 »&7 Du hast den Spieler&3 %arg 3%&7 mit dem&&4 Teufel&7 gedroht. Leider&c starb&7 er dabei!
    Troll3: &bTroll&8 »&7 Du hast&2 EinBrite&7 gefragt, ob er dir eine&c Waffe&7 gibt. Er gab dir sein&e Schwert des&c Todes&7!
    Troll4: &bTroll&8 »&7 Du hast den Spieler&3 %arg 3%&7 vom Server&c gekickt&7 mit dem Grund&6 ""&cHacking/Clientmodifikation""


#     Manager Skript - Code                   #
#     Das hier ist der Manager Code           #


on join:
    if player has permission "{@Permission1}":
        send "&8«&m------&8»&6 Manager&8 «&m------&8»"
        send "&7Das&6 Manager System&7 wurde von"
        send "&5 EinBrite&8 -&6 Roped&4 Admin"
        send "&bprogrammiert&7"
        send "&8«&m------&8»&6 Manager&8 «&m------&8»"

command /Manager [<text>] [<text>] [<text>]:
    permission: {@Permission2}
    permission message: &4Permissions&8 »&7 Du hast&c nicht&7 die benötigten&c Rechte&7 um diesen Befehl auszuführen.
    trigger:
        open virtual chest inventory with 3 rows named "{@ManagerName}" to player
        format gui slot 0 of player with black glass pane named "&0" to close
        format gui slot 1 of player with black glass pane named "&0" to close
        format gui slot 2 of player with black glass pane named "&0" to close
        format gui slot 3 of player with black glass pane named "&0" to close
        format gui slot 4 of player with black glass pane named "&0" to close
        format gui slot 5 of player with black glass pane named "&0" to close
        format gui slot 6 of player with black glass pane named "&0" to close
        format gui slot 7 of player with black glass pane named "&0" to close
        format gui slot 8 of player with black glass pane named "&0" to close
        format gui slot 9 of player with black glass pane named "&0" to close
        format gui slot 10 of player with black glass pane named "&0" to close
        format gui slot 11 of player with black glass pane named "&0" to close
        format gui slot 13 of player with black glass pane named "&0" to close
        format gui slot 15 of player with black glass pane named "&0" to close
        format gui slot 16 of player with black glass pane named "&0" to close
        format gui slot 17 of player with black glass pane named "&0" to close
        format gui slot 18 of player with black glass pane named "&0" to close
        format gui slot 19 of player with black glass pane named "&0" to close
        format gui slot 20 of player with black glass pane named "&0" to close
        format gui slot 21 of player with black glass pane named "&0" to close
        format gui slot 22 of player with black glass pane named "&0" to close
        format gui slot 23 of player with black glass pane named "&0" to close
        format gui slot 24 of player with black glass pane named "&0" to close
        format gui slot 25 of player with black glass pane named "&0" to close
        format gui slot 26 of player with black glass pane named "&0" to close
        wait 8 ticks
        play "CLICK" to player at volume 0.2
        format gui slot 12 of player with iron helmet named "&8➥&6 Manager&8 ×&c Team" to close then run player command "/ManagerTeamMenu %arg 1% %arg 2%"
        wait 8 ticks
        play "CLICK" to player at volume 0.2
        format gui slot 14 of player with diamond helmet named "&8➥&6 Manager&8 ×&4 Admin" to close then run player command "/ManagerAdminMenu %arg 1% %arg 2% %arg 3%"

command /ManagerTeamMenu [<text>] [<text>]:
    permission: {@Permission2}
    permission message: &4Permissions&8 »&7 Du hast&c nicht&7 die benötigten&c Rechte&7 um diesen Befehl auszuführen.
    trigger:
        open virtual chest inventory with 3 rows named "{@ManagerTeam}" to player
        format gui slot 0 of player with black glass pane named "&0" to close
        format gui slot 1 of player with black glass pane named "&0" to close
        format gui slot 2 of player with black glass pane named "&0" to close
        format gui slot 3 of player with black glass pane named "&0" to close
        format gui slot 4 of player with black glass pane named "&0" to close
        format gui slot 5 of player with black glass pane named "&0" to close
        format gui slot 6 of player with black glass pane named "&0" to close
        format gui slot 7 of player with black glass pane named "&0" to close
        format gui slot 8 of player with black glass pane named "&0" to close
        format gui slot 9 of player with black glass pane named "&0" to close
        format gui slot 10 of player with black glass pane named "&0" to close
        format gui slot 11 of player with black glass pane named "&0" to close
        format gui slot 13 of player with black glass pane named "&0" to close
        format gui slot 15 of player with black glass pane named "&0" to close
        format gui slot 16 of player with black glass pane named "&0" to close
        format gui slot 17 of player with black glass pane named "&0" to close
        format gui slot 18 of player with black glass pane named "&0" to close
        format gui slot 19 of player with black glass pane named "&0" to close
        format gui slot 20 of player with black glass pane named "&0" to close
        format gui slot 21 of player with black glass pane named "&0" to close
        format gui slot 22 of player with black glass pane named "&0" to close
        format gui slot 23 of player with black glass pane named "&0" to close
        format gui slot 24 of player with black glass pane named "&0" to close
        format gui slot 25 of player with black glass pane named "&0" to close
        format gui slot 26 of player with black glass pane named "&0" to close
        wait 8 ticks
        play "CLICK" to player at volume 0.2
        format gui slot 12 of player with iron helmet named "&8➥&6 Manager&8 ×&a ChatClear" to close then run player command "/ManagerTeam ChatClear %colored arg 2%
        wait 8 ticks
        play "CLICK" to player at volume 0.2
        format gui slot 14 of player with diamond helmet named "&8➥&6 Manager&8 ×&a Broadcast" to close then run player command "/ManagerTeam broadcast %colored arg 2%"

command /Teammanager [<text>] [<text>]:
    permission: {@Permission2}
    permission message: &4Permissions&8 »&7 Du hast&c nicht&7 die benötigten&c Rechte&7 um diesen Befehl auszuführen.
    trigger:
        if arg 1 is "ChatClear":
            if arg 2 is not set:
                loop 200 times:
                    broadcast " "
                broadcast "&8➥&7 Der Chat wurde von&c %sender%&7 geleert."
            if arg 2 is set:
                loop 200 times:
                    broadcast " "
                broadcast "&8➥&7 Der Chat wurde von&c %sender%&7 geleert. Grund&c %colored arg 2%"
 
The script theme which is synonymous here on skUnity, so when you select code script see example, is there also to download?
code_language.skript:
command /Teammanager [<text>] [<text>]:
    permission: {@Permission2}
    permission message: &4Permissions&8 »&7 Du hast&c nicht&7 die benötigten&c Rechte&7 um diesen Befehl auszuführen.
    trigger:
        if arg 1 is "ChatClear":
[doublepost=1507425896,1507425742][/doublepost]I have skStuff now deleted, and Worldguard now downgraded to an older version, since I had the latest version still does not work
 
The script theme which is synonymous here on skUnity, so when you select code script see example, is there also to download?
code_language.skript:
command /Teammanager [<text>] [<text>]:
    permission: {@Permission2}
    permission message: &4Permissions&8 »&7 Du hast&c nicht&7 die benötigten&c Rechte&7 um diesen Befehl auszuführen.
    trigger:
        if arg 1 is "ChatClear":
[doublepost=1507425896,1507425742][/doublepost]I have skStuff now deleted, and Worldguard now downgraded to an older version, since I had the latest version still does not work
Then there is a new error. That error in the OP was completely skstuff related
 
Oh, no, that was not meant, this part has settled, I mean now what other I wanted to ask for such a theme, but I already have ^ ^ now is only the problem, if I / Manager enter comes simply that of the Command was not found, but script only shows an error with "on join" does not exist
[doublepost=1507427374,1507426845][/doublepost]Can you send me a sample script? Because also comes with my test script with the command / test where he then sends a message "The command was not found"
 
Oh, no, that was not meant, this part has settled, I mean now what other I wanted to ask for such a theme, but I already have ^ ^ now is only the problem, if I / Manager enter comes simply that of the Command was not found, but script only shows an error with "on join" does not exist
[doublepost=1507427374,1507426845][/doublepost]Can you send me a sample script? Because also comes with my test script with the command / test where he then sends a message "The command was not found"
Are you running craftbukkit
 
Skript doesn't really work with CraftBukkit, use Spigot.
 
Status
Not open for further replies.