The netban command manages the bans of the whole proxy network. Only proxy admins can use it, and the proxy answers in the caller's console. /netban add <player|steamid|ip|subnet> [duration] [reason] bans players, SteamIDs, IP addresses or subnets, and /netban addip <player> [duration] [reason] bans the addresses of players, which is the way to ban a player the proxy knows no SteamID of. Both ban for good or for a duration such as 30m, 2h, 7d or 1w, and the proxy kicks whoever the ban covers. The player is the exact name or a target selector of players on this server, who have to pass the caller's immunity check, or a name or SteamID for players on other servers. /netban remove <steamid|ip|subnet> lifts the ban that covers the SteamID, the address or the subnet, and /netban list lists the bans and whom they cover right now.

Summary

Subcommands

Has the proxy ban the targets from the network and notifies staff.
Has the proxy ban the addresses of the targets from the network and notifies staff.
Has the proxy list the bans of the network in the caller's console.
Has the proxy lift the ban and notifies staff.

Subcommands

add:on_run(actor, target, duration, reason)

shared plugins/srcdsproxy/plugin/commands/sh_netban.lua:31

Has the proxy ban the targets from the network and notifies staff. A second argument that is not a duration is the start of the reason.

Parameters

  • actor Player the caller
  • target String player name, target selector, SteamID, address or subnet
  • duration String optional, defaults to nil ban duration, or the start of the reason
  • reason String optional, defaults to nil the rest of the reason, as it was typed

addip:on_run(actor, target, duration, reason)

shared plugins/srcdsproxy/plugin/commands/sh_netban.lua:58

Has the proxy ban the addresses of the targets from the network and notifies staff. A second argument that is not a duration is the start of the reason.

Parameters

  • actor Player the caller
  • target String player name, target selector or SteamID
  • duration String optional, defaults to nil ban duration, or the start of the reason
  • reason String optional, defaults to nil the rest of the reason, as it was typed

Has the proxy list the bans of the network in the caller's console.

Parameters

  • actor Player the caller

remove:on_run(actor, target)

shared plugins/srcdsproxy/plugin/commands/sh_netban.lua:82

Has the proxy lift the ban and notifies staff. The proxy answers in the caller's console, also when nothing was banned.

Parameters

  • actor Player the caller
  • target String SteamID, IP address or subnet of the ban

Defined in