ZulfBungee

  • 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!

Zulfen

New Member
Jul 20, 2022
6
0
1
19
United Kingdom
github.com
View attachment 6970

An all in one addon for controlling players and servers on your proxy with Skript!

GitHub can be found here: https://github.com/Zulfen/ZulfBungee


This addon is in alpha, so expect some issues!
It supports these platforms currently:

Proxy

  • BungeeCord / Waterfall
Client
  • Spigot (Paper is preferred)
    1.11 and below have not been tested.

Introduction

ZulfBungee makes it simpler to manage networks using Skript by providing syntax for handling things like:


  • Network variables (with MySQL and H2 database support)
  • Player and server management, such as messaging and sending players to different servers
  • Global script support for easy synchronisation, using the command /zulfbungee scripts reload, which can be executed ingame and on the proxy.
More features are soon to come with suggestions from the community! :emoji_slight_smile:

Setup

Setup is relatively simple - just put the addon in the plugins folder of the proxy and the client(s), and selecting an open port on both the proxy and one on the client side for it to function.

Make sure that the server-host and server-port options in the client's configuration file match the host and port in the proxy's configuration.
Please do check your firewall rules and the ports you specified in the configuration before you ask for help!

Storage for the network variables does not need to be set up manually (apart from changing the username and password to something more secure) - it picks a file based database called H2 as default. However, MySQL can be used if needed.


Syntax

This can be found at https://github.com/Zulfen/ZulfBungee/blob/master/README.md. This may be subject to change.


Syntax will be added to SkriptHub soon!


Code Examples

Code:
command /zulfbungeetest:
    trigger:

       broadcast "&aPrinting all players on the bungeecord network..."
       broadcast "&b%all bungeecord players%"

       broadcast "&aPrinting the name of this client:"
       broadcast this server's name

       broadcast "&aSending all players on the network a message through iteration..."

       loop all of the bungeecord players:
         proxy message loop-proxyplayer the message "&b&oWhy hello there! I am a message!"
 
       broadcast "&aPrinting all the servers connected to the proxy..."
       set {_servers::*} to all of the online servers

       broadcast "&b%{_servers::*}%"

       broadcast "&aSending all servers a message (this is used for inter-server communication)..."

       loop {_servers::*}:
         proxy message proxy server loop-value the message "Sample Text" called "Sample Title"

       broadcast "&aSetting a network variable..."
       set network variable {zulfbungee::test::*} to 1, 2, 3, 4 and 5

       broadcast "&a...adding to it..."
 
       add 6 to network variable {zulfbungee::test::*}
 
       broadcast "&a...and printing it! Expected values should be 1 through 6."
       broadcast "%network variable {zulfbungee::test::*}%"
 
       broadcast "&aDeleting that variable... :("
 
       delete network variable {zulfbungee::test::*}

       broadcast "&c&lCongrats! The test is done! Please send results back!"

Need help?

Click the Ask Questions / Get Support button on the right, or contact zulfen#3004 on Discord if you are really stuck.
 
Zulfen updated ZulfBungee with a new update entry:

Release v0.9.9-pre1

Pre-release version for testing.
Bug fixes
- Fixes the on proxy player connect event firing while switching servers on Velocity.
- Fixes potential network variable errors.
New features:
- Syntax to register and deregister servers from the proxy dynamically:
- register [a] [new] server [with the proxy] [(named|called)] %string% with (IP|address) %string% [and] [with] port %number%
- (de|un)register [a]...

Read the rest of this update entry...