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!
评论 0
登录后参与评分
还没有评论,来抢沙发吧