MythicProxy adds network-wide variables, signals, triggers and placeholders to MythicMobs on servers that run behind a Velocity proxy.
MythicProxy is a pair of plugins. The Velocity plugin is the hub: it stores the data, relays changes to the backend servers and tells each backend where to connect. The Paper plugin runs next to MythicMobs on every backend and adds the mechanics, conditions, triggers and placeholders.
The mechanics, conditions, placeholders, triggers,
See Installation for all requirements.
As a brief summary, MythicProxy allows you to:
MythicProxy is a pair of plugins. The Velocity plugin is the hub: it stores the data, relays changes to the backend servers and tells each backend where to connect. The Paper plugin runs next to MythicMobs on every backend and adds the mechanics, conditions, triggers and placeholders.
The mechanics, conditions, placeholders, triggers,
events casts and signals need MythicMobs Premium on every backend that uses them. MythicProxy also enables an assortment of network-related features depending on the various other Mythic plugins installed.See Installation for all requirements.
As a brief summary, MythicProxy allows you to:
- Network Variables:
Share variables between all servers, globally or per player, with networkVariableSet and networkVariableUnset, and check them with the networkVariableEquals, networkVariableIsSet and networkVariableInRange conditions. The proxy saves variables by default, and they can expire. - Add-Safe Counters:
networkVariableAdd sends the amount to the proxy, which adds it to the stored value and pushes the new total to every connected server. Adds from several servers at nearly the same time can rarely be lost, so keep server clocks synced, see Conflicts and Clocks. - Signals:
Send a named signal with an optional payload to one player, to one server or to the whole network with networkSignal. - Lifecycle Triggers:
Four triggers report network events. onNetworkJoin and onServerSwitch fire on the player and never on mobs. onNetworkQuit fires on the mobs of the server the player left. onNetworkSignal fires on the targeted player when a signal targets a player, and on mobs otherwise. MythicMobs itself runs no skill for the player triggers, so use theeventscasts or MythicCrucible item skills to run skills on a player. - MythicCrucible Item Skills:
The player triggers (onNetworkJoin, onServerSwitch and onNetworkSignal for a signal sent to a player) run the matching skill lines of the MythicCrucible items a player holds or wears and of their active set bonuses, with the skill variables of the trigger. Join and switch lines run only if MythicCrucible has already read the player's items. - Placeholders:
Read variables with<global.netvar.NAME>,<caster.netvar.NAME>and<target.netvar.NAME>, the players online on the whole network or on one server with<network.online>and<network.server.NAME.online>, and the server a player is connected to with<caster.network.server>and<target.network.server>. Placeholders read the local copy, so they never wait for the network. See Placeholders. - Config Event Casts:
Name skills undereventsin the backendconfig.ymlto cast them when a player joins the network, switches server or leaves it, or when a named signal arrives. No trigger on a mob is needed. - Automatic Discovery and Authentication:
The proxy announces its address to a server when a player connects to it, so a backend learns a proxy on the first connection through it (the first join on that backend fires nothing) or at startup when itsproxieslist holds the proxy. The proxy matches each connecting server to its entry in the server list (setserver-namebehind NAT or Docker) and takes the shared secret from Velocity's modern forwarding (set the samesecreton the proxy and every backend for legacy or no forwarding). Both sides prove that they know the secret without sending it, but the connection is not encrypted, so restrict the hub port (25580by default) to your backends with a firewall. See How Backends Find the Proxy and Connections and Security. - SQLite or MySQL Storage:
The proxy stores the data in a SQLite file by default. SetstoragetoMYSQLin itsconfig.jsonto use a MySQL database instead. See Storage. - Offline Queueing and Resync:
While the proxy is unreachable, each server keeps using its cached values and queues its variable writes and signals, up toqueue-sizemessages (1000by default). It retries every 5 seconds and resyncs the global variables and the player directory when the connection returns. See When a Proxy Is Down. - Multiple Proxies:
Run more than one proxy. Each server connects to every proxy it knows, and proxies that use the same MySQL database share their data. Give each proxy its ownproxy-id. See Multiple Proxies. - Plugin API:
Other plugins can use the Java API to send channel messages between servers and to take leases and store blobs on the proxy. See API.