bPermissions
欢迎来到 bPermissions,一款适用于 Bukkit 的 Superperms 管理器!bPermissions 致力于在权限管理器中独树一帜。它设置和使用都非常简单,运行速度极快,功能齐全,并且拥有强大的支持团队!
部分特性:
- bPermissions 配备了一个专为让服务器管理变得轻而易举而设计的 GUI 客户端,其便捷程度会让你忘记曾经使用过其他任何权限插件。在这里获取!
- bPermissions 拥有独一无二的命令结构,这在权限管理器中前所未有。它非常适合用于从控制台或游戏内向用户或组添加大量节点,减少输入量!
- bPermissions 具备你期望从权限管理器中获得的一切功能。支持前缀和后缀、继承、玩家专属权限、多世界支持、晋升/降级轨道,甚至支持多组设置中的组优先级。
- 注意 - bPermissions 仅定义前缀和后缀。你需要一个聊天插件(如 bChatManager)才能让它们显示在聊天栏中。
命令
假设你有一个名为 'Bob' 的用户,你想把他放入 'admin' 组并赋予他 'awesome' 前缀。
- /world yourmainworld - 选择世界 "yourmainworld"
- /user bob - 选择用户 "bob"
- /user setgroup admin - 将 bob 的组设置为 "admin"
- /user meta prefix awesome - 将 bob 的前缀设置为 "awesome"
你也可以对组执行相同的操作!
- /world yourmainworld - 再次选择世界
- /group admin - 选择组 "admin"
- /group addgroup moderator - 使 admin 组继承自 moderator 组
- /group meta prefix &c[Admin] - 将 admin 前缀设置为 "&c[Admin]"
其他一些命令如下所示
- /permissions (或 /bperms,/bp,/p) - bPermissions 的一般命令以此作为前缀
- /permissions import pex - 导入 pex 文件夹中的 pex permissions.yml
- /permissions reload - 重新加载你的 bPermissions 文件
- /permissions save - 如果自动保存为 false,此命令会保存你的权限设置
- /permissions backup - 备份你的权限设置
- /permissions helpme - 对于你们中懒惰的人,这会向你的文件夹输出一些基本的权限文件。
为了使用这些命令,你需要 bPermissions.admin 权限节点
若要配置可定制的 /promote 和 /demote 轨道,你需要使用权限轨道。要了解相关内容,请访问此页面
想要更多命令?我们在命令页面上还有一些其他的。快去看看吧!
编辑文件
bPermissions 会在 bPermissions 文件夹中创建每个世界的 groups.yml 和 users.yml 文件,这允许你按世界为基础来配置权限。
由于 bPermissions 主要是设计为通过命令进行配置的,因此 bPermissions 经常会覆盖对这些文件的更改 尤其是当你执行 /reload 或重启服务器时。
如果你编辑了文件,你 必须使用 /permissions reload 来将修改后的文件加载到服务器中,否则权限更改不会生效。因为标准的 /reload 会像停止服务器一样卸载所有插件,我们无法区分这两种情况,这将导致用服务器最后存储的内容覆盖你对文件的更改。
世界镜像
世界镜像方式如下:
world_mirroring_to: world_mirroring_from
world_nether: world
world_the_end: world
这会复制该世界的整个配置。目前尚无法仅镜像用户或组,请等待添加了此功能的更新!
bPermissions 与 EssentialsChat
让我来解决这个问题。Essentials Chat + bPermissions 可以正常工作以显示前缀和颜色。
本指南适用于当前正在使用 EssentialsChat 并希望将其与 bPermissions 一起使用的用户。
玩家拥有彩色的等级前缀,派系聊天模式也带有颜色。玩家还可以使用诸如 &c 之类的颜色代码来为所有文本着色。
bPermissions\world\groups.yml (代码片段)
default: default
groups:
## Peasant ##
default:
permissions:
- group.default
- group.userannouncer
- group.userauction
groups:
- userannouncer
- userauction
meta:
priority: '100'
## Citizen ##
rank1:
permissions:
- group.default
- group.rank1
groups:
- default
meta:
priority: '200'
其中没有配置任何前缀,但组名称很重要(default, rank1)
Essentials\config.yml (代码片段)
change-displayname: true
#add-prefix-suffix: false
player-commands:
- chat.color
- chat.format
- chat.shout
- chat.question
chat:
radius: 0
group-formats:
default: '&8&lPeasant &r&8{DISPLAYNAME}&7:&r {MESSAGE}'
rank1: '&8&lCitizen &r&7{DISPLAYNAME}&7:&r {MESSAGE}'
moderator: '&e&l[Mod] &r&3{DISPLAYNAME}&7:&r {MESSAGE}'
admin: '&c&l[Admin] &r&e{DISPLAYNAME}&7:&r {MESSAGE}'
请将所有其他 Essentials 的支持请求导向其官方支持渠道。
如何获取支持?
首先,我们强烈建议您先阅读FAQ 页面。如果那里没有答案,还有以下几种支持选项:
- 访问 irc.esper.net 上的 #bananacode irc 频道。直接前往该频道提出问题,并等待他人协助。可能需要一段时间才能收到回复,请耐心等待!
- 您可以提交工单(ticket)。如果您没有时间在 IRC 上守候,或者有 bug 报告,推荐使用此方式。请注意,您需要定期查看工单状态,并确保在工单中附上您的 bPermissions groups 和 users yml 文件。
- 在 bPermissions 主页上留言评论。
请注意,由于目前只有一位(稍显不活跃的)维护者,任何支持请求都可能需要一些时间处理。
无论您选择哪种方式获取支持,请避免使用非正式的网络用语(“pls dont use txt spk”),并确保使用规范的语法。
我是开发者!
如果您希望将您的插件与 bPermissions 集成,请参阅开发者页面以获取更多信息!如果您希望为 bPermissions 贡献代码,请在 GitHub 上 fork 我们的项目!
现在也可以从 GitHub 下载该项目的开发构建版本。这些构建版本未经 BukkitDev 工作人员审核,可能存在 bug。使用风险自负。
bPermissions
Welcome to bPermissions, a Superperms Manager for Bukkit! bPermissions focuses on being unique from the rest of the Permission managers. It's very simple to set up and use, it's lightning fast, fully featured, and has a great support team!
Some features:
- bPermissions has a gui client specifically designed to make running a server so easy that you'll forget that you ever used any other permissions plugin. Get it here!
- bPermissions has a unique command structure, never before seen in a permission manager. It's best used for adding lots of nodes to a user or group from the console or in-game, less typing!
- bPermissions has everything you would expect from a Permissions manager. Prefix and suffix support, inheritance, per-player permissions, multiworld support, promotion/demotion tracks, and even group priorities for multi-group setups.
- Note - bPermissions only defines prefixes and suffixes. You need a chat plugin such as bChatManager for them to show up in chat.
Commands
Say you have a user called 'Bob' and you want to put him in the group 'admin' and give him the prefix 'awesome'.
- /world yourmainworld - selects the world "yourmainworld"
- /user bob - selects the user "bob"
- /user setgroup admin - set bob's group as "admin"
- /user meta prefix awesome - set bob's prefix to "awesome"
You can do the same with groups!
- /world yourmainworld - again, selects the world
- /group admin - selects the group "admin"
- /group addgroup moderator - makes the admin group inherit from the moderator group
- /group meta prefix &c[Admin] - sets the admin prefix to "&c[Admin]"
Some other commands are as follows
- /permissions (or /bperms,/bp,/p) - general commands for bPermissions are prefixed by this
- /permissions import pex - import a pex permissions.yml in the pex folder
- /permissions reload - reloads your bPermissions files
- /permissions save - if auto-save is false, this saves your perms
- /permissions backup - backup your permissions
- /permissions helpme - for the lazy among you, this spews out some basic permissions files into your folder.
In order to use these commands, you'll need the permissions node bPermissions.admin
For configurable /promote and /demote tracks, you'll want to use permissions tracks. To read about those, visit this page
Want more commands? We have some others over on the commands page. Check 'em out!
Editing Files
bPermissions creates per world groups.yml and users.yml files in the bPermissions folder, which allow you to configure permissions on a per world basis.
Because bPermissions was designed to be configured largely via commands, bPermissions will often overwrite changes to these files especially if you /reload or restart the server.
If you've edited the files, you MUST use /permissions reload to load the modified files into the server, otherwise the permissions changes won't apply. Because a standard /reload unloads all plugins like a server stop, we cannot tell the difference between them and this will overwrite changes to your files with whatever the server last stored.
World mirroring
Worlds are mirrored like so:
world_mirroring_to: world_mirroring_from
world_nether: world
world_the_end: world
This duplicates the whole config for that world. Currently there's no way to have just the users or the groups mirrored, stay tuned for an update that adds this!
bPermissions and EssentialsChat
Allow me to put this issue to bed. Essentials Chat + bPermissions works for prefix and color.
This guide is for current users of EssentialsChat and want to use bPermissions along with it.
Players have colored rank prefixes and faction chat modes are also colored. All text can be colored by the players too using color codes such as &c.
bPermissions\world\groups.yml ( code snippet )
default: default
groups:
## Peasant ##
default:
permissions:
- group.default
- group.userannouncer
- group.userauction
groups:
- userannouncer
- userauction
meta:
priority: '100'
## Citizen ##
rank1:
permissions:
- group.default
- group.rank1
groups:
- default
meta:
priority: '200'
It has nothing configured for prefix but the group names are important (default, rank1)
Essentials\config.yml ( Code Snippet )
change-displayname: true
#add-prefix-suffix: false
player-commands:
- chat.color
- chat.format
- chat.shout
- chat.question
chat:
radius: 0
group-formats:
default: '&8&lPeasant &r&8{DISPLAYNAME}&7:&r {MESSAGE}'
rank1: '&8&lCitizen &r&7{DISPLAYNAME}&7:&r {MESSAGE}'
moderator: '&e&l[Mod] &r&3{DISPLAYNAME}&7:&r {MESSAGE}'
admin: '&c&l[Admin] &r&e{DISPLAYNAME}&7:&r {MESSAGE}'
Please direct all other Essentials support to their official support networks.
How do I get support?
First, we highly recommend you go read the FAQ page. If the answer isn't there, there's a few options of support.
- Visit the #bananacode irc channel on irc.esper.net. Just head there, as your question, and wait for someone to help you. It might be a while before you get an answer, so be patient!
- You can file a ticket. This is recommended if you don't have the time to hang around in the IRC or you have a bug report. Be prepared to check back to the ticket though, and make sure you attach your bPermissions groups and users yml files to the ticket.
- Comment on the bPermissions main page.
Note that as there's only one (slightly inactive) maintainer at the moment, any support queries may take some time.
However you choose to get support, "pls dont use txt spk," and make sure you use actual grammar.
I'm a developer!
If you wish to hook your plugin into bPermissions, please see the Developer Page for more information! If you wish to contribute code to bPermissions, fork us on GitHub!
Development builds of this project can also be downloaded from GitHub now. These builds have not been approved by the BukkitDev staff, and are possibly buggy. Use them at your own risk.
评论 0
登录后参与评分
还没有评论,来抢沙发吧