meow
This commit is contained in:
parent
6221a58062
commit
4a81455f96
@ -143,6 +143,7 @@ export default class Server {
|
|||||||
|
|
||||||
const serverPing = new javaPing.MinecraftServer(ip, port);
|
const serverPing = new javaPing.MinecraftServer(ip, port);
|
||||||
|
|
||||||
|
// todo: do something to get the latest protocol? (is this even needed??)
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
serverPing.ping(Config.pinger.timeout, 765, (err, res) => {
|
serverPing.ping(Config.pinger.timeout, 765, (err, res) => {
|
||||||
if (err || res == undefined) {
|
if (err || res == undefined) {
|
||||||
|
Loading…
Reference in New Issue
Block a user