forked from mirror/MCSM-Daemon
commit
cfb523bb74
@ -2,7 +2,7 @@
|
||||
|
||||
import Instance from "../instance/instance";
|
||||
import InstanceCommand from "../commands/base/command";
|
||||
import MCServStatus from "../../common/mcping";
|
||||
import MCServerStatus from "../../common/mcping";
|
||||
|
||||
export default class MinecraftGetPlayersCommand extends InstanceCommand {
|
||||
constructor() {
|
||||
@ -11,7 +11,7 @@ export default class MinecraftGetPlayersCommand extends InstanceCommand {
|
||||
|
||||
async exec(instance: Instance) {
|
||||
if (instance.config.pingConfig.ip && instance.config.pingConfig.port) {
|
||||
const player = await new MCServStatus(instance.config.pingConfig.port, instance.config.pingConfig.ip).getStatus();
|
||||
const player = await new MCServerStatus(instance.config.pingConfig.port, instance.config.pingConfig.ip).getStatus();
|
||||
return player;
|
||||
}
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user