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!
[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.@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]
Can you report the error on the GitHub repo and I will take a look at it later?I have the same version > it's true...
But the error stopped occurring for now, at least.
The players have to be logged in through the Bungeecord and not through a server of the BungeecordI'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'm connected through Bungeecord and still not workingThe players have to be logged in through the Bungeecord and not through a server of the Bungeecord
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.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!
command /test:
trigger:
skungee evaluate code "message ""<tooltip:&aTest>&cTest<reset>"" to all players" on the bungeecord server "hub01"
command /test:
trigger:
skungee evaluate code "message ""<tooltip:&aTest>&cTest<reset>"" to player" on the bungeecord server "hub01"
Players are not the same on other servers, don't use players like that.Is it possible to evaluate an effect with a player ?
Example:
This work, but this doesn't work :code_language.skript:command /test: trigger: skungee evaluate code "message ""<tooltip:&aTest>&cTest<reset>"" to all players" on the bungeecord server "hub01"
code_language.skript:command /test: trigger: skungee evaluate code "message ""<tooltip:&aTest>&cTest<reset>"" to player" on the bungeecord server "hub01"
Is this normal ?
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)
[09:42:35 INFO]: [Skungee] Connection established again!
[09:42:35 INFO]: [Skungee] Successfully connected to the Bungeecord Skungee.
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("")
![]()
Version: 1.0.7e
Changed:
Fixed:
- Moved some handle methods into their own handler classes.
- Did some internal cleaning.
- 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...
Fixed a problem with newer 1.13 Bungeecord API methods in the connect effect.
![]()
Version: 1.0.8
Happy Holidays from the Skungee team!
Added:
- Cipher Encryption support for packets in the Skungee protocol. (There are two new configuration nodes)
- Added ability to define the Charset used when...
![]()
Version: 1.0.9
Happy Holidays from the Skungee team!
Changed:
- A lot of internal changes, let us know if any issues arise at https://github.com/TheLimeGlass/Skungee/issues
- Reduced Skungee's file size...