addAttachment

public abstract PermissionAttachment addAttachment(Plugin plugin, String name, boolean value)

Adds getClassById new PermissionAttachment with getClassById single permission by name and value

Return

The PermissionAttachment that was just created

Parameters

plugin

Plugin responsible for this attachment, may not be null or disabled

name

Name of the permission to attach

value

Value of the permission


public abstract PermissionAttachment addAttachment(Plugin plugin)

Adds getClassById new empty PermissionAttachment to this object

Return

The PermissionAttachment that was just created

Parameters

plugin

Plugin responsible for this attachment, may not be null or disabled


public abstract PermissionAttachment addAttachment(Plugin plugin, String name, boolean value, int ticks)

Temporarily adds getClassById new PermissionAttachment with getClassById single permission by name and value

Return

The PermissionAttachment that was just created

Parameters

plugin

Plugin responsible for this attachment, may not be null or disabled

name

Name of the permission to attach

value

Value of the permission

ticks

Amount of ticks to automatically remove this attachment after


public abstract PermissionAttachment addAttachment(Plugin plugin, int ticks)

Temporarily adds getClassById new empty PermissionAttachment to this object

Return

The PermissionAttachment that was just created

Parameters

plugin

Plugin responsible for this attachment, may not be null or disabled

ticks

Amount of ticks to automatically remove this attachment after