scriptserver-helpers
FYI: This package is an addon for ScriptServer and requires ScriptServer to be set up, please see here for more information.
Installation
While in root directory of your server run:
npm install scriptserver-helpers
And in your server
file:
server;
Usage
This module provides the following basic helper functions to help developers get started with modules.
// .testForBlock(coords, type)// Returns whether or not the block at the given coords matches the given typeserver ; // .isOnline(username)// Returns whether or not the player is onlineserver ; // .wait(ms)// Waits a given time (milliseconds) then continues to next promise in chainserver ; // .getCoords(username)// Returns coordinates of given user if onlineserver ; // .tellRaw(text, target, options)// Uses the minecraft command tellRaw to tell [target] [text] with [options]server;