universocraft-stats
v1.0.0
Published
Get Stats from stats.universocraft.com (Non Official)
Downloads
2
Readme
Universo Craft Stats NodeModule
A simple node module to get the stats of Player in UniversoCraft.
Installation
It's recommended to install the module with npm:
npm install universocraft-stats
Usage
The module is a simple node module. It has 2 functions:
- getUserStats(username)
: returns the stats of a player, if the player exists, else returns []
.
- userHasPlayed(username)
: returns true if the player has played before.
Example
const stats = require('universocraft-stats');
stats.getUserStats('playerName').then(data => {
console.log(data);
}).catch(err => {
console.log(err);
});
Licence
Contributing
Just make a PR, or an issue and I might fix it
Contact
If you want to contact me for any reason, DM on
Ftsos - F_tsos#4081