From 23df8a2df84f8c36225ad45901063696e45dd7b7 Mon Sep 17 00:00:00 2001 From: Luck Date: Sun, 4 Sep 2016 16:24:36 +0100 Subject: [PATCH] Some small fixes --- api/src/main/java/me/lucko/luckperms/api/LogEntry.java | 1 + api/src/main/java/me/lucko/luckperms/api/Node.java | 1 + api/src/main/java/me/lucko/luckperms/api/UuidCache.java | 1 + bungee/pom.xml | 4 ++++ common/src/main/java/me/lucko/luckperms/LuckPermsPlugin.java | 1 - .../me/lucko/luckperms/api/implementation/ApiProvider.java | 2 +- 6 files changed, 8 insertions(+), 2 deletions(-) diff --git a/api/src/main/java/me/lucko/luckperms/api/LogEntry.java b/api/src/main/java/me/lucko/luckperms/api/LogEntry.java index eee66ee3a..f8c857c42 100644 --- a/api/src/main/java/me/lucko/luckperms/api/LogEntry.java +++ b/api/src/main/java/me/lucko/luckperms/api/LogEntry.java @@ -27,6 +27,7 @@ import java.util.UUID; /** * Represents a single entry in a log */ +@SuppressWarnings({"unused", "WeakerAccess"}) public class LogEntry implements Comparable { public static LogEntryBuilder builder() { return new LogEntryBuilder(); diff --git a/api/src/main/java/me/lucko/luckperms/api/Node.java b/api/src/main/java/me/lucko/luckperms/api/Node.java index 60378552f..faa299274 100644 --- a/api/src/main/java/me/lucko/luckperms/api/Node.java +++ b/api/src/main/java/me/lucko/luckperms/api/Node.java @@ -32,6 +32,7 @@ import java.util.Optional; *

Use {@link LuckPermsApi#buildNode(String)} to get an instance. * @since 1.6 */ +@SuppressWarnings("unused") public interface Node extends Map.Entry { /** diff --git a/api/src/main/java/me/lucko/luckperms/api/UuidCache.java b/api/src/main/java/me/lucko/luckperms/api/UuidCache.java index a7c67ec43..30b26b295 100644 --- a/api/src/main/java/me/lucko/luckperms/api/UuidCache.java +++ b/api/src/main/java/me/lucko/luckperms/api/UuidCache.java @@ -35,6 +35,7 @@ import java.util.UUID; * *

WARNING: THIS IS ONLY EFFECTIVE FOR ONLINE PLAYERS. USE THE DATASTORE METHODS FOR OFFLINE PLAYERS. */ +@SuppressWarnings("unused") public interface UuidCache { /** diff --git a/bungee/pom.xml b/bungee/pom.xml index e89cc19f4..05b3f5505 100644 --- a/bungee/pom.xml +++ b/bungee/pom.xml @@ -65,6 +65,10 @@ org.h2 me.lucko.luckperms.lib.h2 + + org.sqlite + me.lucko.luckperms.lib.sqlite + diff --git a/common/src/main/java/me/lucko/luckperms/LuckPermsPlugin.java b/common/src/main/java/me/lucko/luckperms/LuckPermsPlugin.java index f50880dca..3be248b7e 100644 --- a/common/src/main/java/me/lucko/luckperms/LuckPermsPlugin.java +++ b/common/src/main/java/me/lucko/luckperms/LuckPermsPlugin.java @@ -65,7 +65,6 @@ public interface LuckPermsPlugin { */ String getVersion(); - /** * @return the platform type */ diff --git a/common/src/main/java/me/lucko/luckperms/api/implementation/ApiProvider.java b/common/src/main/java/me/lucko/luckperms/api/implementation/ApiProvider.java index 0eef54727..f2f66e2d2 100644 --- a/common/src/main/java/me/lucko/luckperms/api/implementation/ApiProvider.java +++ b/common/src/main/java/me/lucko/luckperms/api/implementation/ApiProvider.java @@ -39,7 +39,7 @@ import java.util.stream.Collectors; import static me.lucko.luckperms.api.implementation.internal.Utils.checkNode; /** - * Provides static access to LuckPerms + * Implements the LuckPerms API using the plugin instance */ @AllArgsConstructor public class ApiProvider implements LuckPermsApi {