1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved When I add a new command, an error occurs

Discussion in 'Skript' started by SheewSpielt, Oct 7, 2017.

Thread Status:
Not open for further replies.
  1. SheewSpielt

    SheewSpielt Member

    Joined:
    Jun 5, 2017
    Messages:
    39
    Likes Received:
    1
    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)
    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 (Skript):
    1. [04:12:35] [Server thread/INFO]: EinBrite issued server command: /sk reload Manager.sk
    2. [04:12:36] [Server thread/ERROR]: null
    3. org.bukkit.command.CommandException: Unhandled exception executing command 'sk' in plugin Skript v2.2-Fixes-V9
    4.     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot.jar:git-Spigot-21fe707-e1ebe52]
    5.     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot.jar:git-Spigot-21fe707-e1ebe52]
    6.     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[spigot.jar:git-Spigot-21fe707-e1ebe52]
    7.     at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    8.     at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    9.     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    10.     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    11.     at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    12.     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_144]
    13.     at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_144]
    14.     at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    15.     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    16.     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    17.     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    18.     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    19.     at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]
    20. Caused by: java.lang.NoSuchMethodError: com.sk89q.worldguard.protection.flags.DefaultFlag.fuzzyMatchFlag(Ljava/lang/String;)Lcom/sk89q/worldguard/protection/flags/Flag;
    21.     at me.TheBukor.SkStuff.SkStuff$4.parse(SkStuff.java:220) ~[?:?]
    22.     at me.TheBukor.SkStuff.SkStuff$4.parse(SkStuff.java:1) ~[?:?]
    23.     at ch.njol.skript.registrations.Classes.parseSimple(Classes.java:400) ~[?:?]
    24.     at ch.njol.skript.registrations.Classes.parse(Classes.java:429) ~[?:?]
    25.     at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:97) ~[?:?]
    26.     at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:86) ~[?:?]
    27.     at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:1) ~[?:?]
    28.     at ch.njol.skript.conditions.CondCompare.init(CondCompare.java:179) ~[?:?]
    29.     at ch.njol.skript.conditions.CondCompare.init(CondCompare.java:131) ~[?:?]
    30.     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:248) ~[?:?]
    31.     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:175) ~[?:?]
    32.     at ch.njol.skript.lang.Condition.parse(Condition.java:83) ~[?:?]
    33.     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:729) ~[?:?]
    34.     at ch.njol.skript.lang.TriggerSection.<init>(TriggerSection.java:56) ~[?:?]
    35.     at ch.njol.skript.lang.Conditional.<init>(Conditional.java:46) ~[?:?]
    36.     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:736) ~[?:?]
    37.     at ch.njol.skript.command.Commands.loadCommand(Commands.java:467) ~[?:?]
    38.     at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:469) ~[?:?]
    39.     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:268) ~[?:?]
    40.     at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:155) ~[?:?]
    41.     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot.jar:git-Spigot-21fe707-e1ebe52]
    42.     ... 15 more

     
  2. MCProHost

    MCProHost Active Member

    Joined:
    Sep 17, 2017
    Messages:
    80
    Likes Received:
    0
    Try restarting your server, also what skript version are you running?
     
  3. SheewSpielt

    SheewSpielt Member

    Joined:
    Jun 5, 2017
    Messages:
    39
    Likes Received:
    1
    My skript version is the Skript v2.2 Early V9 Test. i restart my server, and nothing has happened
     
  4. White

    White Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    445
    Likes Received:
    25
    early v9? Use dev25 (if you're using 1.8) or use dev31 (if you're using 1.9+).
     
  5. GrimEpp

    GrimEpp Member

    Joined:
    Feb 12, 2017
    Messages:
    39
    Likes Received:
    3
    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
     
  6. MCProHost

    MCProHost Active Member

    Joined:
    Sep 17, 2017
    Messages:
    80
    Likes Received:
    0
    Has your problem been solved?
     
  7. SheewSpielt

    SheewSpielt Member

    Joined:
    Jun 5, 2017
    Messages:
    39
    Likes Received:
    1
    No i test all of them.
    --- Double Post Merged, Oct 8, 2017, Original Post Date: Oct 8, 2017 ---
    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 (Skript):
    1. #     Manager Skript - German Edition         #
    2. #     Das Skript wurde von EinBrite (Main)    #
    3. #     erstellt. Ich bitte um ein Feedback auf #
    4. #     Spigotmc.org/HierkommtderLinkhin        #
    5.  
    6.  
    7.  
    8.  
    9.  
    10. #     Manager Skript - Config                 #
    11. #     Das hier ist die Manager config         #
    12.  
    13.  
    14. options:
    15.  
    16.     Server: Hier den Server Namen ohne Domainendung eintragen # Farbcodes können normal benutzt werden!
    17.     Version: &a1.0&4 Beta # Auf Wunsch kann diese Versionsnummer geändert werden, aber bei Support wird diese Nummer gebraucht!
    18.     ManagerName: &c Servername&8 »&6 Server Managment # Bitte auch hier den Servernamen ohne Domainendung angeben!
    19.     ManagerTeam: &c Servername&8 »&c Team&6 Menü # Bitte auch hier den Servernamen ohne Domainendung angeben!
    20.     ManagerAdmin: &c Servername&8 »&4 Admin&6 Menü # Bitte auch hier den Servernamen ohne Domainendung angeben!
    21.  
    22. # Permissions
    23.  
    24.     Permission1: Manager.Werbung # Diese Permission gibt beim Join des Server eine Nachricht an wer das gecodet hat, das sehen nur Leute mit dieser permissions!
    25.     Permission2: Manager.use # Mit dieser Permission kann man das Manager Inventar öffnen
    26.     Permission3: Manager.Admin # Mit dieser Permission könnt ihr das Ränge Inventar öffnen
    27.     Permission4: Manager.addon # /
    28.  
    29. # 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!)
    30.  
    31.     Rang1: &4Admin
    32.     Rang2: &bEntwickler
    33.     Rang3: &cSrModerator
    34.     Rang4: &cModerator
    35.     Rang5: &9Sup
    36.     Rang6: &eBuilder
    37.     Rang8: &9Helfer
    38.  
    39.     Rang9: &6Premium
    40.     Rang10: &aSpieler
    41.  
    42. # Funktionen
    43.  
    44.     ChatClear: &6Chat&8 »&7
    45.     Broadcast: &4Broadcast&8 »&7 #Permission4 ist die Permission damit Teammitglieder diesen Befehl ausführen dürfen! (Freigabe ab Entwickler)
    46.  
    47. # Funktionen - Admin
    48.     Rangset: &4Rang&8 »&7 Du hast dem Spieler&3 %arg 2%&7 den Rang&c %arg 3%&7 gegeben!
    49.     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.
    50.     Troll1: &bTroll&8 »&7 Du hast den Spieler&3 %arg 3%&7 mit einem&e Blitz&7 abgeworfen!
    51.     Troll2: &btroll&8 »&7 Du hast den Spieler&3 %arg 3%&7 mit dem&&4 Teufel&7 gedroht. Leider&c starb&7 er dabei!
    52.     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!
    53.     Troll4: &bTroll&8 »&7 Du hast den Spieler&3 %arg 3%&7 vom Server&c gekickt&7 mit dem Grund&6 ""&cHacking/Clientmodifikation""
    54.  
    55.  
    56. #     Manager Skript - Code                   #
    57. #     Das hier ist der Manager Code           #
    58.  
    59.  
    60. on join:
    61.     if player has permission "{@Permission1}":
    62.         send "&8«&m------&8»&6 Manager&8 «&m------&8»"
    63.         send "&7Das&6 Manager System&7 wurde von"
    64.         send "&5 EinBrite&8 -&6 Roped&4 Admin"
    65.         send "&bprogrammiert&7"
    66.         send "&8«&m------&8»&6 Manager&8 «&m------&8»"
    67.  
    68. command /Manager [<text>] [<text>] [<text>]:
    69.     permission: {@Permission2}
    70.     permission message: &4Permissions&8 »&7 Du hast&c nicht&7 die benötigten&c Rechte&7 um diesen Befehl auszuführen.
    71.     trigger:
    72.         open virtual chest inventory with 3 rows named "{@ManagerName}" to player
    73.         format gui slot 0 of player with black glass pane named "&0" to close
    74.         format gui slot 1 of player with black glass pane named "&0" to close
    75.         format gui slot 2 of player with black glass pane named "&0" to close
    76.         format gui slot 3 of player with black glass pane named "&0" to close
    77.         format gui slot 4 of player with black glass pane named "&0" to close
    78.         format gui slot 5 of player with black glass pane named "&0" to close
    79.         format gui slot 6 of player with black glass pane named "&0" to close
    80.         format gui slot 7 of player with black glass pane named "&0" to close
    81.         format gui slot 8 of player with black glass pane named "&0" to close
    82.         format gui slot 9 of player with black glass pane named "&0" to close
    83.         format gui slot 10 of player with black glass pane named "&0" to close
    84.         format gui slot 11 of player with black glass pane named "&0" to close
    85.         format gui slot 13 of player with black glass pane named "&0" to close
    86.         format gui slot 15 of player with black glass pane named "&0" to close
    87.         format gui slot 16 of player with black glass pane named "&0" to close
    88.         format gui slot 17 of player with black glass pane named "&0" to close
    89.         format gui slot 18 of player with black glass pane named "&0" to close
    90.         format gui slot 19 of player with black glass pane named "&0" to close
    91.         format gui slot 20 of player with black glass pane named "&0" to close
    92.         format gui slot 21 of player with black glass pane named "&0" to close
    93.         format gui slot 22 of player with black glass pane named "&0" to close
    94.         format gui slot 23 of player with black glass pane named "&0" to close
    95.         format gui slot 24 of player with black glass pane named "&0" to close
    96.         format gui slot 25 of player with black glass pane named "&0" to close
    97.         format gui slot 26 of player with black glass pane named "&0" to close
    98.         wait 8 ticks
    99.         play "CLICK" to player at volume 0.2
    100.         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%"
    101.         wait 8 ticks
    102.         play "CLICK" to player at volume 0.2
    103.         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%"
    104.  
    105. command /ManagerTeamMenu [<text>] [<text>]:
    106.     permission: {@Permission2}
    107.     permission message: &4Permissions&8 »&7 Du hast&c nicht&7 die benötigten&c Rechte&7 um diesen Befehl auszuführen.
    108.     trigger:
    109.         open virtual chest inventory with 3 rows named "{@ManagerTeam}" to player
    110.         format gui slot 0 of player with black glass pane named "&0" to close
    111.         format gui slot 1 of player with black glass pane named "&0" to close
    112.         format gui slot 2 of player with black glass pane named "&0" to close
    113.         format gui slot 3 of player with black glass pane named "&0" to close
    114.         format gui slot 4 of player with black glass pane named "&0" to close
    115.         format gui slot 5 of player with black glass pane named "&0" to close
    116.         format gui slot 6 of player with black glass pane named "&0" to close
    117.         format gui slot 7 of player with black glass pane named "&0" to close
    118.         format gui slot 8 of player with black glass pane named "&0" to close
    119.         format gui slot 9 of player with black glass pane named "&0" to close
    120.         format gui slot 10 of player with black glass pane named "&0" to close
    121.         format gui slot 11 of player with black glass pane named "&0" to close
    122.         format gui slot 13 of player with black glass pane named "&0" to close
    123.         format gui slot 15 of player with black glass pane named "&0" to close
    124.         format gui slot 16 of player with black glass pane named "&0" to close
    125.         format gui slot 17 of player with black glass pane named "&0" to close
    126.         format gui slot 18 of player with black glass pane named "&0" to close
    127.         format gui slot 19 of player with black glass pane named "&0" to close
    128.         format gui slot 20 of player with black glass pane named "&0" to close
    129.         format gui slot 21 of player with black glass pane named "&0" to close
    130.         format gui slot 22 of player with black glass pane named "&0" to close
    131.         format gui slot 23 of player with black glass pane named "&0" to close
    132.         format gui slot 24 of player with black glass pane named "&0" to close
    133.         format gui slot 25 of player with black glass pane named "&0" to close
    134.         format gui slot 26 of player with black glass pane named "&0" to close
    135.         wait 8 ticks
    136.         play "CLICK" to player at volume 0.2
    137.         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%
    138.        wait 8 ticks
    139.        play "CLICK" to player at volume 0.2
    140.        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%"
    141.  
    142. command /Teammanager [<text>] [<text>]:
    143.    permission: {@Permission2}
    144.    permission message: &4Permissions&8 »&7 Du hast&c nicht&7 die benötigten&c Rechte&7 um diesen Befehl auszuführen.
    145.    trigger:
    146.        if arg 1 is "ChatClear":
    147.            if arg 2 is not set:
    148.                loop 200 times:
    149.                    broadcast " "
    150.                broadcast "&8&7 Der Chat wurde von&c %sender%&7 geleert."
    151.            if arg 2 is set:
    152.                loop 200 times:
    153.                    broadcast " "
    154.                broadcast "&8&7 Der Chat wurde von&c %sender%&7 geleert. Grund&c %colored arg 2%"
    155.  
     
  8. Pikachu

    Moderator Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    871
    Likes Received:
    139
    Medals:
    Upgrade/downgrade worldguard or remove skstuff
     
  9. SheewSpielt

    SheewSpielt Member

    Joined:
    Jun 5, 2017
    Messages:
    39
    Likes Received:
    1
    The script theme which is synonymous here on skUnity, so when you select code script see example, is there also to download?
    Code (Skript):
    1. command /Teammanager [<text>] [<text>]:
    2.     permission: {@Permission2}
    3.     permission message: &4Permissions&8 »&7 Du hast&c nicht&7 die benötigten&c Rechte&7 um diesen Befehl auszuführen.
    4.     trigger:
    5.         if arg 1 is "ChatClear":
    --- Double Post Merged, Oct 8, 2017, Original Post Date: Oct 8, 2017 ---
    I have skStuff now deleted, and Worldguard now downgraded to an older version, since I had the latest version still does not work
     
  10. Pikachu

    Moderator Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    871
    Likes Received:
    139
    Medals:
    Then there is a new error. That error in the OP was completely skstuff related
     
  11. SheewSpielt

    SheewSpielt Member

    Joined:
    Jun 5, 2017
    Messages:
    39
    Likes Received:
    1
    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
    --- Double Post Merged, Oct 8, 2017, Original Post Date: Oct 8, 2017 ---
    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"
     
  12. Pikachu

    Moderator Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    871
    Likes Received:
    139
    Medals:
    Are you running craftbukkit
     
  13. SheewSpielt

    SheewSpielt Member

    Joined:
    Jun 5, 2017
    Messages:
    39
    Likes Received:
    1
  14. White

    White Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    445
    Likes Received:
    25
    Skript doesn't really work with CraftBukkit, use Spigot.
     
  15. SheewSpielt

    SheewSpielt Member

    Joined:
    Jun 5, 2017
    Messages:
    39
    Likes Received:
    1
    Thanks a lot Pikachu and White :emoji_slight_smile: Now it works!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...