类的使用
org.bukkit.permissions.PermissionAttachment
使用PermissionAttachment的程序包
-
org.bukkit.permissions中PermissionAttachment的使用
修饰符和类型方法说明Permissible.addAttachment
(Plugin plugin) Adds a new emptyPermissionAttachment
to this objectPermissible.addAttachment
(Plugin plugin, int ticks) Temporarily adds a new emptyPermissionAttachment
to this objectPermissible.addAttachment
(Plugin plugin, String name, boolean value) Adds a newPermissionAttachment
with a single permission by name and valuePermissible.addAttachment
(Plugin plugin, String name, boolean value, int ticks) Temporarily adds a newPermissionAttachment
with a single permission by name and valuePermissibleBase.addAttachment
(Plugin plugin) PermissibleBase.addAttachment
(Plugin plugin, int ticks) PermissibleBase.addAttachment
(Plugin plugin, String name, boolean value) PermissibleBase.addAttachment
(Plugin plugin, String name, boolean value, int ticks) PermissionAttachmentInfo.getAttachment()
Gets the attachment providing this permission.修饰符和类型方法说明void
PermissionRemovedExecutor.attachmentRemoved
(PermissionAttachment attachment) Called when aPermissionAttachment
is removed from aPermissible
void
Permissible.removeAttachment
(PermissionAttachment attachment) Removes the givenPermissionAttachment
from this objectvoid
PermissibleBase.removeAttachment
(PermissionAttachment attachment) 参数类型为PermissionAttachment的org.bukkit.permissions中的构造器限定符构造器说明PermissionAttachmentInfo
(Permissible permissible, String permission, PermissionAttachment attachment, boolean value)