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 this error occurrs when using network variables in an every tick:
Code:
[13:55:13 WARN]: [Skungee] Plugin Skungee v1.0.6a generated an exception while executing task 16
java.lang.ClassCastException: java.util.HashMap$Node cannot be cast to java.util.HashMap$TreeNode
        at java.util.HashMap$TreeNode.removeTreeNode(Unknown Source) ~[?:1.8.0_161]
        at java.util.HashMap.removeNode(Unknown Source) ~[?:1.8.0_161]
        at java.util.HashMap.remove(Unknown Source) ~[?:1.8.0_161]
        at java.util.HashSet.remove(Unknown Source) ~[?:1.8.0_161]
        at me.limeglass.skungee.spigot.sockets.PacketQueue$1.run(PacketQueue.java:36) ~[?:?]
        at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:76) ~[Spigot.jar:git-Spigot-642f6d2-fbe3046]
        at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52) [Spigot.jar:git-Spigot-642f6d2-fbe3046]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_161]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_161]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_161]
 
Y
@LimeGlass this error occurrs when using network variables in an every tick:
Code:
[13:55:13 WARN]: [Skungee] Plugin Skungee v1.0.6a generated an exception while executing task 16
java.lang.ClassCastException: java.util.HashMap$Node cannot be cast to java.util.HashMap$TreeNode
        at java.util.HashMap$TreeNode.removeTreeNode(Unknown Source) ~[?:1.8.0_161]
        at java.util.HashMap.removeNode(Unknown Source) ~[?:1.8.0_161]
        at java.util.HashMap.remove(Unknown Source) ~[?:1.8.0_161]
        at java.util.HashSet.remove(Unknown Source) ~[?:1.8.0_161]
        at me.limeglass.skungee.spigot.sockets.PacketQueue$1.run(PacketQueue.java:36) ~[?:?]
        at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:76) ~[Spigot.jar:git-Spigot-642f6d2-fbe3046]
        at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52) [Spigot.jar:git-Spigot-642f6d2-fbe3046]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_161]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_161]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_161]
You have the same version on both Bungeecord and the servers right? This happens when that isn't true.
 
I've a problem with Skungee.
The expression "BungeePlayerServer" isn't working for me, i don't get any errors, but when i try to use it, it returns me "<none>"
 
I don't get why, but for some odd reason I tried to connect my bungee and lobby servs with Skungee, just to test if it saves network variables so I can connect the rest of my servers to it, but I get these errors:


code_language.skript:
17.10 19:43:54 [Server] INFO [Skungee] Registered storage type: CSV
17.10 19:43:54 [Server] INFO [Skungee] connection established on port 2865
17.10 19:43:54 [Server] INFO [Skungee] has been enabled!
 
I don't get why, but for some odd reason I tried to connect my bungee and lobby servs with Skungee, just to test if it saves network variables so I can connect the rest of my servers to it, but I get these errors:


code_language.skript:
17.10 19:43:54 [Server] INFO [Skungee] Registered storage type: CSV
17.10 19:43:54 [Server] INFO [Skungee] connection established on port 2865
17.10 19:43:54 [Server] INFO [Skungee] has been enabled!
These are not errors. These are debug messages, you can turn it off in the configuration by disabling the node called "debug". It looks like it connects all fine, just debug messages.
 
Is it possible to evaluate an effect with a player ?
Example:
code_language.skript:
command /test:
    trigger:
        skungee evaluate code "message ""<tooltip:&aTest>&cTest<reset>"" to all players" on the bungeecord server "hub01"
This work, but this doesn't work :

code_language.skript:
command /test:
    trigger:
        skungee evaluate code "message ""<tooltip:&aTest>&cTest<reset>"" to player" on the bungeecord server "hub01"

Is this normal ?
 
Is it possible to evaluate an effect with a player ?
Example:
code_language.skript:
command /test:
    trigger:
        skungee evaluate code "message ""<tooltip:&aTest>&cTest<reset>"" to all players" on the bungeecord server "hub01"
This work, but this doesn't work :

code_language.skript:
command /test:
    trigger:
        skungee evaluate code "message ""<tooltip:&aTest>&cTest<reset>"" to player" on the bungeecord server "hub01"

Is this normal ?
Players are not the same on other servers, don't use players like that.

Skungee transforms the player instance into a Skungee player for player syntax but this evaluate will not work at all since the player will be different on the other server.
 
  • Like
Reactions: Vulqa
Hey, in my bungeecord server SKungee spaming with this error:
code_language.skript:
09:43:40 [SEVERE] java.nio.charset.MalformedInputException: Input length = 1
09:43:40 [SEVERE]     at java.nio.charset.CoderResult.throwException(CoderResult.java:281)
09:43:40 [SEVERE]     at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339)
09:43:40 [SEVERE]     at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
09:43:40 [SEVERE]     at java.io.InputStreamReader.read(InputStreamReader.java:184)
09:43:40 [SEVERE]     at java.io.BufferedReader.fill(BufferedReader.java:161)
09:43:40 [SEVERE]     at java.io.BufferedReader.readLine(BufferedReader.java:324)
09:43:40 [SEVERE]     at java.io.BufferedReader.readLine(BufferedReader.java:389)
09:43:40 [SEVERE]     at java.nio.file.Files.readAllLines(Files.java:3205)
09:43:40 [SEVERE]     at me.limeglass.skungee.bungeecord.sockets.ServerTracker.globalScripts(ServerTracker.java:100)
09:43:40 [SEVERE]     at me.limeglass.skungee.bungeecord.sockets.ServerTracker.update(ServerTracker.java:80)
09:43:40 [SEVERE]     at me.limeglass.skungee.bungeecord.handlers.HeartbeatHandler.handlePacket(HeartbeatHandler.java:31)
09:43:40 [SEVERE]     at me.limeglass.skungee.bungeecord.handlercontroller.SkungeeHandler.callPacket(SkungeeHandler.java:67)
09:43:40 [SEVERE]     at me.limeglass.skungee.bungeecord.sockets.SocketRunnable.run(SocketRunnable.java:87)
09:43:40 [SEVERE]     at java.lang.Thread.run(Thread.java:748)
code_language.skript:
[09:42:35 INFO]: [Skungee] Connection established again!
[09:42:35 INFO]: [Skungee] Successfully connected to the Bungeecord Skungee.
 
Sk file:
code_language.skript:
on script load:
  set {sql} to the database ""
    
command /dbtest:
  trigger:
    execute "select * from users" in {sql} and store the result in {output::*}
    send "%sql error%"
    
effect [dth] add %number% of [dth] [server] currency to %player%:       
    trigger:
        execute "UPDATE `users` SET `currency`=currency+%expression-1% WHERE `username`=%expression-2's name%" in {sql}
        

effect [dth] remove %number% from [dth] [server] currency to %player%:       
    trigger:
        execute "UPDATE `users` SET `currency`=currency-%expression-1% WHERE `username`=%expression-2's name%" in {sql}
        
        
effect [dth] [server] currency balance of %player%:       
    trigger:
        execute "select currency from users where `username`=%expression-1's name%" in {sql} and store the result in {_output::*}               
        send "&7%expression-1's name% &ebalansas »&f %{_output::currency::1}%&lƀ" to expression-1       
                
                
command /money:
    aliases: currency
    trigger:
        currency balance of player
                    
command /admin [<text>] [<player>] [<number>]:
    trigger:
        if player is op:
            if arg-1 is not set:
                player command "/admin help"
            if arg-1 is "help":
                send "&6 - &7Administracijos komandos:"
                send "&6 - &c/admin help"
                send "&6 - &c/admin givecurrency <player> <number>"
                send "&6 - &c/admin removecurrency <player> <number>"
                send "&6 - &c/admin freeze <player>"
                send "&6 - &c/admin unfreeze <player>"
                send "&6 - &c/admin spectate <player>"
                #send "&6 - &7Lygių kurimas:"
                #send "&6 - &c/lvlp level <1-10>"   
            if arg-1 is "unfreeze":
                if arg-2 is set:
                    unfreeze(arg-2)
                    send "{@prefix} Tave atšaldė administracija!" to arg-2               
                    send "{@prefix} Tu atšaldei %arg-2%!"   
            if arg-1 is "freeze":
                if arg-2 is set:
                    freeze(arg-2)
                    send "{@prefix} Tave užšaldė administracija!" to arg-2
                    send "{@prefix} Tu užšaldei %arg-2%!"   
            if arg-1 is "spectate":
                if arg-2 is set:
                    teleport player to arg-2
                    set player's gamemode to spectator
            if arg-1 is "givecurrency":
                if arg-2 and arg-3 is set:
                    add arg-3 of currency to arg-2   
                    send "{@prefix} %arg-3%ƀ buvo įdėta į jūsų balansą!" to arg-2
                    send "{@prefix} %arg-3%ƀ buvo pridėta į %arg-2% balansą!"
            if arg-1 is "removecurrency":
                if arg-2 and arg-3 is set:
                    remove arg-3 from currency to arg-2           
                    send "{@prefix} %arg-3%ƀ buvo išimta iš jūsų balansą!" to arg-2
                    send "{@prefix} %arg-3%ƀ buvo išimta iš %arg-2% balanso!"                   
        else:
            send "{@prefix} Neturi pakankamai privilegijų!"

        
command /teleporttoserver [<text>]:
    trigger:
        send player player to server arg-1
        
        
        
#EVENTS
every 1 hour:
    loop all players:
        set {_r} to random integer between 1 and 10
        execute "UPDATE `GadgetsMenu_Data` SET `Mystery_Dust`=Mystery_Dust-%{_r}% WHERE `username`=%loop-player-2's name%" in {sql}
        
#execute "UPDATE `users` SET `currency`=currency-%expression-1% WHERE `username`=%expression-2's name%" in {sql}

on quit:
    if player is op:
        delete {admin::spectate::%player%::spectating}

on teleport:
    if "%teleport cause%" is "SPECTATE":
        cancel event   

on damage of player:
    if attacker is firework:
        cancel event       
        
on quit:
    event.setQuitMessage("")

on join:
    event.setJoinMessage("")
 
LimeGlass updated Skungee - #1 Bungeecord addon for Skript with a new update entry:

Bug fixes

Y3r9ixi.png


Version: 1.0.7e

Changed:

  • Moved some handle methods into their own handler classes.
  • Did some internal cleaning.
Fixed:
  • GlobalScripts were getting loaded and reloaded asynchronously which caused some unexpected behavior but always worked eventually.
  • Fixed the event-values not working.
  • Fixed the player online...

Read the rest of this update entry...