Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

all-minecraft

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

all-minecraft

## Installation

  • 1.0.14
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
28
decreased by-22.22%
Maintainers
1
Weekly downloads
 
Created
Source

Discord NPM

all-minecraft

Installation

# NPM
npm install --save all-minecraft

# Yarn
yarn add all-minecraft

Usage

// ES5
const allMinecraft = require("all-minecraft");

// ES6
import allMinecraft from "all-minecraft";

Server Information

MinecraftServerInfo.serverInfo
const { MinecraftServerInfo } = require("all-minecraft");
const server = new MinecraftServerInfo({
  serverIp: "pika.host",
});
server.serverInfo().then(console.log);
Expected Output
MinecraftServerInfo.query
const server = new MinecraftServerInfo({
  serverIp: "lobby.freecraft.eu",
  queryPort: 25555,
});
server.query().then(console.log);
Expected Output
Others
const server = new MinecraftServerInfo({
  serverIp: "darklegacymc.tk",
});
console.log("Favicon: " + server.favicon());
console.log("Banner: " + server.getBannerURL({ title: "DarkLegacyMC" }));
console.log("IP: " + server.getServerIp);
console.log("Port: " + server.getServerPort);
Expected Output

Player Information

MinecraftPlayerInfo.getHead
const { MinecraftPlayerInfo } = require("all-minecraft");
const player = new MinecraftPlayerInfo({
  usernameOrUUID: "mallusrgreat",
});
console.log(
  player.getHead({
    extension: "png",
    helm: false,
    size: 100,
    facing: "left", // Facing is only for isometric
  })
);
Expected Output
MinecraftPlayerInfo.getSkin
console.log(
  player.getSkin({
    extension: "png",
    helm: false,
    size: 100,
    facing: "left", // Facing is only for isometric version
  })
);
Expected Output
MinecraftPlayerInfo.getPlayerInfo
player.getPlayerInfo().then(console.log);
Expected Output
Other
console.log("Username / UUID Specified in constructor: " + player.getUsernameOrUUID);
Expected Output

That's it! You're done

Keywords

FAQs

Package last updated on 10 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc