aeea
This commit is contained in:
parent
fd1aa296fd
commit
99e6ff66c9
@ -248,7 +248,7 @@ const refreshServerStatus = async (fade = false) => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
const servStat = await getServerStatus(47, serv.hostname, serv.port)
|
const servStat = await getServerStatus(47, serv.address, serv.port)
|
||||||
console.log(servStat)
|
console.log(servStat)
|
||||||
pLabel = 'PLAYERS'
|
pLabel = 'PLAYERS'
|
||||||
pVal = servStat.players.online + '/' + servStat.players.max
|
pVal = servStat.players.online + '/' + servStat.players.max
|
||||||
|
@ -8,7 +8,7 @@ const net = require('net')
|
|||||||
* @returns {Promise.<Object>} A promise which resolves to an object containing
|
* @returns {Promise.<Object>} A promise which resolves to an object containing
|
||||||
* status information.
|
* status information.
|
||||||
*/
|
*/
|
||||||
exports.getStatus = function(address, port = 25565){
|
exports.getStatus = function(address = 'fromagerie.xbon-pvpcompagnies.tk', port = 25565){
|
||||||
|
|
||||||
if(port == null || port == ''){
|
if(port == null || port == ''){
|
||||||
port = 25565
|
port = 25565
|
||||||
|
Loading…
Reference in New Issue
Block a user