Skip to content

About

Simple API pour le serveur minecraft: NationGlory

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚧 WARNING

This project is under development.
There may be bugs.

NationGlory API

A simple API for Minecraft Server: NationGlory

Installation

npm install nationglory-api@latest

Examples

Parameters

/**
* 	@param {string} player - Player Name.
* 	@param {string} dimension - Dimension of image (max: 100px, min: 16).
*/

fetchSkinPlayer
Get player's head image

fetchSkinPlayer(player, 16).then(v => console.log(v));
//https://skins.nationsglory.fr/face/player/16

getPlayer
Get player's informations

getPlayer(player).then(v => console.log(v));
/*
{
    name: 'Skanix',
    description: 'Ma Description',
    skin: 'https://skins.nationsglory.fr/face/Skanix/16',
    servers: [
        {
            server: 'orange',
            playing_time: '06:18:00',
            rank: 'Joueur',
            reputation: 'Bonne',
            country: 'Panama',
            country_rank: 'Recrue',
            powers: '10/25'
        },
    ]
    ... (all server)
}
*/

About

Simple API pour le serveur minecraft: NationGlory

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages