Example: Punishment
Ban a player across the entire network. Demonstrates multiple commands in one script, console execution, and per-command overrides.
Script
version: 2
name: netban
description: Ban a player on all servers
enabled: true
aliases: [nban]
permissions:
enabled: true
silent: false
register:
- id: "proxy-1"
location: VELOCITY
defaults:
run-as: CONSOLE
execute:
- id: "survival-1"
location: BACKEND
- id: "lobby"
location: BACKEND
server:
target-required: false
schedule-online: false
timeout: 5s
delay: 0s
cooldown: 0s
args:
- name: target
required: true
type: STRING
- name: reason
required: false
type: GREEDY_STRING
commands:
- command: "ban ${target} ${reason}"
- command: "kick ${target} You have been banned: ${reason}"
execute:
- id: "proxy-1"
location: VELOCITY
run-as: CONSOLE
What happens
/netban Steve cheatingis run on Velocity- First command:
ban Steve cheatingruns onsurvival-1andlobbyconsoles - Second command:
kick Steve You have been banned: cheatingruns on the Velocity console (overridesexecuteto target the proxy)
The ban is applied on each backend through their ban plugin, and the player is kicked from the proxy.
Key concepts
- Multiple commands → each entry in
commandsruns independently - Per-command overrides → the second command overrides
executeto target Velocity instead of the backends - Optional argument →
reasonis optional. If not provided,${reason}resolves to an empty string.
Permissions
lpv user playerName permission set commandbridge.command.netban true