WorldModes
配置特定世界的游戏模式,允许玩家切换游戏模式,并限制从创造模式切换时物品栏的继承。
更新日志
2.4 版本增加了一个仅限控制台使用的命令,用于检查玩家的 WorldModes 权限。
2.3 版本增加了插件自动更新功能以及发送匿名使用统计的功能。这两项均为可选功能,可以通过分别在 config.yml 中添加 'settings.disable-updates' 和 'settings.disable-stats' 来关闭。
自 2.1 版本起,你不再需要在插件文件夹中放置 BaseBukkitPlugin.jar。事实上,请在升级到 2.1 或更高版本时移除此文件。WorldModes 会在检测到该库缺失或已更新时自动下载并安装它。如果你需要手动安装此 jar 包,请从 GitHub Release 目录下载并将其移动到 WorldModes 文件夹中。请勿将其安装在 plugins 文件夹中!
注意:当升级到 1.8 或更高版本时,请按以下方式更改你的权限(worldmodes.survival 和 worldmodes.creative 分别变为 worldmode.mode.survival 和 worldmodes.mode.creative)
此插件允许服务器管理员强制执行特定世界的游戏模式。插件还可以通过在从创造模式切回时恢复物品栏来为某些玩家管理物品栏。该插件非常轻量级,基于以下可针对组或玩家按世界分配的权限工作。
通用和游戏模式限制权限:
- worldmodes.*: 拥有此权限的玩家或组可以在创造模式或生存模式下执行任何操作
- worldmodes.mode.*: 拥有此权限的玩家或组可以处于创造模式或生存模式
- worldmodes.mode.creative: 拥有此权限的玩家或组只能处于创造模式
- worldmodes.mode.survival: 拥有此权限的玩家或组只能处于生存模式
- worldmodes.autoset.survival: 拥有此权限的玩家将自动切换到生存模式,无论其是否具备切换能力(注意,玩家必须拥有 'worldmodes.survival' 权限)
- worldmodes.autoset.creative: 拥有此权限的玩家将自动切换到创造模式,无论其是否具备切换能力(注意,玩家必须拥有 'worldmodes.creative' 权限)
插件根据以下权限为玩家提供 gamemode 命令:
- worldmodes.set.*: 允许玩家设置自己及其他任何人的游戏模式
- worldmodes.set.self: 允许玩家更改自己的游戏模式
- worldmodes.set.others: 允许玩家更改其他所有人的游戏模式
- worldmodes.set.<group>: 允许玩家更改该组中玩家的游戏模式
以下权限可用于在游戏模式切换时管理物品栏:
- worldmodes.drop: 允许玩家在创造模式下丢弃物品,并访问箱子和发射器
- worldmodes.keep-inventory: 允许玩家在离开创造模式时保留其物品栏
请注意,'worldmodes.drop' 权限并不能完全防止作弊,因为玩家仍可以使用工作台和熔炉。
命令用法:
- /gm : 切换你自己的游戏模式
- /gm <game mode> : 将你的游戏模式设置为指定模式
- /gm <player> : 切换玩家的游戏模式
- /gm <player> <game mode> : 将玩家的游戏模式设置为指定模式
游戏模式可按以下方式指定:
- SURVIVAL : 数字 0 或以 s 开头的任何单词
- CREATIVE: 数字 1 或以 c 开头的任何单词
实际注册的命令是 'gamemode',其别名为 'gm'、'gmt' 和 'gms'
仅限控制台的命令: gm check <player>: 输出玩家的 WorldModes 权限信息
依赖要求:
显然,你需要运行一个兼容 1.8 的 CraftBukkit 构建版本(1370 及以上版本)和一个权限插件。WorldModes 支持 Bukkit 原生权限、Permissions、PermissionsEx 和 GroupManager。
你可能还想要考虑运行一个特定世界的物品栏插件,例如 MultiInv!
如何获取帮助
WorldModes
Configure world-specific game modes, allow players to switch game modes, and restrict inventory carry-over when switching from creative mode.
Whats New?
Version 2.4 adds a console-only command to check a player's WorldModes permissions.
Version 2.3 adds the ability for the plugin to update itself and to send anonymous usage statistics. Both are optional and can be turned off by adding 'settings.disable-updates' and 'settings.disable-stats' to config.yml respectively.
As of version 2.1, you no longer need BaseBukkitPlugin.jar in your plugin folder. In fact, please remove this file when upgrading to version 2.1 or higher. WorldModes will automatically download and install this library when it detects that it is missing or has been updated. If you need to manually install the jar, download it from the github release directory and move it to the WorldModes folder. Do not install it in the plugin folder!
NOTE: When upgrading to version 1.8 or later, change your permissions as below (worldmodes.survival and worldmodes.creative become worldmode.mode.survival and worldmodes.mode.creative respectively)
This plugin allows server administrators to enforce world-specific game modes. The plugin can also manage inventories for certain players by restoring an inventory when switching back from creative mode. It is lightweight and works based on the following permissions that can be assigned for groups or players on a per-world basis.
General and game-mode restricting permissions:
- worldmodes.*: a player or groups with this permission can do anything in either creative or survival mode
- worldmodes.mode.*: players or groups with this permisison can be in either creative or survival mode
- worldmodes.mode.creative: a player or groups with this permission can only be in creative mode
- worldmodes.mode.survival: a player or groups with this permission can only be in survival mode
- worldmodes.autoset.survival: a player with this permission will automatically be switched to survival mode regardless of their ability to change it (note, the player must have 'worldmodes.survival' set)
- worldmodes.autoset.creative: a player with this permission will automatically be switched to creative mode regardless of their ability to change it (note, the player must have 'worldmodes.creative' set)
The plugin provides the gamemode command to players based on the following permissions:
- worldmodes.set.*: allows a player to set their own and anyone else's game mode
- worldmodes.set.self: allows a player to change their own game mode
- worldmodes.set.others: allows a player to change everyone else's game mode
- worldmodes.set.<group>: allows a player to change the game mode of players in that group
The following permissions can be used to manage inventories when switching between game modes:
- worldmodes.drop: allows players to drop items and to access chests and dispensers in creative mode
- worldmodes.keep-inventory: allows players to retain their inventory when switching out of creative mode
Note that the 'worldmodes.drop' permission does not fully protect from cheating as players can still use crafting benches and furnaces.
Command Usage:
- /gm : toggle your own game mode
- /gm <game mode> : set you game mode to the specified mode
- /gm <player> : toggle player's game mode
- /gm <player> <game mode> : set player's game mode to the specified mode
Game modes can be specified as follows:
- SURVIVAL : the number 0 or any word starting with s
- CREATIVE: the number 1 or any word starting with c
The actual command registered is 'gamemode' and its aliases are 'gm', 'gmt', and 'gms'
Console-only command: gm check <player>: dump a player's WorldModes permissions
Requirements:
Obviously, you need to run a 1.8 compatible CB build (1370 and above) and a permission plugin. WorldModes supports Bukkit's permissions, Permissions, PermissionsEx, and GroupManager.
You may also want to look into running a world-specific inventory plugin like MultiInv!
How to get help
下载 WorldModes
下载 WorldModes
下载 WorldModes
下载 WorldModes
下载 WorldModes
下载 WorldModes
下载 WorldModes
下载 WorldModes
下载 WorldModes
2.66
- 基础 Bukkit 版本 3.0
2.65
- 基础 Bukkit 版本 2.9
2.63
- 适配 bukkit 1.1 R5 的更新
2.6
- 适配 bukkit 1.1 R4 的更新
2.52
- 适配 bukkit 1.0.1 R2 的更新
2.4
- 新增命令用于检查玩家的 WorldModes 权限
- 使 BaseBukkitPlugin 的更新更加稳健(防错)
2.3
- 升级至 BaseBukkitPlugin 2.0 版本,该版本增加了自动更新功能
2.2
- 适配 BaseBukkitPlugin 1.8 版本 - 不再需要手动安装该 jar 包
- 再次移除了 PLAYER_RESPAWN 监听器……这很愚蠢
- 添加了 ENTITY_DEATH 监听器以移除持久化的物品栏
2.1
- 适配 BaseBukkitPlugin 1.8 版本 - 不再需要手动安装该 jar 包
- 再次移除了 PLAYER_RESPAWN 监听器……这很愚蠢
- 添加了 ENTITY_DEATH 监听器以移除持久化的物品栏
2.0
- 添加了对 PLAYER_RESPAWN 的监控
1.9
- 修复了恢复护甲时的空指针异常 (NPE)
- 将 worldmodes.{creative,survival} 更改为 worldmodes.mode.{creative,survival}
1.7
- 对默认游戏模式处理进行了小幅改进
1.6
- 新增了设置默认游戏模式的功能,即使对于可以在不同模式间切换的玩家也有效
1.5.2
- 修复了服务器启动时出现的虚假空指针异常 (NPE)
1.5.1
- 修复了玩家不属于任何组时的空指针异常 (NPE)
1.5
- 在玩家加入服务器时增加了对游戏模式权限的检查
1.4
- 新增了对创造模式下丢弃物品限制的支持
- 新增了在退出创造模式时恢复物品栏的支持
1.3.1
- 修复了空指针异常 (NPE)
- 使用 RB1185 编译并测试通过
1.3
- 实现了用于更改游戏模式的命令和权限节点
1.2
- 弃用 PLAYER_MOVE 钩子,改用 PLAYER_PORTAL
1.1
- 添加了 Bukkit 版本检查
1.0
- 初始发布
- 支持基于世界的游戏模式
由于 PermissionBukkit 中存在一个 bug,拥有生存世界出生点的玩家在创意世界中死亡后,可能会保持在创意模式。此问题已被报告,并且已提交了一个修复方案。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
插件
创建用户友好的菜单以前往不同的世界
插件
专为 Velocity 打造的自制聊天插件,功能丰富——支持跨服群组/全局/私聊消息,并集成 LibertyBans 的禁言功能。
插件
一个高度兼容、功能完善且稳定的 TPA 模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧