1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Addon Skungee - #1 Bungeecord addon for Skript 1.0.7d

A Skript addon that allows for full control over the Bungeecord

  1. m

    medivh Active Member

    Joined:
    Jan 28, 2017
    Messages:
    32
    Likes Received:
    0
    Skungee messages is not working...
     
  2. G

    Joined:
    Jan 26, 2017
    Messages:
    36
    Likes Received:
    5
    Medals:
    @LimeGlass this error occurrs when using network variables in an every tick:
    Code (Text):
    1.  
    2. [13:55:13 WARN]: [Skungee] Plugin Skungee v1.0.6a generated an exception while executing task 16
    3. java.lang.ClassCastException: java.util.HashMap$Node cannot be cast to java.util.HashMap$TreeNode
    4.         at java.util.HashMap$TreeNode.removeTreeNode(Unknown Source) ~[?:1.8.0_161]
    5.         at java.util.HashMap.removeNode(Unknown Source) ~[?:1.8.0_161]
    6.         at java.util.HashMap.remove(Unknown Source) ~[?:1.8.0_161]
    7.         at java.util.HashSet.remove(Unknown Source) ~[?:1.8.0_161]
    8.         at me.limeglass.skungee.spigot.sockets.PacketQueue$1.run(PacketQueue.java:36) ~[?:?]
    9.         at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:76) ~[Spigot.jar:git-Spigot-642f6d2-fbe3046]
    10.         at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52) [Spigot.jar:git-Spigot-642f6d2-fbe3046]
    11.         at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_161]
    12.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_161]
    13.         at java.lang.Thread.run(Unknown Source) [?:1.8.0_161]
    14.  
     
  3. LimeGlass

    Supporter Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    580
    Likes Received:
    388
    Medals:
    Y
    You have the same version on both Bungeecord and the servers right? This happens when that isn't true.
     
  4. G

    Joined:
    Jan 26, 2017
    Messages:
    36
    Likes Received:
    5
    Medals:
    I have the same version > it's true...
    But the error stopped occurring for now, at least.
     
  5. LimeGlass

    Supporter Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    580
    Likes Received:
    388
    Medals:
    Can you report the error on the GitHub repo and I will take a look at it later?
     
  6. P

    PuchiGFX Member

    Joined:
    Jan 26, 2017
    Messages:
    190
    Likes Received:
    4
    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>"
     
  7. LimeGlass

    Supporter Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    580
    Likes Received:
    388
    Medals:
    The players have to be logged in through the Bungeecord and not through a server of the Bungeecord
     
  8. P

    PuchiGFX Member

    Joined:
    Jan 26, 2017
    Messages:
    190
    Likes Received:
    4
    I'm connected through Bungeecord and still not working
     
  9. C

    CormanYT Well-Known Member

    Joined:
    Jan 6, 2018
    Messages:
    99
    Likes Received:
    2
    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 (Skript):
    1. 17.10 19:43:54 [Server] INFO [Skungee] Registered storage type: CSV
    2. 17.10 19:43:54 [Server] INFO [Skungee] connection established on port 2865
    3. 17.10 19:43:54 [Server] INFO [Skungee] has been enabled!
     
  10. LimeGlass

    Supporter Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    580
    Likes Received:
    388
    Medals:
    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.
     
  11. Vulc4n_

    Vulc4n_ Member

    Joined:
    Jul 21, 2017
    Messages:
    3
    Likes Received:
    0
    Is it possible to evaluate an effect with a player ?
    Example:
    Code (Skript):
    1. command /test:
    2.     trigger:
    3.         skungee evaluate code "message ""<tooltip:&aTest>&cTest<reset>"" to all players" on the bungeecord server "hub01"
    This work, but this doesn't work :

    Code (Skript):
    1. command /test:
    2.     trigger:
    3.         skungee evaluate code "message ""<tooltip:&aTest>&cTest<reset>"" to player" on the bungeecord server "hub01"
    Is this normal ?
     
  12. LimeGlass

    Supporter Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    580
    Likes Received:
    388
    Medals:
    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 Like x 1
  13. M

    MeHow Well-Known Member

    Joined:
    Feb 6, 2017
    Messages:
    113
    Likes Received:
    11
    Hey, in my bungeecord server SKungee spaming with this error:
    Code (Skript):
    1.  
    2. 09:43:40 [SEVERE] java.nio.charset.MalformedInputException: Input length = 1
    3. 09:43:40 [SEVERE]     at java.nio.charset.CoderResult.throwException(CoderResult.java:281)
    4. 09:43:40 [SEVERE]     at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339)
    5. 09:43:40 [SEVERE]     at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
    6. 09:43:40 [SEVERE]     at java.io.InputStreamReader.read(InputStreamReader.java:184)
    7. 09:43:40 [SEVERE]     at java.io.BufferedReader.fill(BufferedReader.java:161)
    8. 09:43:40 [SEVERE]     at java.io.BufferedReader.readLine(BufferedReader.java:324)
    9. 09:43:40 [SEVERE]     at java.io.BufferedReader.readLine(BufferedReader.java:389)
    10. 09:43:40 [SEVERE]     at java.nio.file.Files.readAllLines(Files.java:3205)
    11. 09:43:40 [SEVERE]     at me.limeglass.skungee.bungeecord.sockets.ServerTracker.globalScripts(ServerTracker.java:100)
    12. 09:43:40 [SEVERE]     at me.limeglass.skungee.bungeecord.sockets.ServerTracker.update(ServerTracker.java:80)
    13. 09:43:40 [SEVERE]     at me.limeglass.skungee.bungeecord.handlers.HeartbeatHandler.handlePacket(HeartbeatHandler.java:31)
    14. 09:43:40 [SEVERE]     at me.limeglass.skungee.bungeecord.handlercontroller.SkungeeHandler.callPacket(SkungeeHandler.java:67)
    15. 09:43:40 [SEVERE]     at me.limeglass.skungee.bungeecord.sockets.SocketRunnable.run(SocketRunnable.java:87)
    16. 09:43:40 [SEVERE]     at java.lang.Thread.run(Thread.java:748)
    17.  
    Code (Skript):
    1. [09:42:35 INFO]: [Skungee] Connection established again!
    2. [09:42:35 INFO]: [Skungee] Successfully connected to the Bungeecord Skungee.
    3.  
     
  14. LimeGlass

    Supporter Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    580
    Likes Received:
    388
    Medals:
    You have a sk file with 1 value?
     
  15. M

    MeHow Well-Known Member

    Joined:
    Feb 6, 2017
    Messages:
    113
    Likes Received:
    11
    Sk file:
    Code (Skript):
    1. on script load:
    2.   set {sql} to the database ""
    3.    
    4. command /dbtest:
    5.   trigger:
    6.     execute "select * from users" in {sql} and store the result in {output::*}
    7.     send "%sql error%"
    8.    
    9. effect [dth] add %number% of [dth] [server] currency to %player%:      
    10.     trigger:
    11.         execute "UPDATE `users` SET `currency`=currency+%expression-1% WHERE `username`=%expression-2's name%" in {sql}
    12.        
    13.  
    14. effect [dth] remove %number% from [dth] [server] currency to %player%:      
    15.     trigger:
    16.         execute "UPDATE `users` SET `currency`=currency-%expression-1% WHERE `username`=%expression-2's name%" in {sql}
    17.        
    18.        
    19. effect [dth] [server] currency balance of %player%:      
    20.     trigger:
    21.         execute "select currency from users where `username`=%expression-1's name%" in {sql} and store the result in {_output::*}              
    22.         send "&7%expression-1's name% &ebalansas »&f %{_output::currency::1}%&lƀ" to expression-1      
    23.                
    24.                
    25. command /money:
    26.     aliases: currency
    27.     trigger:
    28.         currency balance of player
    29.                    
    30. command /admin [<text>] [<player>] [<number>]:
    31.     trigger:
    32.         if player is op:
    33.             if arg-1 is not set:
    34.                 player command "/admin help"
    35.             if arg-1 is "help":
    36.                 send "&6 - &7Administracijos komandos:"
    37.                 send "&6 - &c/admin help"
    38.                 send "&6 - &c/admin givecurrency <player> <number>"
    39.                 send "&6 - &c/admin removecurrency <player> <number>"
    40.                 send "&6 - &c/admin freeze <player>"
    41.                 send "&6 - &c/admin unfreeze <player>"
    42.                 send "&6 - &c/admin spectate <player>"
    43.                 #send "&6 - &7Lygių kurimas:"
    44.                 #send "&6 - &c/lvlp level <1-10>"  
    45.             if arg-1 is "unfreeze":
    46.                 if arg-2 is set:
    47.                     unfreeze(arg-2)
    48.                     send "{@prefix} Tave atšaldė administracija!" to arg-2              
    49.                     send "{@prefix} Tu atšaldei %arg-2%!"  
    50.             if arg-1 is "freeze":
    51.                 if arg-2 is set:
    52.                     freeze(arg-2)
    53.                     send "{@prefix} Tave užšaldė administracija!" to arg-2
    54.                     send "{@prefix} Tu užšaldei %arg-2%!"  
    55.             if arg-1 is "spectate":
    56.                 if arg-2 is set:
    57.                     teleport player to arg-2
    58.                     set player's gamemode to spectator
    59.             if arg-1 is "givecurrency":
    60.                 if arg-2 and arg-3 is set:
    61.                     add arg-3 of currency to arg-2  
    62.                     send "{@prefix} %arg-3%ƀ buvo įdėta į jūsų balansą!" to arg-2
    63.                     send "{@prefix} %arg-3%ƀ buvo pridėta į %arg-2% balansą!"
    64.             if arg-1 is "removecurrency":
    65.                 if arg-2 and arg-3 is set:
    66.                     remove arg-3 from currency to arg-2          
    67.                     send "{@prefix} %arg-3%ƀ buvo išimta iš jūsų balansą!" to arg-2
    68.                     send "{@prefix} %arg-3%ƀ buvo išimta iš %arg-2% balanso!"                  
    69.         else:
    70.             send "{@prefix} Neturi pakankamai privilegijų!"
    71.  
    72.        
    73. command /teleporttoserver [<text>]:
    74.     trigger:
    75.         send player player to server arg-1
    76.        
    77.        
    78.        
    79. #EVENTS
    80. every 1 hour:
    81.     loop all players:
    82.         set {_r} to random integer between 1 and 10
    83.         execute "UPDATE `GadgetsMenu_Data` SET `Mystery_Dust`=Mystery_Dust-%{_r}% WHERE `username`=%loop-player-2's name%" in {sql}
    84.        
    85. #execute "UPDATE `users` SET `currency`=currency-%expression-1% WHERE `username`=%expression-2's name%" in {sql}
    86.  
    87. on quit:
    88.     if player is op:
    89.         delete {admin::spectate::%player%::spectating}
    90.  
    91. on teleport:
    92.     if "%teleport cause%" is "SPECTATE":
    93.         cancel event  
    94.  
    95. on damage of player:
    96.     if attacker is firework:
    97.         cancel event      
    98.        
    99. on quit:
    100.     event.setQuitMessage("")
    101.  
    102. on join:
    103.     event.setJoinMessage("")    
     
Loading...