minecraft-fakeplayer/src/main/java/io/github/hello09x/fakeplayer/command/RootCommand.java
tanyaofei 455528a2fb 1. 跨世界传送添加到配置文件
2. 开放 invsee 命令
2023-07-21 14:39:55 +08:00

52 lines
1.9 KiB
Java

package io.github.hello09x.fakeplayer.command;
import io.github.hello09x.fakeplayer.command.admin.ReloadCommand;
import io.github.hello09x.fakeplayer.command.player.config.ConfigCommand;
import io.github.hello09x.fakeplayer.command.player.control.DropCommand;
import io.github.hello09x.fakeplayer.command.player.control.InvseeCommand;
import io.github.hello09x.fakeplayer.command.player.spawn.CreateCommand;
import io.github.hello09x.fakeplayer.command.player.spawn.ListCommand;
import io.github.hello09x.fakeplayer.command.player.spawn.KickCommand;
import io.github.hello09x.fakeplayer.command.player.tp.TpHereCommand;
import io.github.hello09x.fakeplayer.command.player.tp.TpSwapCommand;
import io.github.hello09x.fakeplayer.command.player.tp.TpToCommand;
import io.github.tanyaofei.plugin.toolkit.command.ParentCommand;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public class RootCommand extends ParentCommand {
public final static RootCommand instance = new RootCommand(
"假人相关命令",
null
);
static {
// spawn
instance.register("create", CreateCommand.instance);
instance.register("kick", KickCommand.instance);
instance.register("list", ListCommand.instance);
// tp
instance.register("tp", TpToCommand.instance);
instance.register("tphere", TpHereCommand.instance);
instance.register("tps", TpSwapCommand.instance);
// config
instance.register("config", ConfigCommand.instance);
// control
instance.register("drop", DropCommand.instance);
instance.register("invsee", InvseeCommand.instance);
// instance.register("attack", AttackCommand.instance);
// admin
instance.register("reload", ReloadCommand.instance);
}
protected RootCommand(@NotNull String description, @Nullable String permission) {
super(description, permission);
}
}