public static class MetadataSpigotExtension.Permission extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MetadataSpigotExtension.Permission.Child |
| Modifier and Type | Method and Description |
|---|---|
eu.hexagonmc.spigot.annotation.meta.PluginPermission |
build()
Builds a
PluginPermission of this extension. |
void |
child(String name)
Adds a child to this permission.
|
void |
child(String name,
Boolean value)
Adds a child to this permission.
|
void |
child(String name,
groovy.lang.Closure<?> closure)
Adds a child to this permission.
|
Set<MetadataSpigotExtension.Permission.Child> |
childs()
Gets the childs set for this permission.
|
void |
childs(groovy.lang.Closure<?> closure)
Sets the childs of this permission.
|
String |
description()
Gets the description set for this permission.
|
void |
description(Object description)
Sets the description of this permission.
|
String |
getName()
Gets the name set for this permission.
|
String |
name()
Gets the name set for this permission.
|
eu.hexagonmc.spigot.annotation.meta.PermissionDefault |
value()
Gets the default value set for this permission.
|
void |
value(Object value)
Sets the default value of this permission.
|
public String name()
public String getName()
public void description(Object description)
description - The description to setpublic String description()
public void value(Object value)
value - The default value to setpublic eu.hexagonmc.spigot.annotation.meta.PermissionDefault value()
public void childs(groovy.lang.Closure<?> closure)
Closure.closure - The Closure with childspublic Set<MetadataSpigotExtension.Permission.Child> childs()
public void child(String name)
name - The name of the childpublic void child(String name, Boolean value)
name - The name of the childvalue - The value of the childpublic void child(String name, groovy.lang.Closure<?> closure)
Closure.name - The name of the childclosure - The Closure of the childpublic eu.hexagonmc.spigot.annotation.meta.PluginPermission build()
PluginPermission of this extension.PluginPermission