Add API method to get known permissions & improve the way PermissionDescriptions are migrated from existing Sponge services when LP enables

This commit is contained in:
Luck
2018-12-07 14:07:54 +00:00
Unverified
parent b3a028e3ca
commit 757e9d6be6
20 changed files with 116 additions and 18 deletions
@@ -40,6 +40,9 @@ import me.lucko.luckperms.api.platform.PlatformInfo;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import javafx.print.Collation;
import java.util.Collection;
import java.util.Optional;
import java.util.Set;
import java.util.UUID;
@@ -210,6 +213,14 @@ public interface LuckPermsApi {
*/
@NonNull ContextManager getContextManager();
/**
* Gets a {@link Collection} of all known permission strings.
*
* @return a collection of the known permissions
* @since 4.4
*/
@NonNull Collection<String> getKnownPermissions();
/**
* Gets the {@link NodeFactory}.
*