Skip to content

Plugin setup

The SourceMod plugins are what actually enforce bans, mutes, and gags in-game and report new admin actions back to the panel. This page covers the two config files every install needs, and the optional companion plugins that round out the experience.

If you’re installing for the first time, the Quickstart covers this in context. If you’ve already got the panel running and you’re rolling out the plugin to a new server, this is the page you want.

The plugin needs two config files filled in: one to tell SourceMod how to reach the database, and one to tell SourceBans++ which server it’s running on.

addons/sourcemod/configs/databases.cfg is a SourceMod-wide file that lists every database any plugin on the server can talk to. Add a sourcebans block pointing at the same database your web panel uses:

"sourcebans"
{
"driver" "default"
"host" "EDITME_DATABASE_HOST"
"database" "EDITME_DATABASE_NAME"
"user" "EDITME_DATABASE_USER"
"pass" "EDITME_DATABASE_PASSWORD"
"port" "3306"
}

addons/sourcemod/configs/sourcebans/sourcebans.cfg is the per-server config. The single most important field is ServerID — the numeric ID the panel assigned when you added the server. Without a correct ServerID, bans applied from in-game won’t show up against the right server in the panel.

The rest of the file controls in-game admin menu behaviour (ban durations, default reasons, immunity flags, …). The defaults are sensible; tweak as you go.

After editing either file, reload the map or restart the game server so SourceMod re-reads the configs.

A SourceBans++ release ships several .smx files. Only sbpp_main.smx is mandatory; the others are opt-in based on what you want:

PluginWhat it doesMost installs want it?
sbpp_main.smxThe core. Ban / unban, in-game admin menu, panel write-back.Yes — required.
sbpp_comms.smxCommunication blocks (mute / gag).Yes if you care about voice / text moderation.
sbpp_checker.smxRe-checks every connecting client against the panel’s ban list — catches bans issued while the player was offline.Yes — closes a real loophole.
sbpp_report.smxIn-game !report command for players.Up to you.
sbpp_sleuth.smxDetects alt accounts by recording IP / SteamID associations.Useful for larger communities.
sbpp_admcfg.smxLoads admin / group / override definitions from the panel into SourceMod. Replaces SourceMod’s stock admin-flatfile.smx and pre-1.6 sb_admcfg.smx.Yes if you want panel-managed admins.

Drop the plugins you want into addons/sourcemod/plugins/ and remove the ones you don’t (SourceMod loads everything it finds, so an unused plugin still consumes a server slot).

For a Discord-channel forwarder, install the separate sbpp/discord-forward plugin. Setup is in Discord notifications.

After your first ban from in-game (or from the panel), check:

  • addons/sourcemod/logs/sourcebans/ should grow a log entry.
  • The new ban should appear in the panel’s Bans page within a few seconds.
  • A subsequent connection attempt by the banned player should be rejected with the ban message.

If any of these don’t happen: