1.0.3 • Published 3 years ago

@nebulamc/nebulajs v1.0.3

Weekly downloads
-
License
OSL-3.0
Repository
github
Last release
3 years ago

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.

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago