你是否曾因收到 [Debug]: Unable to open game mode switcher; no permission(调试信息:无法打开游戏模式切换器;无权限)而感到烦恼?
如果是的话,这个插件正是为你准备的解决方案。
工作原理
- 如果玩家没有 OP(管理员权限)等级 2 或更高(完整 OP 为等级 4),此插件会欺骗客户端,使其认为自己拥有 OP 等级 2。这样可以在不真正授予其 OP 权限的情况下,修复客户端无法使用游戏模式切换器的问题。
- 当玩家尝试切换游戏模式时,服务器会检查其是否有权限切换到该游戏模式。如果没有权限,服务器将向玩家发送默认的“无权限”消息。
- 该插件还额外提供了如
/gmc等命令用于切换游戏模式。
换句话说:如果你拥有相应权限,游戏模式切换器将正常工作;否则,你将看到默认的错误提示。
使用示例
- 想要赋予部分玩家创造模式的权限?
给予他们fixedgamemode.creative权限,现在他们可以通过游戏模式切换器和/creative命令切换到创造模式。 - 想要允许他们更改其他玩家的游戏模式?
给予他们fixedgamemode.creative.others权限,现在他们可以通过命令将其他玩家的游戏模式更改为创造模式。
依赖要求
- Paper 或任意 Paper 分支
- 也支持 Folia 或任意 Folia 分支。
- Java 25
- 任何权限插件,例如 LuckPerms(可选)
- 已安装 PacketEvents
- 你也可以选择不安装此插件,但除非你拥有真实的 OP 权限,否则将无法通过游戏模式切换器来更改游戏模式。
命令
请查看权限部分以查找每个命令所需的权限。
| Command | Aliases | Description |
|---|---|---|
/adventure |
/gma |
将游戏模式切换为冒险模式 |
/adventure <target> |
将目标玩家的游戏模式切换为冒险模式 | |
/creative |
/gmc |
将游戏模式切换为创造模式 |
/creative <target> |
将目标玩家的游戏模式切换为创造模式 | |
/spectator |
/gmsp |
将游戏模式切换为旁观者模式 |
/spectator <target> |
将目标玩家的游戏模式切换为旁观者模式 | |
/survival |
/gms |
将游戏模式切换为生存模式 |
/survival <target> |
将目标玩家的游戏模式切换为生存模式 | |
/fixedgamemode |
/fgm |
|
/fixedgamemode reload |
重新加载插件配置 |
权限
以下所有权限默认授予 OP 玩家。
| Permission | Description |
|---|---|
fixedgamemode.adventure |
允许切换游戏模式(通过命令或游戏模式切换器) |
fixedgamemode.adventure.others |
允许切换目标玩家的游戏模式 |
fixedgamemode.creative |
允许切换游戏模式(通过命令或游戏模式切换器) |
fixedgamemode.creative.others |
允许切换目标玩家的游戏模式 |
fixedgamemode.spectator |
允许切换游戏模式(通过命令或游戏模式切换器) |
fixedgamemode.spectator.others |
允许切换目标玩家的游戏模式 |
fixedgamemode.survival |
允许切换游戏模式(通过命令或游戏模式切换器) |
fixedgamemode.survival.others |
允许切换目标玩家的游戏模式 |
fixedgamemode.command |
授予对 /fixedgamemode 命令的访问权限 |
fixedgamemode.command.reload |
允许重新加载插件配置 |
Have you ever gotten annoyed by [Debug]: Unable to open game mode switcher; no permission?
If so, this plugin is the solution for you.
How it works
- If a player doesn't have OP level 2 or greater (full OP is level 4), this plugin will trick the player into thinking they have OP level 2. This fixes their client being unable to use the game mode switcher without actually giving them OP.
- When a player tries to switch their game mode, the server will check if they have permission to change into that game mode. If they don't have permission, the server will send the default no permission message to the player.
- The plugin additionally provides commands like
/gmcto switch game mode.
In other words: the game mode switcher works normally if you have permission; otherwise, you'll see the default error message.
Example Usage
- Want to give some players permission for creative?
Give themfixedgamemode.creativepermission, and now they can toggle to creative mode with both the game mode switcher and the/creativecommand. - Want to permit them to change other players' game mode?
Give themfixedgamemode.creative.otherspermission, and now they can change other players' game mode to creative through the command.
Requirements
- Paper or any Paper fork
- Folia or any Folia fork is also supported.
- Java 25
- Any permission plugin like LuckPerms (optional)
- Have PacketEvents installed
- You can also not install this plugin, but you will not be able to change the game mode through the game mode switcher unless you have real OP.
Commands
See the Permissions section to find the required permission for each command.
| Command | Aliases | Description |
|---|---|---|
/adventure |
/gma |
Switches game mode to adventure |
/adventure <target> |
Switches the target's game mode to adventure | |
/creative |
/gmc |
Switches game mode to creative |
/creative <target> |
Switches the target's game mode to creative | |
/spectator |
/gmsp |
Switches game mode to spectator |
/spectator <target> |
Switches the target's game mode to spectator | |
/survival |
/gms |
Switches game mode to survival |
/survival <target> |
Switches the target's game mode to survival | |
/fixedgamemode |
/fgm |
|
/fixedgamemode reload |
Reloads the plugin configurations |
Permissions
All permissions below are granted to OP players by default.
| Permission | Description |
|---|---|
fixedgamemode.adventure |
Allows switching game mode (via command or the game mode switcher) |
fixedgamemode.adventure.others |
Allows switching the target's game mode |
fixedgamemode.creative |
Allows switching game mode (via command or the game mode switcher) |
fixedgamemode.creative.others |
Allows switching the target's game mode |
fixedgamemode.spectator |
Allows switching game mode (via command or the game mode switcher) |
fixedgamemode.spectator.others |
Allows switching the target's game mode |
fixedgamemode.survival |
Allows switching game mode (via command or the game mode switcher) |
fixedgamemode.survival.others |
Allows switching the target's game mode |
fixedgamemode.command |
Grants access to the /fixedgamemode command |
fixedgamemode.command.reload |
Allows reloading the plugin configurations |
下载 FixedGameMode
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FixedGameMode
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FixedGameMode
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FixedGameMode
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FixedGameMode
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FixedGameMode
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FixedGameMode
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FixedGameMode
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧