1.4.4 • Published 4 months ago

skyblock.js v1.4.4

Weekly downloads
-
License
ISC
Repository
-
Last release
4 months ago

skyblock.js

A library for the skyblock.net api

Features

  • List online players on Economy, Survival and Skywars.
  • Get friends of a player from their forums ID.
  • Search for forum accounts by query.
  • Get information about a player by their IGN.
  • Get friends of a player by their IGN.

Installation

npm i skyblock.js

See below for usage.

Usage

Current Economy info

const sb = require("skyblock.js")
sb.economy().then(data => {
    console.log(data);
})

Current Survival info

const sb = require("skyblock.js")
sb.survival().then(data => {
    console.log(data);
})

Current Skywars info

const sb = require("skyblock.js")
sb.skywars().then(data => {
    console.log(data);
})

Forums username search

const sb = require("skyblock.js")
sb.forumsSearch("<QUERY>").then(data => {
    console.log(data);
})

Player info

const sb = require("skyblock.js")
sb.player("<IGN>").then(data => {
    console.log(data);
})

Friends by IGN

const sb = require("skyblock.js")
sb.friendsByIGN("<IGN>").then(data => {
    console.log(data);
})

Friends by forums ID

const sb = require("skyblock.js")
sb.friendsByForumsID("<FORUMS ID>").then(data => {
    console.log(data);
})

Get current amount of players on a Noobcrew server

A list of possible values can be found here

const sb = require("skyblock.js")
sb.playerCount("<SERVER NAME>").then(data => {
    console.log(data);
})

Friends by UUID

const sb = require("skyblock.js")
sb.friendsByUUID("<UUID>").then(data => {
    console.log(data);
})

Skyblock download stats

const sb = require("skyblock.js")
sb.getDownloadStats().then(data => {
    console.log(data);
})

Staff list

const sb = require("skyblock.js")
sb.getStaff().then(data => {
    console.log(data);
})

Get User by UUID

const sb = require("skyblock.js")
sb.playerByUUID("<UUID>").then(data => {
    console.log(data);
})

Get User forums Info

const sb = require("skyblock.js")
sb.forumsUserInfo("<ID>").then(data => {
    console.log(data);
})

Get Current Trader Info

const sb = require("skyblock.js")
sb.getTraders("<server>").then(data => {
    console.log(data);
})

Convert UUID to IGN

const sb = require("skyblock.js")
sb.UUIDToName("<UUID>").then(data => {
    console.log(data);
})
1.4.4

4 months ago

1.4.3

4 months ago

1.4.2

5 months ago

1.4.1

5 months ago

1.4.0

7 months ago

1.3.7

7 months ago

1.3.10

7 months ago

1.3.9

7 months ago

1.3.8

7 months ago

1.3.6

11 months ago

1.2.8

1 year ago

1.2.7

1 year ago

1.3.5

1 year ago

1.2.6

1 year ago

1.3.4

1 year ago

1.2.5

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.9

1 year ago

1.2.0

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.5

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago