mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-24 03:34:22 +00:00
Initial commit
This commit is contained in:
commit
dc1e06ebce
70 files changed
+4044
No files matched your search
@@ -0,0 +1,31 @@
|
||||
package me.lucko.luckperms.groups;
|
||||
|
||||
import lombok.Getter;
|
||||
import me.lucko.luckperms.LuckPermsPlugin;
|
||||
import me.lucko.luckperms.utils.PermissionObject;
|
||||
|
||||
public class Group extends PermissionObject {
|
||||
|
||||
/**
|
||||
* The name of the group
|
||||
*/
|
||||
@Getter
|
||||
private final String name;
|
||||
|
||||
public Group(String name, LuckPermsPlugin plugin) {
|
||||
super(plugin, name);
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear all of the groups permission nodes
|
||||
*/
|
||||
public void clearNodes() {
|
||||
getNodes().clear();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getName();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user