Skungee - The proxy addon for Skript

Addon Skungee - The proxy addon for Skript 2.0.0-BETA-5

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

@LimeGlass
Code:
[18:37:05 WARN]: java.lang.IllegalStateException: Asynchronous command dispatch!
[18:37:05 WARN]:        at org.spigotmc.AsyncCatcher.catchOp(AsyncCatcher.java:15)
[18:37:05 WARN]:        at org.bukkit.craftbukkit.v1_13_R2.CraftServer.dispatchCommand(CraftServer.java:707)
[18:37:05 WARN]:        at org.bukkit.Bukkit.dispatchCommand(Bukkit.java:655)
[18:37:05 WARN]:        at ch.njol.skript.Skript.dispatchCommand(Skript.java:1317)
[18:37:05 WARN]:        at ch.njol.skript.effects.EffCommand.execute(EffCommand.java:84)
[18:37:05 WARN]:        at ch.njol.skript.lang.Effect.run(Effect.java:52)
[18:37:05 WARN]:        at me.limeglass.skungee.spigot.sockets.SpigotPacketHandler.handlePacket(SpigotPacketHandler.java:96)
[18:37:05 WARN]:        at me.limeglass.skungee.spigot.sockets.SpigotRunnable.run(SpigotRunnable.java:85)
[18:37:05 WARN]:        at java.lang.Thread.run(Thread.java:748)

Code:
skungee evaluate skript code "console command ""%arg-2%""" on the bungee cord servers arg-1
It doesn't work on 1.13, I have 5 servers on bungeecord (1.8,1.8,1.8,1.8,1.13) everything works on 1.8, but in 1.13 I am getting this error above.
 
@LimeGlass
Code:
[18:37:05 WARN]: java.lang.IllegalStateException: Asynchronous command dispatch!
[18:37:05 WARN]:        at org.spigotmc.AsyncCatcher.catchOp(AsyncCatcher.java:15)
[18:37:05 WARN]:        at org.bukkit.craftbukkit.v1_13_R2.CraftServer.dispatchCommand(CraftServer.java:707)
[18:37:05 WARN]:        at org.bukkit.Bukkit.dispatchCommand(Bukkit.java:655)
[18:37:05 WARN]:        at ch.njol.skript.Skript.dispatchCommand(Skript.java:1317)
[18:37:05 WARN]:        at ch.njol.skript.effects.EffCommand.execute(EffCommand.java:84)
[18:37:05 WARN]:        at ch.njol.skript.lang.Effect.run(Effect.java:52)
[18:37:05 WARN]:        at me.limeglass.skungee.spigot.sockets.SpigotPacketHandler.handlePacket(SpigotPacketHandler.java:96)
[18:37:05 WARN]:        at me.limeglass.skungee.spigot.sockets.SpigotRunnable.run(SpigotRunnable.java:85)
[18:37:05 WARN]:        at java.lang.Thread.run(Thread.java:748)

Code:
skungee evaluate skript code "console command ""%arg-2%""" on the bungee cord servers arg-1
It doesn't work on 1.13, I have 5 servers on bungeecord (1.8,1.8,1.8,1.8,1.13) everything works on 1.8, but in 1.13 I am getting this error above.
Report this error at https://github.com/Skungee/Skungee/issues
Otherwise we may forget about this issue.

The problem is i'm guessing you're looping all servers including the server the Skript code is being executed on, this causes an issue because Skungee is all asynchronous, and the command being ran on the server cannot be asynchronous (This is how Minecraft works).

You can add a check to your code to execute a normal effect command when executed on the same server.

Code:
loop all bungeecord servers:
    if current server is loop-value:
        execute console command "/something"
    else:
        evaluate skript code "execute console command ""/something""" on bungeecord server loop-value
 
LimeGlass updated Skungee - #1 Bungeecord addon for Skript with a new update entry:

1.0.12 The long anticipated update

Y3r9ixi.png


Version: 1.0.12

Fixed:

  • Fixed Skungee current server of player not working. (#46 Thanks Melinstagibson)
  • Events are now properly handled in async.
  • Fixed the disconnect packet not being sent due to Skungee being disabled at same time.
  • Fixed a Skungee timeout crash. Skungee now...

Read the rest of this update entry...
 
Hi!
Version: spigot 1.12.2
Skungee: Last version
When i updated skungee from 1.09 to 1.13, all of my skungee syntaxes broke
| Exemple:
send bungeecord player "%player%" to "Lobby"
[15:42:24 INFO]: Nikos_s[/127.0.0.1:59912] logged in with entity id 46 at ([world]437.4497552016387, 207.0, -354.5101758687827)
[15:42:24 ERROR]: #!#!
[15:42:24 ERROR]: #!#! [Skript] Severe Error:
[15:42:24 ERROR]: #!#!
[15:42:24 ERROR]: #!#! Something went horribly wrong with Skript.
[15:42:24 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[15:42:24 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[15:42:24 ERROR]: #!#! Here is full list of them:
[15:42:24 ERROR]: #!#! skRayFall (https://sk.rayfall.net/) TuSKe (github.com/Tuke-Nuke/TuSKe) Skellett (https://forums.skunity.com/resources/skellett.24/) MundoSK (https://forums.skunity.com/resources/mundosk.69/) Reqn Skent SkriptJSON skript-mirror (https://github.com/btk5h/skript-mirror) Skungee SkStuff SkBee skUtilities (https://tim740.github.io/) SkQuery Ersatz
[15:42:24 ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[15:42:24 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[15:42:24 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[15:42:24 ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[15:42:24 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[15:42:24 ERROR]: #!#! Only if the author tells you to do so, report it as Skript issue (url below)
[15:42:24 ERROR]: #!#! Issue tracker: https://github.com/bensku/Skript/issues (only if you know what you're doing!)
[15:42:24 ERROR]: #!#!
[15:42:24 ERROR]: #!#! Stack trace:
[15:42:24 ERROR]: #!#! java.lang.NullPointerException
[15:42:24 ERROR]: #!#! at me.limeglass.skungee.spigot.elements.effects.EffConnectServer.execute(EffConnectServer.java:31)
[15:42:24 ERROR]: #!#! at ch.njol.skript.lang.Effect.run(Effect.java:52)
[15:42:24 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
[15:42:24 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[15:42:24 ERROR]: #!#! at ch.njol.skript.effects.Delay$1.run(Delay.java:101)
[15:42:24 ERROR]: #!#! at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:76)
[15:42:24 ERROR]: #!#! at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:361)
[15:42:24 ERROR]: #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:739)
[15:42:24 ERROR]: #!#! at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406)
[15:42:24 ERROR]: #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679)
[15:42:24 ERROR]: #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577)
[15:42:24 ERROR]: #!#! at java.lang.Thread.run(Unknown Source)
[15:42:24 ERROR]: #!#!
[15:42:24 ERROR]: #!#! Version Information:
[15:42:24 ERROR]: #!#! Skript: 2.2-dev32c (custom version)
[15:42:24 ERROR]: #!#! Bukkit: 1.12.2-R0.1-SNAPSHOT
[15:42:24 ERROR]: #!#! Minecraft: 1.12.2
[15:42:24 ERROR]: #!#! Java: 1.8.0_211 (Java HotSpot(TM) 64-Bit Server VM 25.211-b12)
[15:42:24 ERROR]: #!#! OS: Windows 10 amd64 10.0
[15:42:24 ERROR]: #!#!
[15:42:24 ERROR]: #!#! Running CraftBukkit: false
[15:42:24 ERROR]: #!#! Running Spigot (or compatible): true
[15:42:24 ERROR]: #!#! Running Paper (or compatible): false
[15:42:24 ERROR]: #!#!
[15:42:24 ERROR]: #!#! Current node: null
[15:42:24 ERROR]: #!#! Current item: [Skungee] EffConnectServer- Syntax: [[skungee] (send|connect) bungee[[ ]cord] [(player|uuid)] %strings/players% to [bungee[[ ]cord]] [server] %string% [with reason %-connectreason%], [skungee] (send|connect) [(player|uuid)] %strings/players% to [bungee[[ ]cord]] server %string% [with reason %-connectreason%]]
[15:42:24 ERROR]: #!#! Thread: Server thread
[15:42:24 ERROR]: #!#!
[15:42:24 ERROR]: #!#! Language: english
[15:42:24 ERROR]: #!#! Link parse mode: DISABLED
[15:42:24 ERROR]: #!#!
[15:42:24 ERROR]: #!#! End of Error.
[15:42:24 ERROR]: #!#!
 
Last edited:
Hi!
Version: spigot 1.12.2
Skungee: Last version
When i updated skungee from 1.09 to 1.13, all of my skungee syntaxes broke
| Exemple:
send bungeecord player "%player%" to "Lobby"
[15:42:24 INFO]: Nikos_s[/127.0.0.1:59912] logged in with entity id 46 at ([world]437.4497552016387, 207.0, -354.5101758687827)
[15:42:24 ERROR]: #!#!
[15:42:24 ERROR]: #!#! [Skript] Severe Error:
[15:42:24 ERROR]: #!#!
[15:42:24 ERROR]: #!#! Something went horribly wrong with Skript.
[15:42:24 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[15:42:24 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[15:42:24 ERROR]: #!#! Here is full list of them:
[15:42:24 ERROR]: #!#! skRayFall (https://sk.rayfall.net/) TuSKe (github.com/Tuke-Nuke/TuSKe) Skellett (https://forums.skunity.com/resources/skellett.24/) MundoSK (https://forums.skunity.com/resources/mundosk.69/) Reqn Skent SkriptJSON skript-mirror (https://github.com/btk5h/skript-mirror) Skungee SkStuff SkBee skUtilities (https://tim740.github.io/) SkQuery Ersatz
[15:42:24 ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[15:42:24 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[15:42:24 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[15:42:24 ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[15:42:24 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[15:42:24 ERROR]: #!#! Only if the author tells you to do so, report it as Skript issue (url below)
[15:42:24 ERROR]: #!#! Issue tracker: https://github.com/bensku/Skript/issues (only if you know what you're doing!)
[15:42:24 ERROR]: #!#!
[15:42:24 ERROR]: #!#! Stack trace:
[15:42:24 ERROR]: #!#! java.lang.NullPointerException
[15:42:24 ERROR]: #!#! at me.limeglass.skungee.spigot.elements.effects.EffConnectServer.execute(EffConnectServer.java:31)
[15:42:24 ERROR]: #!#! at ch.njol.skript.lang.Effect.run(Effect.java:52)
[15:42:24 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
[15:42:24 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[15:42:24 ERROR]: #!#! at ch.njol.skript.effects.Delay$1.run(Delay.java:101)
[15:42:24 ERROR]: #!#! at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:76)
[15:42:24 ERROR]: #!#! at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:361)
[15:42:24 ERROR]: #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:739)
[15:42:24 ERROR]: #!#! at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406)
[15:42:24 ERROR]: #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679)
[15:42:24 ERROR]: #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577)
[15:42:24 ERROR]: #!#! at java.lang.Thread.run(Unknown Source)
[15:42:24 ERROR]: #!#!
[15:42:24 ERROR]: #!#! Version Information:
[15:42:24 ERROR]: #!#! Skript: 2.2-dev32c (custom version)
[15:42:24 ERROR]: #!#! Bukkit: 1.12.2-R0.1-SNAPSHOT
[15:42:24 ERROR]: #!#! Minecraft: 1.12.2
[15:42:24 ERROR]: #!#! Java: 1.8.0_211 (Java HotSpot(TM) 64-Bit Server VM 25.211-b12)
[15:42:24 ERROR]: #!#! OS: Windows 10 amd64 10.0
[15:42:24 ERROR]: #!#!
[15:42:24 ERROR]: #!#! Running CraftBukkit: false
[15:42:24 ERROR]: #!#! Running Spigot (or compatible): true
[15:42:24 ERROR]: #!#! Running Paper (or compatible): false
[15:42:24 ERROR]: #!#!
[15:42:24 ERROR]: #!#! Current node: null
[15:42:24 ERROR]: #!#! Current item: [Skungee] EffConnectServer- Syntax: [[skungee] (send|connect) bungee[[ ]cord] [(player|uuid)] %strings/players% to [bungee[[ ]cord]] [server] %string% [with reason %-connectreason%], [skungee] (send|connect) [(player|uuid)] %strings/players% to [bungee[[ ]cord]] server %string% [with reason %-connectreason%]]
[15:42:24 ERROR]: #!#! Thread: Server thread
[15:42:24 ERROR]: #!#!
[15:42:24 ERROR]: #!#! Language: english
[15:42:24 ERROR]: #!#! Link parse mode: DISABLED
[15:42:24 ERROR]: #!#!
[15:42:24 ERROR]: #!#! End of Error.
[15:42:24 ERROR]: #!#!
Report on the Github please
 
hi, I get every 10-20 minutes this error


[03.05 22:59:06.493] INFO: [Proxy-1] 22:52:43 [SEVERE] Task BungeeTask(sched=net.md_5.bungee.scheduler.BungeeScheduler@725dc436, id=1, owner=me.limeglass.skungee.bungeecord.Skungee@23e51b74, task=me.limeglass.skungee.bungeecord.managers.PlayerTimeManager$$Lambda$38/2082828520@37b382b1, delay=0, period=1000, running=true) encountered an exception
[03.05 22:59:06.493] INFO: [Proxy-1] java.lang.NullPointerException
[03.05 22:59:06.493] INFO: [Proxy-1] at me.limeglass.skungee.bungeecord.managers.PlayerTimeManager.lambda$null$0(PlayerTimeManager.java:39)
[03.05 22:59:06.493] INFO: [Proxy-1] at java.lang.Iterable.forEach(Iterable.java:75)
[03.05 22:59:06.493] INFO: [Proxy-1] at java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1082)
[03.05 22:59:06.493] INFO: [Proxy-1] at me.limeglass.skungee.bungeecord.managers.PlayerTimeManager.lambda$new$1(PlayerTimeManager.java:31)
[03.05 22:59:06.493] INFO: [Proxy-1] at net.md_5.bungee.scheduler.BungeeTask.run(BungeeTask.java:63)
[03.05 22:59:06.493] INFO: [Proxy-1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[03.05 22:59:06.493] INFO: [Proxy-1] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[03.05 22:59:06.493] INFO: [Proxy-1] at java.lang.Thread.run(Thread.java:748)
 
hi, I get every 10-20 minutes this error


[03.05 22:59:06.493] INFO: [Proxy-1] 22:52:43 [SEVERE] Task BungeeTask(sched=net.md_5.bungee.scheduler.BungeeScheduler@725dc436, id=1, owner=me.limeglass.skungee.bungeecord.Skungee@23e51b74, task=me.limeglass.skungee.bungeecord.managers.PlayerTimeManager$$Lambda$38/2082828520@37b382b1, delay=0, period=1000, running=true) encountered an exception
[03.05 22:59:06.493] INFO: [Proxy-1] java.lang.NullPointerException
[03.05 22:59:06.493] INFO: [Proxy-1] at me.limeglass.skungee.bungeecord.managers.PlayerTimeManager.lambda$null$0(PlayerTimeManager.java:39)
[03.05 22:59:06.493] INFO: [Proxy-1] at java.lang.Iterable.forEach(Iterable.java:75)
[03.05 22:59:06.493] INFO: [Proxy-1] at java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1082)
[03.05 22:59:06.493] INFO: [Proxy-1] at me.limeglass.skungee.bungeecord.managers.PlayerTimeManager.lambda$new$1(PlayerTimeManager.java:31)
[03.05 22:59:06.493] INFO: [Proxy-1] at net.md_5.bungee.scheduler.BungeeTask.run(BungeeTask.java:63)
[03.05 22:59:06.493] INFO: [Proxy-1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[03.05 22:59:06.493] INFO: [Proxy-1] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[03.05 22:59:06.493] INFO: [Proxy-1] at java.lang.Thread.run(Thread.java:748)

Been fixed in next version already. Please use Github issues tab for bug reports.
[doublepost=1600899142,1588574170][/doublepost]2.0.0-ALPHA-9 out now! https://github.com/Skungee/Skungee-2.0.0/releases
 
Hi, trying to get this to work on a pterodactyl installation and having a hard time nailing down what to configure how and where.

I see an issue post with solution "use the docker's IP for the host, 172.18.0.1 should be the default. You should also disable the automatic receiver port feature and set a permanent port and allocate it to that server through the panel, then don't forget to allow it through your firewall."

Would I need to use that IP in the bind-to-address setting on host? Or just the paper servers? What would bind-to-address be if not?

Also, Is the "the automatic receiver port feature" a part of pterodactyl, or a setting in skungee? I see an "Allow Automatic Allocation" setting in pterodactyl, but can't seem to find any "automatic receiver port" anywhere.

Also, do I open the port for "172.18.0.1", something else, or do I need to completely open it up?

Found this on https://github.com/Skungee/Skungee/issues/43

Thanks.
 
Hi, trying to get this to work on a pterodactyl installation and having a hard time nailing down what to configure how and where.

I see an issue post with solution "use the docker's IP for the host, 172.18.0.1 should be the default. You should also disable the automatic receiver port feature and set a permanent port and allocate it to that server through the panel, then don't forget to allow it through your firewall."

Would I need to use that IP in the bind-to-address setting on host? Or just the paper servers? What would bind-to-address be if not?

Also, Is the "the automatic receiver port feature" a part of pterodactyl, or a setting in skungee? I see an "Allow Automatic Allocation" setting in pterodactyl, but can't seem to find any "automatic receiver port" anywhere.

Also, do I open the port for "172.18.0.1", something else, or do I need to completely open it up?

Found this on https://github.com/Skungee/Skungee/issues/43

Thanks.
You set the bind address on the bungeecord to the ip you want it to bind too, the spigot bind address is for receivers which are what allow for back and forth communication, you set the host option of the spigot skungee to whatever you set the bind address to on bungeecord. I suggest using version 2.0.0 of Skungee which can be foudn on the github