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!

Try to remove every sintax that your using from skellett , and check if it still crash.
Sorry for not replying, i wasn't at home. I tried it, and it stopped crashing.
Part of my code:
code_language.skript:
every 0.5 second:
    set {_all} to size of all bungeecord players
    set name of sidebar of loop-player to "&b&lUnion &7&lNetwork"
    set score " &f&l%{_all}%" in sidebar of loop-player to 1
    set score "&c&lOnline players:" in sidebar of loop-player to 0
 
  • Like
Reactions: Jarns
Hello LimeGlass, I have a problem. I'm bit confused. How can I use GlobalScript more than 2 server? Example: I installed 2 server, name A and the other is B. If I put in file some script. Server A got this but server B got this not! I looked around in config of both server. My problem is I cant use same port so the server B has Eventport of 7330 and server A has a Eventport 7331. The Bungee founded 2 server and are already connected with SkellettProxy to A and B. But the loading of GlobalScript work only on one 'A' and not 'B'.
 
Using GlobalScripts, is there a way I can put a subfolder inside of the `scripts` folder for organization?
Example:
05-28-17=kzxnw.png

I have the subdirectory `api` inside of my SkellettProxy scripts (`/plugins/SkellettProxy/scripts/`)
I want to be able to have the directory `api` be uploaded to all SkellettProxy connected servers (similar to how regular Scripts work)

However;
05-28-17=rrdrs.png

The subdirectory `api` is not uploaded to the SkellettProxy connected servers.

Could this feature be added? I would like to use it for organizing my scripts. Thank you!
 
When I have SkellettProxy enabled on my Bungeecord, the chat is delayed by 2-3 seconds.
Here are my configs:
skellettproxy.yml (spigot server>plugins>skellett):
code_language.skript:
# Skellett the addon with the beast name!
# By LimeGlass

# The Host must be the main IP of the BungeeCord that is hosting SkellettProxy.
# If the bungeecord and this server are on the same machine, you can leave it as localhost.

# The port must match the same port that is in the SkellettProxy config.
SkellettProxy: true
Host: localhost
Port: 7332

# Heartbeat is a running task that SkellettProxy uses to check that servers are still connected.
# This is in milliseconds.
Heartbeat: 50

# Disconnect if the Bungeecord is offline.
# If this is set to false. Skellett will keep making attempts at connecting.
Disconnect: false

# Enable Bungeecord events.
# This will run a repeating task to handle the listener.
# This needs to be enabled if you want to use;
# Bungeecord events, Evaluate effect, Max players, Whitelisted players, Network variables, Global scripts and much more!
Events: true
# The event port is what SkellettProxy looks for when a bungee event has been triggered.
# This can match the port defined in the SkellettProxy settings above. It doesn't really matter.
# The port above is the port from the bungeecord side SkellettProxy config, where as this port is for this server.
# This port has to be DIFFERENT on every one of your bungeecord server if your servers run on the same machine.
EventPort: 7331

# A message that is displayed to the console to notify that a GlobalScript has been reloaded.
GlobalScriptReloadMessage: true

config.yml (bungee>plugins>skellettproxy):

code_language.skript:
# SkellettProxy config file
#
# The port must match the port in SkellettProxy.yml from Skellett on servers connected to this Bungeecord.
version: "1.3.3a"
debug: false
Port: 7332

# If a spigot server fails to send a packet to SkellettProxy.
# How many trys should be allowed before claiming that server as offline.
AllowedTrys: 5

# If a spigot server goes unresponsive and this is true, SkellettProxy will stop tracking it.
# This will throw a harmless error in your console everytime a server goes unresponsive though.
DisableTracking: false

# If you have scripts in the folder plugins/SkellettProxy/scripts/
# SkellettProxy will relay these scripts to all connected servers.
# This acts like global scripts to keep all servers up to date.
# All connected servers need to have the "events" option enabled in the SkellettProxy settings.
GlobalScripts:
    Enabled: true

# Network variables allow you to create shared varaibles between multiple servers on the bungeecord.
# SkellettProxy will handle the variables on the Bungeecord instance.
NetworkVariables:
    Enabled: true
    # Allow variables to be re-writen if a server calls for it.
    AllowOverrides: true
    # Automatic sharing means that SkellettProxy will try to make Skellett's (Spigot side) variables
    # match the exact variables as Bungeecord.
    # So basically if you update a global variable, SkellettProxy will make every Spigot server variables match that.
    # So all you need todo is
    #
    # set network variable {test} to "Hello world!"
    #
    # Then on every other server, the variable {test} will be be set to "Hello world!"
    #
    # WARNING: Keep in mind this will override any variable names that match SkellettProxy's.
    # If this is enabled SkellettProxy variable names will be priority!
    # It should be harmless if you don't care about your old data.
    # And last thing, this is cap sensitive, can't change or fix that. That's Skript.
    AutomaticSharing: true
    Backups:
        # Backup the variables when the bungeecord ends.
        End: true
        # Backup the variables every X minutes.
        Interval: true
        # Time is in minutes.
        IntervalTime: 120
        # Broadcasts a message to console saying backups have been saved.
        ConsoleMessage: false

# RedisBungee support will be soon.
 
[16:28:30 INFO]: [Skellett] Attempting to reconnect and fix myself...
[16:28:30 INFO]: [Skellett] Connected to SkellettProxy!
[16:28:31 INFO]: [Skellett] Incorrect SkellettProxy details, No socket found or was denied access. For socket at 127.0.0.1:7332
[16:28:31 ERROR]: [Skript] If you're 100% sure your details are correct, this can be caused because some server's want a number host rather than localhost. Try inserting 0.0.0.0 or 127.0.0.1 instead of localhost. Error:
[16:28:31 INFO]: [Skellett] Attempting to reconnect and fix myself...
[16:28:31 INFO]: [Skellett] Connected to SkellettProxy!
[16:28:31 INFO]: [Skellett] Incorrect SkellettProxy details, No socket found or was denied access. For socket at 127.0.0.1:7332
[16:28:31 ERROR]: [Skript] If you're 100% sure your details are correct, this can be caused because some server's want a number host rather than localhost. Try inserting 0.0.0.0 or 127.0.0.1 instead of localhost. Error:
[16:28:31 INFO]: [Skellett] Attempting to reconnect and fix myself...
[16:28:31 INFO]: [Skellett] Connected to SkellettProxy!
[16:28:31 INFO]: [Skellett] Incorrect SkellettProxy details, No socket found or was denied access. For socket at 127.0.0.1:7332
[16:28:31 ERROR]: [Skript] If you're 100% sure your details are correct, this can be caused because some server's want a number host rather than localhost. Try inserting 0.0.0.0 or 127.0.0.1 instead of localhost. Error:
[16:28:31 INFO]: [Skellett] Attempting to reconnect and fix myself...
[16:28:31 INFO]: [Skellett] Connected to SkellettProxy!
[16:28:31 INFO]: [Skellett] Incorrect SkellettProxy details, No socket found or was denied access. For socket at 127.0.0.1:7332
[16:28:31 ERROR]: [Skript] If you're 100% sure your details are correct, this can be caused because some server's want a number host rather than localhost. Try inserting 0.0.0.0 or 127.0.0.1 instead of localhost. Error:
[16:28:31 INFO]: [Skellett] Attempting to reconnect and fix myself...
[16:28:31 INFO]: [Skellett] Connected to SkellettProxy!
[16:28:31 INFO]: [Skellett] Incorrect SkellettProxy details, No socket found or was denied access. For socket at 127.0.0.1:7332
[16:28:31 ERROR]: [Skript] If you're 100% sure your details are correct, this can be caused because some server's want a number host rather than localhost. Try inserting 0.0.0.0 or 127.0.0.1 instead of localhost. Error:
[16:28:31 INFO]: [Skellett] Attempting to reconnect and fix myself...
[16:28:31 INFO]: [Skellett] Connected to SkellettProxy!
[16:28:31 INFO]: [Skellett] Incorrect SkellettProxy details, No socket found or was denied access. For socket at 127.0.0.1:7332
[16:28:31 ERROR]: [Skript] If you're 100% sure your details are correct, this can be caused because some server's want a number host rather than localhost. Try inserting 0.0.0.0 or 127.0.0.1 instead of localhost. Error:
[16:28:31 INFO]: [Skellett] Attempting to reconnect and fix myself...
[16:28:31 INFO]: [Skellett] Connected to SkellettProxy!
[16:28:31 INFO]: [Skellett] Incorrect SkellettProxy details, No socket found or was denied access. For socket at 127.0.0.1:7332
[16:28:31 ERROR]: [Skript] If you're 100% sure your details are correct, this can be caused because some server's want a number host rather than localhost. Try inserting 0.0.0.0 or 127.0.0.1 instead of localhost. Error:
[16:28:31 INFO]: [Skellett] Attempting to reconnect and fix myself...
[16:28:31 INFO]: [Skellett] Incorrect SkellettProxy details, No socket found or was denied access. For socket at 127.0.0.1:7332
[16:28:31 ERROR]: [Skript] If you're 100% sure your details are correct, this can be caused because some server's want a number host rather than localhost. Try inserting 0.0.0.0 or 127.0.0.1 instead of localhost. Error:
[16:28:31 INFO]: [Skellett] Attempting to reconnect and fix myself...
[16:28:31 INFO]: [Skellett] Connected to SkellettProxy!
[16:28:35 INFO]: UUID of player Mangy_Lobster is c56349a4-86de-42a0-bf66-da745e352f00
[16:28:35 INFO]: [Skellett] Incorrect SkellettProxy details, No socket found or was denied access. For socket at 127.0.0.1:7332
[16:28:35 ERROR]: [Skript] If you're 100% sure your details are correct, this can be caused because some server's want a number host rather than localhost. Try inserting 0.0.0.0 or 127.0.0.1 instead of localhost. Error:
```
What is this

Here is the code i used there:

code_language.skript:
command /arena <player>:
        trigger:
                send "&aJoining the Lobby with your current inventory..."
                set {_slot} to 0
                loop 41 times:
                        if slot {_slot} of arg-1 is not air:
                                set network variable {inv::%uuid of arg-1%::%{_slot}%} to "%slot {_slot} of arg-1%"
                        add 1 to {_slot}
                set network variable {equip::%uuid of arg-1%} to true
                send "%arg-1%" to "lobby"
on join:
        if network variable {equip::%uuid of player%} is set:
                set {_slot} to 0
                loop 41 times:
                        if network variable {inv::%uuid of player%::%{_slot}%} is set:
                                set slot {_slot} of player to "%network variable {inv::%uuid of player%::%{_slot}%}%" parsed as item
                        reset network variable {inv::%uuid of player%::%{_slot}%}
                        add 1 to {_slot}
                send "&aYour Inventory has been transferred"
        reset network variable {equip::%uuid of player%}
[doublepost=1500385410,1498941018][/doublepost]this happens several times a day. the server just stops and crashes
code_language.skript:
[09:01:31 ERROR]: The server has stopped responding!
[09:01:31 ERROR]: Please report this to https://aquifermc.org/
[09:01:31 ERROR]: Be sure to include ALL relevant console errors and Minecraft crash reports
[09:01:31 ERROR]: Paper version: git-Paper-1152 (MC: 1.12)
[09:01:31 ERROR]: ------------------------------
[09:01:31 ERROR]: Server thread dump (Look for plugins here before reporting to Paper!):
[09:01:31 ERROR]: ------------------------------
[09:01:31 ERROR]: Current Thread: Server thread
[09:01:31 ERROR]:       PID: 19 | Suspended: false | Native: true | State: RUNNABLE
[09:01:31 ERROR]:       Stack:
[09:01:31 ERROR]:               java.net.SocketInputStream.socketRead0(Native Method)
[09:01:31 ERROR]:               java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
[09:01:31 ERROR]:               java.net.SocketInputStream.read(SocketInputStream.java:171)
[09:01:31 ERROR]:               java.net.SocketInputStream.read(SocketInputStream.java:141)
[09:01:31 ERROR]:               java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2620)
[09:01:31 ERROR]:               java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2636)
[09:01:31 ERROR]:               java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:3113)
[09:01:31 ERROR]:               java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:854)
[09:01:31 ERROR]:               java.io.ObjectInputStream.<init>(ObjectInputStream.java:349)
[09:01:31 ERROR]:               com.gmail.thelimeglass.Sockets.send(Sockets.java:92)
[09:01:31 ERROR]:               com.gmail.thelimeglass.SkellettProxy.CondOnlinePlayer.check(CondOnlinePlayer.java:55)
[09:01:31 ERROR]:               ch.njol.skript.lang.Condition.run(Condition.java:56)
[09:01:31 ERROR]:               ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
[09:01:31 ERROR]:               ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[09:01:31 ERROR]:               ch.njol.skript.effects.Delay$1.run(Delay.java:94)
[09:01:31 ERROR]:               org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:58)
[09:01:31 ERROR]:               org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:356)
[09:01:31 ERROR]:               net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:832)
[09:01:31 ERROR]:               net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:423)
[09:01:31 ERROR]:               net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:766)
[09:01:31 ERROR]:               net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:664)
[09:01:31 ERROR]:               java.lang.Thread.run(Thread.java:748)
[doublepost=1500385841][/doublepost]@LimeGlass anything you can do to stop the crashes?
 
Global variables and global scripts don't work :/
[doublepost=1501228341,1501149562][/doublepost]Can you make that global variables work please ? Because the connection works well for me.
 
Network variables don't work.
They are created in bungee skellett variable.csv but when I am trying to grab this variable from server I see <none>

Bungee:
upload_2017-8-13_19-9-57.png

upload_2017-8-13_19-10-46.png


Spigot:
upload_2017-8-13_19-10-59.png

upload_2017-8-13_19-11-8.png


EDIT:

Just enable global sharing in skelletproxy config on bungeecord.
 
Last edited by a moderator:
You need to set global sharing on and you need to use the network variables syntax to set them and/or read them.
Yes I have this option on already. Global variables are working but sometimes Im getting this error on bungee:

code_language.skript:
19:11:28 [SEVERE] java.net.SocketException: Socket closed
19:11:28 [SEVERE] at java.net.SocketInputStream.socketRead0(Native Method)
19:11:28 [SEVERE] at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
19:11:28 [SEVERE] at java.net.SocketInputStream.read(SocketInputStream.java:171)
19:11:28 [SEVERE] at java.net.SocketInputStream.read(SocketInputStream.java:141)
19:11:28 [SEVERE] at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2620)
19:11:28 [SEVERE] at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2636)
19:11:28 [SEVERE] at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:3113)
19:11:28 [SEVERE] at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:853)
19:11:28 [SEVERE] at java.io.ObjectInputStream.<init>(ObjectInputStream.java:349)
19:11:28 [SEVERE] at com.gmail.thelimeglass.BungeeEventRunner.send(BungeeEventRunner.java:18)
19:11:28 [SEVERE] at com.gmail.thelimeglass.VariableStorage.write(VariableStorage.java:184)
19:11:28 [SEVERE] at com.gmail.thelimeglass.PacketHandler.handlePacket(PacketHandler.java:251)
19:11:28 [SEVERE] at com.gmail.thelimeglass.SocketRunnable.run(SocketRunnable.java:23)
19:11:28 [SEVERE] at java.lang.Thread.run(Thread.java:748)

Also I am using 1.3.2 version because in 1.3.3 you can't use any commands (lots of errors) and in 1.3.3a there is a error when player is using chat (also there is 1-3 second delay on chat)
[doublepost=1502731258,1502731099][/doublepost]Also this error shows up sometimes on spigot:
code_language.skript:
[19:11:51] [Server thread/INFO]: [Skellett] Incorrect SkellettProxy details, No socket found or was denied access. For socket at 127.0.0.1:7332
[19:11:51] [Server thread/ERROR]: [Skript] If you're 100% sure your details are correct, this can be caused because some server's want a number host rather than localhost. Try inserting 0.0.0.0 or 127.0.0.1 instead of localhost. Error:
[19:11:51] [Server thread/INFO]: [Skellett] Attempting to reconnect and fix myself...
[19:11:51] [Craft Scheduler Thread - 357/INFO]: [Skellett] Bungeecord went offline. Attempting to reconnect...
[19:11:51] [Server thread/INFO]: [Skellett] Connected to SkellettProxy!
[19:11:51] [Craft Scheduler Thread - 381/INFO]: [Skellett] SkellettProxy connection established on port 7898
[doublepost=1502743716][/doublepost]And now these errors occurs every time I set network variable or check...
Pls make bug fix already :c
 
LimeGlass updated SkellettProxy - #1 Bungeecord addon for Skript with a new update entry:

SNAPSHOT: Possible socket hold lag fix.

This update fixes a possible bug that causes SkellettProxy to hold SkellettPacket's from being sent, waiting for a response from Skellett. This issue was causing console errors, some harmless, and some not so much.

Side notes:
  • This version has RedisBungee stuff disabled as I compiled this version on my new PC and I don't have RedisBungee's source/jar.
  • New versions reset your config's to make sure they have the latest config options, so make sure you save your config if you...

Read the rest of this update entry...
 
code_language.skript:
[01:26:40] [Craft Scheduler Thread - 12/INFO]: [0;30;1m[[0;32;1mSkellett[0;30;1m] [0;33;1m[0;31;1mIncorrect SkellettProxy details, No socket found or was denied access. For socket at 0.0.0.0:7332[m
[01:26:40] [Craft Scheduler Thread - 12/ERROR]: [Skript] If you're 100% sure your details are correct, this can be caused because some server's want a number host rather than localhost. Try inserting 0.0.0.0 or 127.0.0.1 instead of localhost. Error:
[01:26:40] [Craft Scheduler Thread - 12/INFO]: [0;30;1m[[0;32;1mSkellett[0;30;1m] [0;33;1m[0;31;1mAttempting to reconnect and fix myself...[m
[01:26:40] [Craft Scheduler Thread - 29/INFO]: [0;30;1m[[0;32;1mSkellett[0;30;1m] [0;33;1m[0;31;1mBungeecord went offline. Attempting to reconnect...[m
[01:26:40] [Server thread/WARN]: java.io.EOFException
[01:26:40] [Server thread/WARN]:     at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2917)
[01:26:40] [Server thread/WARN]:     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1502)
[01:26:40] [Server thread/WARN]:     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:422)
[01:26:40] [Server thread/WARN]:     at com.gmail.thelimeglass.Sockets.connect(Sockets.java:69)
[01:26:40] [Server thread/WARN]:     at com.gmail.thelimeglass.Sockets$1.run(Sockets.java:27)
[01:26:40] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:71)
[01:26:40] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:353)
[01:26:40] [Server thread/WARN]:     at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:739)
[01:26:40] [Server thread/WARN]:     at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406)
[01:26:40] [Server thread/WARN]:     at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679)
[01:26:40] [Server thread/WARN]:     at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577)
[01:26:40] [Server thread/WARN]:     at java.lang.Thread.run(Thread.java:748)

skellettproxy/config.yml port 7332
skellett/skellettproxy.yml ip 0.0.0.0 port 7332


Where is the error?
 
Last edited: