类的使用
org.bukkit.permissions.Permission
-
org.bukkit.permissions中Permission的使用
修饰符和类型方法说明Adds this permission to the specified parent permission.static @NotNull Permission
Permission.loadPermission
(@NotNull String name, @NotNull Map<?, ?> data, @Nullable PermissionDefault def, @Nullable List<Permission> output) Loads a Permission from a map of data, usually used from retrieval from a yaml file.static @NotNull Permission
Loads a Permission from a map of data, usually used from retrieval from a yaml file.修饰符和类型方法说明static @NotNull List<Permission>
Permission.loadPermissions
(@NotNull Map<?, ?> data, @NotNull String error, @Nullable PermissionDefault def) Loads a list of Permissions from a map of data, usually used from retrieval from a yaml file.修饰符和类型方法说明void
Permission.addParent
(@NotNull Permission perm, boolean value) Adds this permission to the specified parent permission.boolean
Permissible.hasPermission
(@NotNull Permission perm) Gets the value of the specified permission, if set.boolean
PermissibleBase.hasPermission
(@NotNull Permission perm) boolean
Permissible.isPermissionSet
(@NotNull Permission perm) Checks if this object contains an override for the specifiedPermission
boolean
PermissibleBase.isPermissionSet
(@NotNull Permission perm) void
PermissionAttachment.setPermission
(@NotNull Permission perm, boolean value) Sets a permission to the given valuevoid
PermissionAttachment.unsetPermission
(@NotNull Permission perm) Removes the specified permission from this attachment.修饰符和类型方法说明static @NotNull Permission
Permission.loadPermission
(@NotNull String name, @NotNull Map<?, ?> data, @Nullable PermissionDefault def, @Nullable List<Permission> output) Loads a Permission from a map of data, usually used from retrieval from a yaml file. -
org.bukkit.plugin中Permission的使用
修饰符和类型方法说明PluginManager.getPermission
(@NotNull String name) 以指定的完整权限节点获取对应Permission
对象.SimplePluginManager.getPermission
(@NotNull String name) 修饰符和类型方法说明PluginManager.getDefaultPermissions
(boolean op) 获取普通玩家默认拥有的权限或op默认拥有的权限.SimplePluginManager.getDefaultPermissions
(boolean op) PluginDescriptionFile.getPermissions()
Gives the list of permissions the plugin will register at runtime, immediately proceding enabling.PluginManager.getPermissions()
获取已注册的权限的集合.SimplePluginManager.getPermissions()
修饰符和类型方法说明void
PluginManager.addPermission
(@NotNull Permission perm) 添加一个Permission
至本插件管理器.void
SimplePluginManager.addPermission
(@NotNull Permission perm) void
SimplePluginManager.addPermission
(@NotNull Permission perm, boolean dirty) 已过时。void
PluginManager.recalculatePermissionDefaults
(@NotNull Permission perm) 重新计算指定权限
的默认值.void
SimplePluginManager.recalculatePermissionDefaults
(@NotNull Permission perm) void
PluginManager.removePermission
(@NotNull Permission perm) 从本插件管理器中移除已注册的权限
.void
SimplePluginManager.removePermission
(@NotNull Permission perm) -
org.bukkit.util.permissions中Permission的使用
修饰符和类型方法说明static @NotNull Permission
DefaultPermissions.registerPermission
(@NotNull String name, @Nullable String desc) static @NotNull Permission
DefaultPermissions.registerPermission
(@NotNull String name, @Nullable String desc, @NotNull Permission parent) static @NotNull Permission
DefaultPermissions.registerPermission
(@NotNull String name, @Nullable String desc, @Nullable PermissionDefault def) static @NotNull Permission
DefaultPermissions.registerPermission
(@NotNull String name, @Nullable String desc, @Nullable PermissionDefault def, @NotNull Permission parent) static @NotNull Permission
DefaultPermissions.registerPermission
(@NotNull String name, @Nullable String desc, @Nullable PermissionDefault def, @Nullable Map<String, Boolean> children) static @NotNull Permission
DefaultPermissions.registerPermission
(@NotNull String name, @Nullable String desc, @Nullable PermissionDefault def, @Nullable Map<String, Boolean> children, @NotNull Permission parent) static @NotNull Permission
DefaultPermissions.registerPermission
(@NotNull Permission perm) static @NotNull Permission
DefaultPermissions.registerPermission
(@NotNull Permission perm, boolean withLegacy) static @NotNull Permission
DefaultPermissions.registerPermission
(@NotNull Permission perm, @NotNull Permission parent) static @NotNull Permission
BroadcastPermissions.registerPermissions
(@NotNull Permission parent) static @NotNull Permission
CommandPermissions.registerPermissions
(@NotNull Permission parent) 修饰符和类型方法说明static @NotNull Permission
DefaultPermissions.registerPermission
(@NotNull String name, @Nullable String desc, @NotNull Permission parent) static @NotNull Permission
DefaultPermissions.registerPermission
(@NotNull String name, @Nullable String desc, @Nullable PermissionDefault def, @NotNull Permission parent) static @NotNull Permission
DefaultPermissions.registerPermission
(@NotNull String name, @Nullable String desc, @Nullable PermissionDefault def, @Nullable Map<String, Boolean> children, @NotNull Permission parent) static @NotNull Permission
DefaultPermissions.registerPermission
(@NotNull Permission perm) static @NotNull Permission
DefaultPermissions.registerPermission
(@NotNull Permission perm, boolean withLegacy) static @NotNull Permission
DefaultPermissions.registerPermission
(@NotNull Permission perm, @NotNull Permission parent) static @NotNull Permission
BroadcastPermissions.registerPermissions
(@NotNull Permission parent) static @NotNull Permission
CommandPermissions.registerPermissions
(@NotNull Permission parent)