DMRP - Minecraft 角色扮演插件
简介
DMRP 是一款旨在增强服务器角色扮演体验的 Minecraft 插件。它引入了新的命令和机制,可用于创建沉浸式的角色扮演场景。该插件兼容运行 Spigot 或 Bukkit 的 Minecraft 服务器。
功能
- 玩家束缚:允许玩家使用牵引绳互相束缚。
- 背包锁定:允许锁定和解锁玩家的背包,防止他们通过链条移动物品。
- 骰子命令:允许玩家投掷指定面数的骰子。玩家可以同时投掷单个或多个骰子。
- 尝试命令:给予玩家在指定行动中成功的自定义概率。这可用于各种角色扮演场景。
- 抛硬币命令:模拟抛硬币,有 50/50 的概率正面或反面朝上。
- 重载命令:重新加载插件的配置文件,使更改生效而无需重启服务器。
- 支持 PlaceholderAPI:如果已安装,DMRP 可以使用占位符进一步自定义消息。
- 支持 MiniMessages:DMRP 可以使用 MiniMessages 格式进一步自定义消息。
- 自定义占位符:引入新的自定义占位符,允许服务器管理员动态显示插件特定的数据,例如玩家状态。
- 自动更新:自动检查插件更新。
查看命令展示:
安装
- 从 Modrinth 或 GitHub 仓库 下载 DMRP 的最新版本。
- 从 Modrinth 或其他来源下载 PacketEvents 的最新版本。
- 将下载的
.jar 文件放入服务器的 plugins 目录中。
- 重启服务器以加载插件。
配置
DMRP 使用两个配置文件:config.yaml 和 language.yaml。这些文件位于插件目录下的 plugins/DMRP/ 中。
config.yaml:包含设置,如最大骰子面数和束缚距离。
language.yaml:包含插件使用的消息,可根据您的服务器主题进行自定义。
命令
- /rp-reload:重新加载插件的配置文件。
- /try {要尝试的内容}:以配置的成功率尝试指定的行动。
- /dice {数量} {面数}:投掷指定数量和面数的骰子。
- /coinflip:模拟抛硬币,成功率为 50/50。
- /lockinv {玩家}:锁定或解锁指定玩家的背包。
- /leash {玩家}:束缚/解除对玩家的束缚。
自定义占位符
DMRP 引入了自定义占位符,允许服务器管理员动态显示插件特定的数据。这些占位符可以与 PlaceholderAPI 配合使用,以增强角色扮演体验。以下是每个占位符的描述:
这些占位符可以在 language.yaml 文件中进行自定义,以符合您的服务器主题并增强沉浸感。
权限
DMRP 使用权限系统来控制对其命令的访问。默认情况下,所有命令(除 /rp-reload 外)均对所有用户受限。您可以在服务器的 permissions.yml 文件中自定义这些权限。
权限节点
-
dmrp.command.*:授予所有 DMRP 命令的访问权限。
-
dmrp.command.reload:访问权限以重载插件配置。
-
dmrp.command.try:访问 /try 命令的权限。
-
dmrp.command.dice:访问 /dice 命令的权限。
-
dmrp.command.coinflip:访问 /coinflip 命令的权限。
-
dmrp.command.lockinv:访问 /lockinv 命令的权限。
-
dmrp.command.leash:访问 /leash 命令的权限。
-
dmrp.leash.use:允许玩家束缚他人。
-
dmrp.leash.can:允许玩家被束缚。
-
dmrp.leash.admin:授予解除您不拥有的玩家束缚的权限。
-
dmrp.lock.use:授予锁定玩家背包的权限。
-
dmrp.lock.can:允许玩家被锁定背包。
-
dmrp.lock.admin:授予解锁您不拥有的背包的权限。
支持
如果遇到任何问题或有改进建议,请在 GitHub 仓库 上提交 Issue。
贡献
欢迎为 DMRP 做出贡献!如果您希望参与贡献,请 Fork 该仓库,进行修改后提交 Pull Request。
许可证
DMRP 采用 BSD-3 许可证授权。更多详细信息请参阅 LICENSE.md 文件。
DMRP - Role Play Plugin for Minecraft
Introduction
DMRP is a Minecraft plugin designed to enhance role-playing experiences on your server. It introduces new commands and mechanics that can be used to create immersive role-playing scenarios. This plugin is compatible with Minecraft servers running Spigot or Bukkit.
Features
- Player Leash: Allow players to leash each other using a leash.
- Inventory Lock: Allows locking and unlocking of player inventories, preventing them from moving items using a chain.
- Dice Command: Allows players to throw dice with a specified number of sides. Players can throw a single die or multiple dice at once.
- Try Command: Gives players a customizable chance to succeed in a specified action. This can be used for various role-playing scenarios.
- Coin flip Command: Simulates a coin flip with a 50/50 chance of landing on heads or tails.
- Reload Command: Reloads the plugin's configuration files, allowing changes to take effect without restarting the server.
- Support for PlaceholderAPI: If installed, DMRP can use placeholders to customize messages further.
- Support for MiniMassages: DMRP can use MiniMassages format to customize messages further.
- Custom Placeholders: Introduces new custom placeholders that allow server administrators to dynamically display plugin-specific data, such as player state.
- Auto Update: Automatically checks for plugin updates.
See command showcase on:
Installation
- Download the latest version of DMRP from the Modrinth or GitHub repository.
- Download the latest version of PacketEvents from the Modrinth or other source
- Place the downloaded
.jar file into your server's plugins directory.
- Restart your server to load the plugin.
Configuration
DMRP uses two configuration files: config.yaml and language.yaml. These files are located in the plugin's directory under plugins/DMRP/.
config.yaml: Contains settings such as the maximum dice sides, and leash distance.
language.yaml: Contains messages used by the plugin, which can be customized to fit your server's theme.
Commands
- /rp-reload: Reloads the plugin's configuration files.
- /try {what to try}: Attempts a specified action with a configured chance of success.
- /dice {amount} {sides}: Throws a specified number of dice with a specified number of sides.
- /coinflip: Simulates a coin flip with a 50/50 chance.
- /lockinv {player}: Locks or unlocks the inventory of a specified player.
- /leash {player}: Leashes/unleashes a player.
Custom Placeholders
DMRP introduces custom placeholders that allow server administrators to dynamically display plugin-specific data. These placeholders can be used with PlaceholderAPI to enhance the role-playing experience. Below is a description of each placeholder:
These placeholders can be customized in the language.yaml file to fit your server's theme and enhance immersion.
Permissions
DMRP uses a permission system to control access to its commands. By default, all commands (except /rp-reload) are restricted to all users. You can customize these permissions in your server's permissions.yml file.
Permission Nodes
-
dmrp.command.*: Gives access to all DMRP commands.
-
dmrp.command.reload: Access to reload the plugin configuration.
-
dmrp.command.try: Access to the /try command.
-
dmrp.command.dice: Access to the /dice command.
-
dmrp.command.coinflip: Access to the /coinflip command.
-
dmrp.command.lockinv: Access to the /lockinv command.
-
dmrp.command.leash: Access to the /leash command.
-
dmrp.leash.use: Allows players to leash others.
-
dmrp.leash.can: Allows players to be leashed.
-
dmrp.leash.admin: Gives access to unleash players that you don't own.
-
dmrp.lock.use: Gives access to lock players inventories.
-
dmrp.lock.can: Allows players to be inventory locked.
-
dmrp.lock.admin: Gives access to unlock inventories that you don't own.
Support
If you encounter any issues or have suggestions for improvements, please open an issue on the GitHub repository.
Contributing
Contributions to DMRP are welcome! If you'd like to contribute, please fork the repository, make your changes, and submit a pull request.
License
DMRP is licensed under the BSD-3 License. See the LICENSE.md file for more details.
评论 0
登录后参与评分
还没有评论,来抢沙发吧