Configure NullBrand
Every NullBrand option with its default and effect, the full default config and placeholders.
On this page
NullBrand has one file, config.yml. Edit it and run /nullbrand reload. If the file has a YAML error, the reload is refused and the working config stays active.
A missing setting uses its built-in default. Where the built-in default differs from the value in the shipped file, both are listed.
Full default config#
This is the shipped config.yml from 2.0.2 (unchanged since 2.0.1). The comment header is left out, and one hover line in the event profile uses a comma here where the shipped file has a long dash.
# Enable debug logging (verbose startup info)
debug: false
# =============================================================
# MOTD SETTINGS
# =============================================================
motd:
enabled: true
# Default active profile
profile: "default"
# Global favicon file (inside /plugins/NullBrand/favicons/)
favicon: "logo.png"
# =============================================================
# MAINTENANCE MODE
# =============================================================
maintenance:
enabled: false
profile: "maintenance"
# =============================================================
# FAKE PLAYER ENGINE (global default, can be overridden per-profile)
# Modes: STATIC | RANDOM | SMART | TIME_BASED
# =============================================================
fakeplayers:
enabled: false
mode: STATIC
amount: 250 # STATIC mode: add this many fake players
min: 120 # RANDOM mode: minimum
max: 280 # RANDOM mode: maximum
multiplier: 1.8 # SMART mode: multiply real count by this
minimum: 50 # SMART mode: minimum floor bonus
cache-ticks: 20 # RANDOM mode: refresh interval in ticks (50ms each)
# =============================================================
# MAX PLAYERS OVERRIDE (global default, can be overridden per-profile)
# =============================================================
maxplayers:
enabled: false
amount: 9999
# =============================================================
# CUSTOM PLAYERCOUNT TEXT / ANIMATION
# Overrides the player count hover tooltip in the server list
# =============================================================
playercount:
enabled: false
text:
enabled: false
value: "<#ff00ff>NullBrand Network"
animation:
enabled: false
interval: 20
frames:
- "<#ff0000>✦ PLAY NOW ✦"
- "<#00ff00>✦ JOIN TODAY ✦"
- "<#0000ff>✦ NULLBRAND ✦"
# =============================================================
# PROFILE ROTATION
# =============================================================
rotation:
enabled: false
interval: 300 # seconds
profiles:
- default
- event
# =============================================================
# PING PROTECTION / RATE LIMITING
# =============================================================
pingprotection:
enabled: true
cooldown-ms: 500 # minimum ms between pings from same IP
max-per-second: 10 # reserved for future burst limiting
# =============================================================
# LANGUAGE / MESSAGES
# Supports legacy color codes (&a, &c, etc.)
# =============================================================
lang:
reload: "&aNullBrand reloaded successfully."
no-permission: "&cYou don't have permission."
profile-switched: "&aActive profile switched to: &e%profile%"
maintenance-on: "&aMaintenance mode &cenabled&a."
maintenance-off: "&aMaintenance mode &adisabled&a."
unknown-profile: "&cUnknown profile: &e%profile%"
fakeplayers-set: "&aFake players set to: &e%amount%"
status: "&7--- &5NullBrand &7Status ---\n&7Profile: &f%profile%\n&7Maintenance: &f%maintenance%\n&7FakePlayers: &f%fakeplayers%"
# =============================================================
# MOTD PROFILES
# =============================================================
profiles:
# Fallback profile (used if active profile is missing)
global:
lines:
- "&7Welcome to our server"
- "&fHave fun!"
# Default server branding
default:
lines:
- "<gradient:#ff00ff:#00ffff>NullBrand Network"
- "<#aaaaaa>▶ <white>%display_online%</white> players online"
hover:
enabled: true
random: false
lines:
- "&7Welcome to &5Null&dBrand"
- "&7Running powerful infrastructure"
- "&7Players online: &f%display_online%"
# Leave out fakeplayers/maxplayers/playercount to inherit global defaults
animation:
enabled: false
interval: 40
frames:
- "<gradient:#ff00ff:#00ffff>NullBrand Network"
- "<gradient:#00ffff:#ff00ff>NullBrand Network"
# Live event MOTD
event:
lines:
- "&6&lSpecial Event &e&lLive Now!"
- "&eJoin now and claim your rewards!"
hover:
enabled: true
random: true
lines:
- "&6Limited time event, join fast!"
- "&ePrizes and rewards await!"
- "&aEvent ends this weekend!"
# Maintenance mode MOTD
maintenance:
lines:
- "&c&lServer Maintenance"
- "&7We'll be back shortly. Follow us for updates."
hover:
enabled: true
lines:
- "&cMaintenance in progress"
- "&7Check our Discord for live updates"
maxplayers:
enabled: true
amount: 0General#
| Setting | Default | What it does |
|---|---|---|
debug | false | Logs extra [DEBUG] lines, such as each profile rotation. |
motd.enabled | true | Master switch. When false, NullBrand leaves every ping alone. |
motd.profile | default | The profile shown when the server starts or reloads. If it does not exist, the global profile is shown. |
motd.favicon | logo.png in the file, empty if missing | Icon file inside the favicons folder. Must be a PNG of exactly 64 by 64 pixels, at most 1 MiB. Empty means no icon change. |
Profiles#
Each entry under profiles is one profile. The name is what you use in motd.profile, /nb profile and rotation.profiles.
| Setting | Default | What it does |
|---|---|---|
lines | required | The MOTD lines. The server list shows two lines. If a profile has no lines, NullBrand logs a warning and shows &5Null&dBrand. |
hover.enabled | false | Show hover.lines when players hover over the player count. |
hover.random | false | Show one random line per ping instead of all lines. |
hover.lines | none | The hover lines. |
animation.enabled | false | Cycle through animation.frames instead of lines. |
animation.interval | 20 | Ticks per frame. One tick is 50 ms, so 20 is one second. |
animation.frames | none | Each frame is the whole MOTD as one string. Use %newline% for a second line. If the list is empty, the animation is turned off with a warning. |
favicon | none | An icon just for this profile. If it cannot be loaded, the global icon is used. |
fakeplayers | global value | Its own fake player settings. Leave it out to use the global fakeplayers section. |
maxplayers | global value | Its own max players setting. |
playercount | global value | Its own player count text or animation. |
The global profile is the fallback. It is used when the active profile or the maintenance profile does not exist. If you delete it, NullBrand creates one with &7Welcome to our server and &fHave fun!.
Text and colours#
| Syntax | Where it works |
|---|---|
&a, &l and other & codes | Everywhere |
&#RRGGBB and <#RRGGBB> hex colours | Everywhere |
MiniMessage tags: <gradient:#ff00ff:#00ffff>, <rainbow>, <white>, <red> | Velocity and Paper only |
On BungeeCord and plain Spigot, MiniMessage tags are not converted and show up as text. Keep to & codes and hex there.
Illustration generated with AI and checked by Maj Kovačič.
Placeholders#
These work in MOTD lines, animation frames, hover lines and player count text:
| Placeholder | Value |
|---|---|
%online% | Real players online |
%max_players% | Real max players |
%fake_online% | Fake players added |
%display_online% | Online count shown, with fake players |
%display_max% | Max players shown |
%profile%, %motd_name% | Name of the profile being shown |
%platform%, %proxy% | Velocity, BungeeCord or Spigot |
%time% | Server time, HH:mm:ss |
%date% | Server date, yyyy-MM-dd |
%maintenance% | true or false |
%fakeplayers% | Fake player mode and bonus, for example STATIC +250, or off |
%newline% | A line break |
Fake players#
fakeplayers adds a number to the online count shown in the server list. It never adds real players.
| Setting | Default | What it does |
|---|---|---|
enabled | false | Turn fake players on. |
mode | STATIC | One of STATIC, RANDOM, SMART, TIME_BASED. An unknown mode logs a warning and uses STATIC. |
amount | 250 | STATIC: add this many. |
min | 120 in the file, 100 if missing | RANDOM: lowest bonus. If min is above max, they are swapped with a warning. |
max | 280 in the file, 300 if missing | RANDOM: highest bonus. |
multiplier | 1.8 in the file, 1.5 if missing | SMART: show about real count times this. |
minimum | 50 | SMART and TIME_BASED: the bonus is never lower than this. |
cache-ticks | 20 | RANDOM: how often a new random number is picked, in 50 ms ticks. 20 is one second. |
How each mode works:
- STATIC adds
amount./nb fakeplayers <amount>replaces it until the next reload. - RANDOM adds a random number between
minandmax, refreshed everycache-ticks. - SMART adds the real count times
multiplierminus the real count, but at leastminimum. - TIME_BASED multiplies the real count by a factor for the time of day, and adds at least
minimum. Factors: 17:00 to 22:00 is 2.0 (2.5 at weekends), 12:00 to 17:00 is 1.4 (1.8 at weekends), 07:00 to 12:00 is 1.2, and night is 0.3, which leaves onlyminimum. It uses the server's local time.
Max players#
| Setting | Default | What it does |
|---|---|---|
maxplayers.enabled | false | Replace the max player number shown in the server list. It does not change the real slot limit. |
maxplayers.amount | 9999 | The number to show. A negative number logs a warning and uses 9999. |
The shipped maintenance profile sets this to 0.
Player count text#
playercount replaces the hover lines with your own text or animation. It does not work on plain Spigot.
| Setting | Default | What it does |
|---|---|---|
playercount.enabled | false | Turn the section on. |
playercount.text.enabled | false | Show text.value. |
playercount.text.value | empty | The text. |
playercount.animation.enabled | false | Cycle through animation.frames. Wins over text. |
playercount.animation.interval | 20 | Ticks per frame (50 ms each). |
playercount.animation.frames | none | The frames. |
If playercount is on but both text and animation are off, the profile's normal hover lines are shown.
Rotation#
| Setting | Default | What it does |
|---|---|---|
rotation.enabled | false | Switch profiles on a timer. |
rotation.interval | 300 | Seconds between switches. |
rotation.profiles | none | The profiles to cycle through. Names that do not exist are skipped. |
The first switch goes to the second name in the list, then on in order, and back to the start. A rotation switch replaces any profile you set with /nb profile. Maintenance mode still wins over rotation.
Maintenance#
| Setting | Default | What it does |
|---|---|---|
maintenance.enabled | false | Start with maintenance on. |
maintenance.profile | maintenance | The profile shown while maintenance is on. If it does not exist, global is shown. |
Maintenance only changes the server list. Players can still join. /nb maintenance changes it until the next reload or restart.
Ping protection#
| Setting | Default | What it does |
|---|---|---|
pingprotection.enabled | true | Ignore repeated pings from the same IP. |
pingprotection.cooldown-ms | 500 | If the same IP pings again within this many milliseconds, NullBrand leaves that ping alone and the platform's own MOTD is sent. |
pingprotection.max-per-second | 10 | Not used yet. Reserved for a future burst limit. |
NullBrand remembers up to 16384 IP addresses for this.
Messages#
All lang texts use & colour codes.
| Key | Shown when | Placeholders |
|---|---|---|
reload | A reload worked | none |
no-permission | You lack the permission | none |
profile-switched | /nb profile worked | %profile% |
maintenance-on, maintenance-off | /nb maintenance | none |
unknown-profile | /nb profile with a name that does not exist | %profile% |
fakeplayers-set | /nb fakeplayers worked | %amount% |
status | /nb status. Use \n for new lines. | %platform%, %profile%, %maintenance% (ENABLED or disabled), %fakeplayers% (mode name or disabled) |
Commands and permissions#
/nullbrand and its permissions are on Commands.
For developers#
Other plugins can call the static methods in dev.korinetwork.nullbrand.api.NullBrandAPI: reload(), setProfile(name), getActiveProfile(), setMaintenance(active), isMaintenance(), setFakePlayers(amount) and getDisplayedPlayers(realOnline).