-
Notifications
You must be signed in to change notification settings - Fork 0
withValue
JblusItsMe edited this page Sep 18, 2023
·
1 revision
(async () => {
try {
console.log('Server id: ' + await api.getId());
console.log('Server name: ' + await api.getName());
console.log('Server address: ' + await api.getAddress());
console.log('Server port: ' + await api.getPort());
console.log('Server private: ' + await api.isPrivate());
console.log('Server password: ' + await api.getPassword());
console.log('Server location: ' + await api.getLocation());
console.log('Server hostname: ' + await api.getHostName());
console.log('Server is online? ' + await api.isOnline());
console.log('Server player(s): ' + await api.getPlayers());
console.log('Server max players: ' + await api.getMaxPlayers());
console.log('Server version: ' + await api.getVersion());
console.log('Server platform: ' + await api.getPlatform());
console.log('Server uptime: ' + await api.getUptime());
console.log('Server score: ' + await api.getScore());
console.log('Server rank: ' + await api.getRank());
console.log('Server vote count: ' + await api.getVoteCount());
console.log('Server favorited: ' + await api.getFavorited());
console.log('Server comments: ' + await api.getComments());
} catch(error) {
console.error(error.message);
}
})();