GT Commands
基本信息
| 属性 | 值 |
|---|---|
| 基类 | GTBaseCommand |
| 命令类型 | Minecraft 命令系统 |
功能
GT5 的调试和管理命令系统,提供游戏内调试功能。
基类功能
getCommandUsage()— 获取命令用法getCommandAliases()— 获取命令别名sendChatToPlayer()— 向玩家发送聊天消息isOpedPlayer()— 检查玩家是否 OPgetAllUsernames()— 获取所有在线玩家名称
常用命令(需查看具体子类)
/gt— GT 调试主命令/gtdebug— 调试功能/gtfill— 填充相关/gtremove— 移除相关
使用方式
| 命令 | 效果 | 权限 |
|---|---|---|
| /gt | GT 主命令 | OP |
| /gtdebug | 调试功能 | OP |
第三方集成
- Minecraft — CommandBase(命令系统)
- FML — FMLCommonHandler(侧边检测)