Merge pull request #34 from nuomiaa/patch-1

错误的拼写
This commit is contained in:
Unitwk 2022-10-03 09:17:26 +08:00 committed by GitHub
commit cfb523bb74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;