类的使用
org.bukkit.permissions.PermissionAttachment
使用PermissionAttachment的程序包
- 
org.bukkit.permissions中PermissionAttachment的使用修饰符和类型方法说明Permissible.addAttachment(@NotNull Plugin plugin) Adds a new emptyPermissionAttachmentto this objectPermissible.addAttachment(@NotNull Plugin plugin, int ticks) Temporarily adds a new emptyPermissionAttachmentto this objectPermissible.addAttachment(@NotNull Plugin plugin, @NotNull String name, boolean value) Adds a newPermissionAttachmentwith a single permission by name and valuePermissible.addAttachment(@NotNull Plugin plugin, @NotNull String name, boolean value, int ticks) Temporarily adds a newPermissionAttachmentwith a single permission by name and valuePermissibleBase.addAttachment(@NotNull Plugin plugin) PermissibleBase.addAttachment(@NotNull Plugin plugin, int ticks) PermissibleBase.addAttachment(@NotNull Plugin plugin, @NotNull String name, boolean value) PermissibleBase.addAttachment(@NotNull Plugin plugin, @NotNull String name, boolean value, int ticks) PermissionAttachmentInfo.getAttachment()Gets the attachment providing this permission.修饰符和类型方法说明voidPermissionRemovedExecutor.attachmentRemoved(@NotNull PermissionAttachment attachment) Called when aPermissionAttachmentis removed from aPermissiblevoidPermissible.removeAttachment(@NotNull PermissionAttachment attachment) Removes the givenPermissionAttachmentfrom this objectvoidPermissibleBase.removeAttachment(@NotNull PermissionAttachment attachment) 参数类型为PermissionAttachment的org.bukkit.permissions中的构造器限定符构造器说明PermissionAttachmentInfo(@NotNull Permissible permissible, @NotNull String permission, @Nullable PermissionAttachment attachment, boolean value)