1.0.3 • Published 4 years ago
@nebulamc/nebulajs v1.0.3
NebulaJS
Easy to use library to contact NebulaMC API.
Installation
npm i @nebulamc/nebulajs
Usage
To use this library you need to have api key. To pass your api key you need to use nebula.loginToken(apiKey).
After you run this your api key will be saved in config.json in NebulaJS folder.
Available functions:
nebula.loginToken(apiKey) - Login with api key.nebula.getResident(residentname, option) - Get resident data.nebula.getNation(nationname, option) - Get nation data.nebula.getTown(townname, option) - Get town data.nebula.getResident(townytype, name) - Get dynmap link for town/nation of your choice.