该插件允许你为受信任的管理员提供特殊权限,使其能够直接在游戏内修改配置文件,而无需授予其 FTP 访问权限。你可以选择特定的文件夹和/或文件。你也可以仅授予查看文件/文件夹的权限,而不允许玩家修改文件内容。权限是基于每个玩家单独分配的。
文件和编辑权限管理过程均通过图形用户界面(GUI)完成,无需使用命令。
所有可见元素均可配置,包括消息、GUI 界面和物品。
该插件支持从 1.8 开始的所有版本,除非发生影响库存/物品处理的大规模 API 变更,否则它将在未来版本中继续正常工作,无需我进行更新。请在要求我更新插件之前,在最新版本上测试该插件。
GUI 提供了多种模板。插件会自动为你的服务器版本选择最佳模板。如果你使用的是较旧版本,在安装插件时需要进行一些最小化的修改,只需对 config.yml 进行少量更改即可。某些特殊字符在旧版本中不可用。
命令/权限:
- /editorreload: 重新加载配置文件
- /editfiles: 如果玩家可以查看或至少编辑一个文件,则打开编辑器 GUI
- /editorperm {player}: 为目标玩家打开权限分配编辑器
- /editorperm {player} *: 赋予目标对所有当前文件的查看权限
- /editorperm {player} **: 赋予目标对所有当前文件的编辑权限
- /editorperm {player} -*: 移除该玩家的所有文件权限
- /editorperm {player} onlySeeAvailable: 为目标打开权限分配编辑器,但仅显示目标可以查看或编辑的文件
- 除 /editfiles 外的所有命令均需以下权限:fileeditor.admin
- 如果你拥有 fileeditor.admin 权限,你将自动获得编辑所有现有文件的权限。
未来计划
如果该插件运行良好,我会继续对其进行更新。我目前有一些想法,可能用于未来的更新:
- 实现用于编辑和添加列表、位置和物品的逻辑。
- 添加清空文件、删除文件、重命名文件的按钮
- 增加编辑 .txt、.properties、.json 等文件的能力
- 添加用于软重载和硬重载插件的按钮,并附带特殊权限。软重载使用插件内置的重载命令,而硬重载则完全卸载并重新加载插件。
- 添加从磁盘卸载/加载插件的按钮,并附带特殊权限。
- 改进配置部分的描述(lore),以包含前几个变量值的预览。
- 也许赋予用户编辑服务器所有文件的能力?例如 /plugins/ 文件夹之外的文件
- 为破坏性操作创建确认屏幕
- 创建记录系统,跟踪与此插件相关的每一个操作
- 用户建议
联系方式
请勿在插件页面报告错误或提供建议。我不会阅读它们。我很少登录此处上传/更新插件。请通过 Discord 联系我:balustrada
The plugin allows you to give special access to trusted staff members to modify config files directly in-game without giving them access to FTP. You can choose the folder and/or files. You can also just give viewing permission to files/folders without allowing players to modify the contents of the files. Permissions are given on a per-player basis.
Both the file editing and permission management processes are handled through a GUI, no commands needed.
Everything visible is configurable, including messages, guis, items.
The plugin supports all versions from 1.8+, and unless there is a massive API change affecting inventory/item handling, it will continue to work on future versions without requiring updates from me. Please test the plugin on the latest version before asking me to update it.
There are multiple templates for the GUIs. The plugin will choose the best one for your server version. If you're on older versions, you will need to do a few minimal modifications when you install the plugin, just some small changes in the config.yml. Some special characters aren't available on older versions.
Commands/Permissions:
- /editorreload: Reloads the config
- /editfiles: Opens the editor GUI if the player can see or edit at least one file
- /editorperm {player}: Opens the permission giving editor for the target
- /editorperm {player} *: Gives the target view permission for all current files
- /editorperm {player} **: Gives the target edit permission for all current files
- /editorperm {player} -*: Removes all file permissions from the player
- /editorperm {player} onlySeeAvailable: Opens the permission giving editor for the target but only shows files the target can view or edit
- All commands except /editfiles require the following permission: fileeditor.admin
- If you have the fileeditor.admin permission, you automatically have permission to edit all existing files.
Plans for the future
If the plugin does well, I'll continue updating it. A few ideas that I have in mind for possible future updates:
- Implementing the list, location and item logic for editing and adding.
- Adding buttons that clear the file, delete the file, rename the file
- Adding the ability to edit files such as .txt, .properties, .json, etc.
- Adding buttons for soft and hard plugin reloads, with special permissions. A soft reload uses the plugin’s built-in reload commands, while a hard reload unloads and reloads the plugin completely.
- Adding buttons to unload/load plugins from disk, with special permissions.
- Improving the configuration section’s lore to include a preview of the first few variable values.
- Maybe giving users the ability to edit all files from the server? Such as those outside the /plugins/ folder
- Creating a confirmation screen for destructive actions
- Creating a logging system that keeps track of every action related to this plugin
- User suggestions
Contact
Do not report bugs or offer suggestions on the plugin page. I won't read them. I only log in here to upload/update plugins once in a blue moon. Contact me on Discord instead: balustrada
评论 0
登录后参与评分
还没有评论,来抢沙发吧