server
.servers() is used to get information about a specific server
Last updated
Was this helpful?
.servers() is used to get information about a specific server
Last updated
Was this helpful?
Was this helpful?
.server(Server Name / ID)
Get information about a specific player server.
Parameter
Type
Required
Description
serverName
string
true
The name of the server you want info for
Example:
// Dependencies
const CubedCraft = require('cubed-api');
// Server Details
const server = 'SERVER_NAME';
// Getting information about the server
CubedCraft.API.server(server).then(server => {
console.log(server);
})
Example Response:
{
"server": {
"id": "836deeb1fbac45a5bc37667644c306ff",
"name": "Warzone",
"owner_uuid": "f3448a69d94240a8b52cf80f950989c9",
"software": "spigot",