类的使用
org.bukkit.permissions.PermissionAttachment
-
org.bukkit.permissions中PermissionAttachment的使用
修饰符和类型方法说明Permissible.addAttachment
(@NotNull Plugin plugin) Adds a new emptyPermissionAttachment
to this objectPermissible.addAttachment
(@NotNull Plugin plugin, int ticks) Temporarily adds a new emptyPermissionAttachment
to this objectPermissible.addAttachment
(@NotNull Plugin plugin, @NotNull String name, boolean value) Adds a newPermissionAttachment
with a single permission by name and valuePermissible.addAttachment
(@NotNull Plugin plugin, @NotNull String name, boolean value, int ticks) Temporarily adds a newPermissionAttachment
with 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.修饰符和类型方法说明void
PermissionRemovedExecutor.attachmentRemoved
(@NotNull PermissionAttachment attachment) Called when aPermissionAttachment
is removed from aPermissible
void
Permissible.removeAttachment
(@NotNull PermissionAttachment attachment) Removes the givenPermissionAttachment
from this objectvoid
PermissibleBase.removeAttachment
(@NotNull PermissionAttachment attachment) 限定符构造器说明PermissionAttachmentInfo
(@NotNull Permissible permissible, @NotNull String permission, @Nullable PermissionAttachment attachment, boolean value)