ConduitDocs

5. The Skript bridge (complete syntax)#

Registered by the connector (ConduitSkript.java) on every Skript-equipped server.

Identity / network state (expressions)

conduit server name | conduit task | conduit group | conduit server id
conduit network servers          # "id|task|group|online|max" rows, network-wide
conduit servers                  # panel-registered servers (raw registry)
conduit server of %string%       # which server a player (name) is on, cross-server
conduit name of %string%         # uuid/name → cached name (never blocks)
conduit uuid of %string%         # name/uuid → uuid ("" if unknown)
conduit [network] player count | conduit online count
conduit prefix of %player% | conduit suffix of %player%     # LP, panel-resolved
conduit head [glyph] of %string% # RP-font head glyph ("" until skin cached)
conduit lang of %player% | conduit lang base
conduit gamestats host|port|database|user|password

World-shard grid (all yield nothing when the server has no grid, so is not set is the fallback test — that's how rtp.sk keeps working on an unsharded server)

conduit shard strip min of %string%      # this server's own strip bounds in that world
conduit shard strip max of %string%
conduit shard half extent of %string%    # border/2 — the furthest coordinate a random TP may pick
conduit shard border of %string%         # full border diameter
conduit shard index [of %string%]        # 1-based strip position; no argument = this server
conduit shard server at %location%       # proxy target owning that coordinate
conduit shard border distance at %location%
conduit shard servers                    # proxy targets in strip order

Rounds / games

conduit rounds                   # "reg|round|mode|state|players|max|host|map" rows
conduit round | conduit game mode | conduit game map | conduit game player | conduit game data
conduit game %string%            # host-side round control (games bridge)
conduit find game %reg% [mode %m%] for %players%   # network matchmaker
conduit connect %players% to [round] %string%
on conduit game boot|start|join|leave|end|shutdown / conduit map ready
conduit map [world] %string% is [not] ready

Actions

send %players% to [conduit] server %string%       # cross-server move via panel/proxy
conduit broadcast %string%
conduit announce [permission %perm%] %catalog%, %key%, [args…]   # localized network announce
conduit message %players% %string% | conduit kick %players% [reason] %string%
conduit log %uuid%, %type%, %title%, %description%               # action-log row

Redis (RediSkript-compatible)

send redis message[s] %strings% to [channel] %string%
on redis message:   (redis channel / redis message)
set|delete redis string %s% [to %s%] · [value of] redis string %s%
set|delete field %s% in redis hash %s% · value of field %s% in redis hash %s%
all field names|values of redis hash %s% · redis list %s% · add %strings% to redis list %s%
delete redis hash %s%

Edit on GitHubFEATURES.mdUpdated