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

    Now, what are you waiting for? Join the community now!

Supported Skript Version
  1. 2.16
  2. 2.17
Supported Minecraft Versions
  1. 1.21
  2. 26.1
1ce92fbcf95485badaa205ee71422533f8affe85.jpeg

Requirements: Skript 2.16.0+ | Java 25 | BungeeCord or Velocity
A Skript addon for sharing variables and scripts across every server on a BungeeCord or Velocity network.

Code:
# on the lobby
set {?coins::%player%} to 100

# on survival, straight away, no extra code
send "You have %{?coins::%player%}% coins"

Any variable starting with ? is a network variable. Reads come from this server's own copy, so only writes go over the wire.

Read the wiki for setup, guides, the full syntax reference and copyable example scripts.



Features

  • Shared variables: any {?variable} is live on every server at once.
  • Free reads: values are served from local memory, so only writes cross the wire.
  • Atomic changes: add, remove, set if not set and set if it is are worked out on the proxy, so nothing is lost when two servers race.
  • A spend floor: without going below 0 refuses the change instead of letting a balance go negative.
  • Read the outcome: and wait gives you back the new value, or the reason it was refused.
  • Server identity: network server name lets you write one script that runs everywhere.
  • Sync state: network is synced, on network sync and on network disconnect tell you where you stand.
  • Change events: on network variable change of "coins::*" fires on every server with the old and the new value.
  • Who is where: all network players, network server of "Notch", network server "survival" is online, plus the motd, version, player limit and whitelist of any server, read from memory and kept fresh by the proxy.
  • Messages anywhere: send network message and send network action bar reach a player on any server, and broadcast ... across the network reaches everyone.
  • Moving players: connect network player "%player%" to "survival" sends someone to another server.
  • Remote console: execute command ... on network server "survival", off until the proxy config allows it.
  • Script sharing: push scripts from the proxy and get a load result back per server.
  • Survives restarts: an append-only log that compacts itself, and reconnects that resume where they left off.
  • BungeeCord and Velocity: the same jar and the same config on both.

Requirements

Works withRecommended
Java2525
Minecraft1.21 to 26.226.1.2
Skript2.16.0+2.16.2
ProxyBungeeCord or Velocityeither

Java 25 is required. The jar will not load on Java 21 or older, whatever Minecraft version you run. Both rules apply together, so a 1.21 server also has to be started with Java 25.

Every game server and the proxy run the same jar. One that is behind is refused when it connects, and both consoles say which side to update.

Works on offline servers. skNetwork never looks at player identity.

Tested on Minecraft 1.21.11 and 26.1.2, Skript 2.16.2, BungeeCord 26.1 and Velocity 4.1.1.


Commands


Code:
/sknet                      state, proxy, copy size, latency
/sknet resync               pull the whole map again
/sknet reconnect            drop the connection and resume

/sknetproxy                 proxy: state, backends, variable count
/sknetproxy push            proxy: send scripts now
/sknetproxy dump <pattern>  proxy: look up variables, '*' is a wildcard

The two halves use different names on purpose. A proxy handles any command it knows before the game server sees it, so keeping /sknet free means it always reaches the server you are standing on, where being an operator is already enough.

Statistics

skNetwork uses bStats for anonymous usage stats. You can opt out in plugins/bStats/config.yml.

Bukkit / Spigot / Paper


BungeeCord


Velocity


Setup, config and the full syntax reference are all in the wiki.
Author
eult
Downloads
5
Views
8
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from eult