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 - The proxy addon for Skript 2.0.0-BETA-3

A Skript addon that allows for full control over your proxy.

  1. Skungee Messages, Tab Header and Footer, Plugin management, permissions and more!

    LimeGlass
    [​IMG]

    Version: 1.0.6b

    Added:

    • Tablist Header and Footer Effect
    • Bungeecord permissions Expression
    • Bungeecord permission groups Expression
    • Unregister commands Effect
    • Unregister event listeners Effect
    • Skungee messages, will explain below.
    • Enable plugins Effect
    • Ability to get all ServerInstance servers (Needs ServerInstances 1.0.1+) Expression.
    • Worked on shutdown mechanics for ServerInstances, Windows doesn't like deleting files... Not releasing yet.
    • Folders per servers can now be defined in the GlobalScripts folder! Example: Bungeecord/plugins/Skungee/GlobalScripts/Hub/
      All of the scripts located in this folder will be placed on the server named "Hub" if that server is online, exists and connected.
      Scripts that are still located in Bungeecord/plugins/Skungee/GlobalScripts/ that aren't in subfolders will remain to be loaded on every server like normal.
    Fixed:
    • Rare issue where some packets didn't load objects.
    • Fixed some null pointers.
    • Added more bugs :emoji_stuck_out_tongue:
    Syntax:
    Code (Skript):
    1. #Tablist Header and Footer Effect
    2. set tab[list] (1¦header|2¦footer|3¦header and footer) (for|of) bungee[[ ]cord] [(player|uuid)[s]] %strings/players% to %strings% [and %-strings%]
    3. #Player permissions Expression
    4. [(all [[of] the]|the)] bungee[[ ]cord] permissions (from|of) [(player|uuid)[s]] %strings/players%
    5. #Player permission groups Expression
    6. [(all [[of] the]|the)] bungee[[ ]cord] [permission] groups (from|of) [(player|uuid)[s]] %strings/players%
    7. #Enable all plugins Effect
    8. enable [(all [[of] the]|the)] bungee[[ ]cord] plugins
    9. #Load all plugins Effect
    10. load [(all [[of] the]|the)] bungee[[ ]cord] plugins
    11. #Shutdown Effect (end part is for ServerInstances only)
    12. (stop|shutdown) bungee[[ ]cord] server[s] %strings% [(and|with) [serverinstances] saving %-boolean%
    13. #Unregister commands from plugins Effect
    14. unregister [the] commands from [the] [bungee[[ ]cord]] plugin[s] %strings%
    15. #Unregister event listeners from plugins Effect
    16. unregister [the] listeners from [the] [bungee[[ ]cord]] plugin[s] %strings%
    17. #Get server instances servers
    18. [(all [[of] the]|the)] server[ ]instances [names]
    19.  
    20. #Skungee messages:
    21. #Event:
    22.     [on] (bungeecord|skungee) message [from [channel[s]] %strings%]:
    23.         #event-string - This will be the channel names.
    24. #Expression:
    25.     [(all [[of] the]|the)] (skungee|bungee[[ ]cord]) message[s]
    26. #Explaining below
    27.  
    Skungee Messages:
    So skungee messages, what are they? These are a channel messaging system that replicated a similar system like Bungee Plugin Messages, they carry two Strings, one to define the channel (Which is optional) and the other which defines serialized objects (aka more strings). You can send strings to other servers that are listening in on the Skungee message event.

    So say we want to make a Staff chat system (because everyone asks me for that these days)

    We first start off with sending the message, lets do it in a command
    Code (Skript):
    1. command /staffchat <string>:
    2.     aliases: /sc
    3.     trigger:
    4.         send skungee message argument to "staff"
    Pretty easy so far right? Well these are very basic and simple. The coding for these are literally like 20 lines long. Next we need to listen in on this message. So say this is another server now:

    Code (Skript):
    1. on skungee message from channel "staff":
    2.     loop all players:
    3.         if loop-player has permission "staff.chat":
    4.             message skungee message to loop-player
    This will listen for when the channel "staff" gets used, and then Skript will scan all online players who have the permission then message them, simple. You can also not define the channel and just place "on skungee message" to then use "event-string" to get what channel the message is coming from.

    If you place the coding examples described above in the GlobalScripts folder on the Bungeecord Skungee folder this system will work across all servers on the Bungeecord network.

    This suggestion was from @Pikachu (Giving credit where credit is due)

    Thanks. Here is a title broadcast system using Skellett that I helped someone on Spigot prior to this update, so thought I should add it:

    Example script:
    Code (Skript):
    1. on skungee message from channel "test":
    2.     broadcast "&a%skungee messages%"
    3. command /skmsg:
    4.     trigger:
    5.         send skungee messages "testing" and "hello" to channels "test"
    6. on join:
    7.     wait 5 seconds
    8.     set tablist header of bungeecord player uuid of player to "&6&lTesting"
    9.     wait 3 seconds
    10.     set tablist footer of bungeecord player uuid of player to "&5&lTesting"
    11.     wait 3 seconds
    12.     set tablist header and footer of bungeecord player uuid of player to "&a&lTesting"
    13.     wait 3 seconds
    14.     set tablist header and footer of bungeecord player uuid of player to "&1&lTesting" and "&4Hello"
    Code (Skript):
    1. #Title example
    2. #Place this code below on any server that you want the Title to be executed on.
    3. command /titlebroadcast <text>:
    4.     trigger:
    5.         send argument to "Title"
    6.      
    7. #Place this code below on any server that you want the Title to be displayed on.
    8. on skungee message from channel "Title":
    9.     if skungee message contains "||":
    10.         set {_elements::*} to skungee message split at "||"
    11.         #Titles below is from Skellett
    12.         show a title from "%{_elements::1}%" and subtitle "%{_elements::2}%" to all players for 5 seconds and 10 ticks fade in and 15 ticks fadeout
    13.     else:
    14.         show a title from coloured skungee message to all players for 5 seconds and 10 ticks fade in and 15 ticks fadeout
    Information:
    • The config.yml will reset on updating, so make sure you have saved your valuable configuration options.
    • You need to install this update on both the Spigot servers and Bungeecord servers.
    • If you find any bugs, please notify a Skungee developer with all the information you can provide, errors, your code, the versions of the servers and Skungee etc
    • Source code at: https://github.com/TheLimeGlass/Skungee
    • Skungee progress can be viewed at https://github.com/TheLimeGlass/Skungee/projects
    • Skungee bugs can be reported at https://github.com/TheLimeGlass/Skungee/issues
    • Ignore the release on Github for this lol, was lazy to fill it out.
    • If you feel like donating to this free project you can do so by clicking the button below, much love.
    • Enjoy :emoji_grinning:
    [​IMG]
    Getreidemonster, Acenox and Uzumaki like this.
Return to update list...