add running example
This commit is contained in:
parent
2ab4277696
commit
742a46c708
1 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,9 @@
|
|||
// the Minecraft output into this script. RCON isrequired for messages to
|
||||
// be sent to Minecraft.
|
||||
|
||||
// Running example - working directory: project root:
|
||||
// (cd ~/minecraft_server/ ; exec ~/minecraft_server/start.sh) | RCON_PASSWORD="your rcon password" node scripts/minecraft.js
|
||||
|
||||
import fetch from "node-fetch";
|
||||
import { WebSocket } from "ws";
|
||||
import Rcon from "rcon";
|
||||
|
|
Loading…
Reference in a new issue