Adjust default CommandPermission names

This commit is contained in:
Him188 2020-08-23 19:39:59 +08:00
parent 82e47a1bf3
commit 33f6a9aff1

View File

@ -83,7 +83,7 @@ public fun interface CommandPermission {
/** /**
* 管理员 (不包含群主) 可以使用这个指令 * 管理员 (不包含群主) 可以使用这个指令
*/ */
public object Administrator : CommandPermission { public object GroupAdmin : CommandPermission {
public override fun CommandSender.hasPermission(): Boolean { public override fun CommandSender.hasPermission(): Boolean {
return this is MemberCommandSender && this.user.isAdministrator() return this is MemberCommandSender && this.user.isAdministrator()
} }