server.log
Writes a line to the server console, with a [gamemode] prefix.
Signature
Section titled “Signature”server.log(message: string): voidParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
message |
string |
The line to write. |
Returns
Section titled “Returns”Nothing.
Example
Section titled “Example”import { server } from "nativemp";
server.on("playerConnected", ({ player }) => server.log(`${player.name} joined`));Related
Section titled “Related”server.on: events worth logging