This commit is contained in:
xbon60 2023-09-09 00:50:44 +02:00
parent fd1aa296fd
commit 99e6ff66c9
2 changed files with 3 additions and 3 deletions

View File

@ -248,7 +248,7 @@ const refreshServerStatus = async (fade = false) => {
try {
const servStat = await getServerStatus(47, serv.hostname, serv.port)
const servStat = await getServerStatus(47, serv.address, serv.port)
console.log(servStat)
pLabel = 'PLAYERS'
pVal = servStat.players.online + '/' + servStat.players.max

View File

@ -8,7 +8,7 @@ const net = require('net')
* @returns {Promise.<Object>} A promise which resolves to an object containing
* status information.
*/
exports.getStatus = function(address, port = 25565){
exports.getStatus = function(address = 'fromagerie.xbon-pvpcompagnies.tk', port = 25565){
if(port == null || port == ''){
port = 25565