geforkt von Mirrors/Paper
Added method to retrieve all registered permissions
By: Dinnerbone <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
Ursprung
f2110f8072
Commit
8be947f1d8
@ -242,4 +242,13 @@ public interface PluginManager {
|
||||
* @return Set containing all subscribed permissions
|
||||
*/
|
||||
public Set<Permissible> getDefaultPermSubscriptions(boolean op);
|
||||
|
||||
/**
|
||||
* Gets a set of all registered permissions.
|
||||
*
|
||||
* This set is a copy and will not be modified live.
|
||||
*
|
||||
* @return Set containing all current registered permissions
|
||||
*/
|
||||
public Set<Permission> getPermissions();
|
||||
}
|
||||
|
@ -537,4 +537,8 @@ public final class SimplePluginManager implements PluginManager {
|
||||
return ImmutableSet.copyOf(map.keySet());
|
||||
}
|
||||
}
|
||||
|
||||
public Set<Permission> getPermissions() {
|
||||
return new HashSet<Permission>(permissions.values());
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren