Console Commands
ServerCore has a lot of functionality, more so than most people realize, and it’s very easy to miss some very helpful configuration settings that allow you to use the more useful features.
High-level
Section titled “High-level”This section will go over the quick-set commands you can use to configure the high-level functionality.
The AN command configures the Nighttime announcer, which is a script that warns players that night is approaching, which is especially useful for both horde night, and servers that have zombies running after dark. Recommended settings are:
an true
an warnhours 3
an announcer Botname
The above settings will enable the announcer, provide a 3-hour warning before in-game darkness, and all alerts and warnings will be sent by the server with the name ‘Botname’, which you can change to be anything you want.
The hide chat command prefix feature allows you to hide player chat that is related to ServerCore commands. For example, if a player types /claim in order to obtain their shop purchases, hccp would prevent that chat from appearing in the game.
hccp /,$
The above command will hide all chat lines that begin with the / or $ characters. CSMM uses $ by default for commands, and ServerCore uses / by default for commands. The comma that separates the two symbols is required.
The prevent falling blocks feature was added to reduce or eliminate huge drop mining collapses within the game. When PFB is enabled, any block that would drop due to structural integrity issues will instead simply vanish. This prevents sand/gravel drop mining from causing hundreds of blocks to fall at once, which will often lag or crash a server completely. Similarly, if you destroy the structural supports for a base and cause it to drop, the affected blocks will simply cease to exist. PFB also generates a log line entry in the console, which can be captured via a Discord notification and sent to the admin team in Discord.
pfb 20
If PFB is set to any value above zero, it will vanish falling blocks; the numeric parameter of the pfb command only specifies how large the collapse must be before it is recorded as a log event. This prevents PFB from spamming the console log with 1-2 dropped block events when players destroy temporary frames or mostly-collapsed small structures in-game. A value of 20 is recommended for PFB.
The Server Chat Name feature allows you to customize the ‘Name’ of the server when it sends chat messages via ServerCore. Typically, this would be the same value as the ‘an announcer’ command above.
On a fresh install the default name is “Lara”, a nod to Prisma501, the author of PrismaCore. Use scn <name> to change it.
scn Botname
Reference
Section titled “Reference”ServerCore has a built in function to list all avalaible console commands (pc-help), which give you a global description of the available commands. For detailed info on a command do:
help <command>For a reference list of all commands included with ServerCore, run pc-help in the server console.