JSPM

  • Created
  • Published
  • Downloads 222
  • Score
    100M100P100Q76947F
  • License ISC

A package providing info on the EarthMC Minecraft server.

Package Exports

  • earthmc

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (earthmc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

EarthMC Package

Provides info on the EarthMC Minecraft server.

Installation

$ npm install earthmc

Require the package

var emc = require("earthmc")

Usage

Get Player (Promise)

emc.getOnlinePlayer("PlayerName").then(player => console.log(player))

{ x: 0, y: 64, z: 0, isUnderground: true, nickname: 'PlayerNickname', name: 'PlayerName' }

Get Town (Promise)

emc.getTown("PlayerName").then(town => console.log(town)).catch(err => console.log(err))

`Not yet implemented!