public interface Storage
@NonNull String getName()
@Deprecated boolean isAcceptingLogins()
@Deprecated @NonNull CompletableFuture<Boolean> logAction(@NonNull LogEntry entry)
ActionLogger.submit(LogEntry).entry - the log entry to be savedNullPointerException - if entry is null@Deprecated @NonNull CompletableFuture<Log> getLog()
ActionLogger.getLog()@Deprecated @NonNull CompletableFuture<Boolean> loadUser(@NonNull UUID uuid, @Nullable String username)
UserManager.loadUser(UUID, String)uuid - the uuid of the user to loadusername - the users username, or null if it is not known.NullPointerException - if uuid is null@Deprecated default @NonNull CompletableFuture<Boolean> loadUser(@NonNull UUID uuid)
UserManager.loadUser(UUID)uuid - the uuid of the user to loadNullPointerException - if uuid is null@Deprecated @NonNull CompletableFuture<Boolean> saveUser(@NonNull User user)
UserManager.saveUser(User)You should call this after you make any changes to a user.
user - the user to saveNullPointerException - if user is nullIllegalStateException - if the user instance was not obtained from LuckPerms.@Deprecated @NonNull CompletableFuture<Set<UUID>> getUniqueUsers()
UserManager.getUniqueUsers()"Unique" meaning the user isn't just a member of the "default" group.
@Deprecated @NonNull CompletableFuture<List<HeldPermission<UUID>>> getUsersWithPermission(@NonNull String permission)
UserManager.getWithPermission(String)permission - the permission to search forNullPointerException - if the permission is null@Deprecated @NonNull CompletableFuture<Boolean> createAndLoadGroup(@NonNull String name)
GroupManager.createAndLoadGroup(String)name - the name of the groupNullPointerException - if name is nullIllegalArgumentException - if the name is invalid@Deprecated @NonNull CompletableFuture<Boolean> loadGroup(@NonNull String name)
GroupManager.loadGroup(String)name - the name of the groupNullPointerException - if name is nullIllegalArgumentException - if the name is invalid@Deprecated @NonNull CompletableFuture<Boolean> loadAllGroups()
GroupManager.loadAllGroups()@Deprecated @NonNull CompletableFuture<Boolean> saveGroup(@NonNull Group group)
GroupManager.saveGroup(Group)You should call this after you make any changes to a group.
group - the group to saveNullPointerException - if group is nullIllegalStateException - if the group instance was not obtained from LuckPerms.@Deprecated @NonNull CompletableFuture<Boolean> deleteGroup(@NonNull Group group)
GroupManager.deleteGroup(Group)group - the group to deleteNullPointerException - if group is nullIllegalStateException - if the group instance was not obtained from LuckPerms.@Deprecated @NonNull CompletableFuture<List<HeldPermission<String>>> getGroupsWithPermission(@NonNull String permission)
GroupManager.getWithPermission(String)permission - the permission to search forNullPointerException - if the permission is null@Deprecated @NonNull CompletableFuture<Boolean> createAndLoadTrack(@NonNull String name)
TrackManager.createAndLoadTrack(String)name - the name of the trackNullPointerException - if name is nullIllegalArgumentException - if the name is invalid@Deprecated @NonNull CompletableFuture<Boolean> loadTrack(@NonNull String name)
TrackManager.loadTrack(String)name - the name of the trackNullPointerException - if name is nullIllegalArgumentException - if the name is invalid@Deprecated @NonNull CompletableFuture<Boolean> loadAllTracks()
TrackManager.loadAllTracks()@Deprecated @NonNull CompletableFuture<Boolean> saveTrack(@NonNull Track track)
TrackManager.saveTrack(Track)track - the track to saveNullPointerException - if track is nullIllegalStateException - if the track instance was not obtained from LuckPerms.@Deprecated @NonNull CompletableFuture<Boolean> deleteTrack(@NonNull Track track)
TrackManager.deleteTrack(Track)track - the track to deleteNullPointerException - if track is nullIllegalStateException - if the track instance was not obtained from LuckPerms.@NonNull CompletableFuture<Boolean> saveUUIDData(@NonNull String username, @NonNull UUID uuid)
UserManager.savePlayerData(UUID, String)username - the users usernameuuid - the users mojang unique idNullPointerException - if either parameters are nullIllegalArgumentException - if the username is invalid@NonNull CompletableFuture<UUID> getUUID(@NonNull String username)
UserManager.lookupUuid(String)username - the corresponding usernameNullPointerException - if either parameters are nullIllegalArgumentException - if the username is invalid@Deprecated @NonNull CompletableFuture<String> getName(@NonNull UUID uuid)
UserManager.lookupUsername(UUID)uuid - the corresponding uuidNullPointerException - if either parameters are null@Deprecated @NonNull Executor getSyncExecutor()
This method is deprecated as plugins should create and use their own executor instances.
@Deprecated @NonNull Executor getAsyncExecutor()
This method is deprecated as plugins should create and use their own executor instances.