Unexpected error occured while...

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

vitusverden

Active Member
Aug 16, 2017
50
2
8
25
code_language.skript:
command /groupinator:
    trigger:
        set {groups} to 2
        clear {group1::*}
        clear {group2::*}
        clear {pplNotDistrobuted::*}
        clear {VitusNotWorkWith::*}
        clear {AlfredNotWorkWith::*}
        clear {AbcdNotWorkWith::*}
        add "Alfred" to {VitusNotWorkWith::*}

        add "Abcd" to {AlfredNotWorkWith::*}

        add "Abc" to {AbcdNotWorkWith::*}

        add "Vitus" to {pplNotDistrobuted::*}
        add "Alfred" to {pplNotDistrobuted::*}
        add "Abcd" to {pplNotDistrobuted::*}
        add "Abc" to {pplNotDistrobuted::*}
        set {_temp2} to 1
        loop 2 times:
            send "debug"
            loop {groups} times:
                loop {pplNotDistrobuted::*}:
                    add 1 to {_temp}
                set {_temp} to random number between 1 and {_temp}
                add {pplNotDistrobuted::%{_temp}%} to {group%loop-number-2%}
                remove {_temp} from {pplNotDistrobuted::*}
            set {_temp3} to 0
            loop {pplNotDistrobuted::*}:
                add 1 to {_temp3}
                send "+1"
            if {_temp3} is 0:
                set {_temp2} to 0

        


        send "%{pplNotDistrobuted::*}%" to console
        send "%{group1::*}%" to console
        send "%{group2::*}%" to console

When I execute this command, it just sends "Unexpected error occurred while attempting to perform this command", and it send this console error:
code_language.skript:
[12:48:36 ERROR]: Could not pass event PlayerCommandPreprocessEvent to Skript v2.2-dev34
org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1154) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:?]
        at java.base/java.util.concurrent.FutureTask.run(Unknown Source) [?:?]
        at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at java.base/java.lang.Thread.run(Unknown Source) [?:?]
Caused by: java.lang.NoSuchMethodError: net.md_5.bungee.api.chat.BaseComponent.setInsertion(Ljava/lang/String;)V
        at ch.njol.skript.util.chat.BungeeConverter.convert(BungeeConverter.java:45) ~[?:?]
        at ch.njol.skript.util.chat.BungeeConverter.convert(BungeeConverter.java:60) ~[?:?]
        at ch.njol.skript.effects.EffMessage.execute(EffMessage.java:88) ~[?:?]
        at ch.njol.skript.lang.Effect.run(Effect.java:52) ~[?:?]
        at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61) ~[?:?]
        at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89) ~[?:?]
        at ch.njol.skript.lang.Trigger.execute(Trigger.java:55) ~[?:?]
        at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:279) ~[?:?]
        at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:236) ~[?:?]
        at ch.njol.skript.command.Commands.handleCommand(Commands.java:255) ~[?:?]
        at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:170) ~[?:?]
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
        at java.base/java.lang.reflect.Method.invoke(Unknown Source) ~[?:?]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
        ... 16 more
[12:48:36 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'groupinator' in plugin Skript v2.2-dev34
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:?]
        at java.base/java.util.concurrent.FutureTask.run(Unknown Source) [?:?]
        at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at java.base/java.lang.Thread.run(Unknown Source) [?:?]
Caused by: java.lang.NoSuchMethodError: net.md_5.bungee.api.chat.BaseComponent.setInsertion(Ljava/lang/String;)V
        at ch.njol.skript.util.chat.BungeeConverter.convert(BungeeConverter.java:45) ~[?:?]
        at ch.njol.skript.util.chat.BungeeConverter.convert(BungeeConverter.java:60) ~[?:?]
        at ch.njol.skript.effects.EffMessage.execute(EffMessage.java:88) ~[?:?]
        at ch.njol.skript.lang.Effect.run(Effect.java:52) ~[?:?]
        at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61) ~[?:?]
        at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89) ~[?:?]
        at ch.njol.skript.lang.Trigger.execute(Trigger.java:55) ~[?:?]
        at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:279) ~[?:?]
        at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:236) ~[?:?]
        at ch.njol.skript.command.ScriptCommand.onCommand(ScriptCommand.java:187) ~[?:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
        ... 15 more
 
Status
Not open for further replies.