diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 4131e9d4..f89bed84 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,6 +1,6 @@ [//]: # (Lines in this format are considered as comments and will not be displayed.) [//]: # -[//]: # (Before reporting an issue make sure you are running the latest build of the plugin and checked for duplicate issues!) +[//]: # (Before reporting make sure you're running the **latest build** of the plugin and checked for duplicate issues!) ### What behaviour is observed: [//]: # (What happened?) @@ -15,7 +15,7 @@ [//]: # (This can be found by running `/pl`) ### Environment description -[//]: # (Standalone server/Bungeecord network with version and build number , SQLite/MySQL, ...) +[//]: # (Server software with exact version number, Minecraft version, SQLite/MySQL, ...) ### Plugin version or build number (don't write latest): [//]: # (This can be found by running `/version plugin-name`.) diff --git a/bukkit/pom.xml b/bukkit/pom.xml index ebc290a1..a9c28597 100644 --- a/bukkit/pom.xml +++ b/bukkit/pom.xml @@ -74,6 +74,7 @@ com.comphenix.protocol ProtocolLib 4.3.0 + provided @@ -81,6 +82,7 @@ ProtocolSupport a4f060dc46 + provided @@ -102,6 +104,7 @@ fr.xephi authme 5.3.2 + provided true @@ -115,6 +118,7 @@ com.lenis0012.bukkit loginsecurity 2.1.7 + provided true @@ -128,8 +132,8 @@ com.github.games647 LogIt 9e3581db27 - true provided + true * @@ -142,6 +146,7 @@ de.luricos.bukkit xAuth 2.6 + provided true diff --git a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/BungeeListener.java b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/BungeeListener.java index bd747e3d..2eec7d4d 100644 --- a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/BungeeListener.java +++ b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/BungeeListener.java @@ -14,12 +14,13 @@ import java.nio.file.Path; import java.util.Collections; import java.util.Set; import java.util.UUID; -import java.util.stream.Collectors; import org.bukkit.Bukkit; import org.bukkit.entity.Player; import org.bukkit.plugin.messaging.PluginMessageListener; +import static java.util.stream.Collectors.toSet; + /** * Responsible for receiving messages from a BungeeCord instance. * @@ -104,7 +105,7 @@ public class BungeeListener implements PluginMessageListener { return Files.lines(whitelistFile) .map(String::trim) .map(UUID::fromString) - .collect(Collectors.toSet()); + .collect(toSet()); } catch (IOException ex) { plugin.getLog().error("Failed to create file for Proxy whitelist", ex); } catch (Exception ex) { diff --git a/bungee/pom.xml b/bungee/pom.xml index c27e7429..56e37698 100644 --- a/bungee/pom.xml +++ b/bungee/pom.xml @@ -48,6 +48,7 @@ me.vik1395 BungeeAuth 1.4 + provided * diff --git a/core/pom.xml b/core/pom.xml index 3b77e3bc..f68cc10c 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -38,6 +38,7 @@ 1.7.25 + com.google.code.gson gson diff --git a/core/src/main/java/com/github/games647/fastlogin/core/shared/FastLoginCore.java b/core/src/main/java/com/github/games647/fastlogin/core/shared/FastLoginCore.java index d5c864fe..af862f0d 100644 --- a/core/src/main/java/com/github/games647/fastlogin/core/shared/FastLoginCore.java +++ b/core/src/main/java/com/github/games647/fastlogin/core/shared/FastLoginCore.java @@ -22,13 +22,15 @@ import java.util.Set; import java.util.UUID; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; -import java.util.function.Function; -import java.util.stream.Collectors; import net.md_5.bungee.config.Configuration; import net.md_5.bungee.config.ConfigurationProvider; import net.md_5.bungee.config.YamlConfiguration; +import static java.util.function.Function.identity; +import static java.util.stream.Collectors.toList; +import static java.util.stream.Collectors.toMap; + /** * @param

GameProfile class * @param CommandSender @@ -63,7 +65,7 @@ public class FastLoginCore

> { messages.getKeys() .stream() .filter(key -> messages.get(key) != null) - .collect(Collectors.toMap(Function.identity(), messages::get)) + .collect(toMap(identity(), messages::get)) .forEach((key, message) -> { String colored = CommonUtil.translateColorCodes((String) message); if (!colored.isEmpty()) { @@ -77,7 +79,7 @@ public class FastLoginCore

> { List ipAddresses = config.getStringList("ip-addresses"); int requestLimit = config.getInt("mojang-request-limit"); List proxyList = config.get("proxies", new ArrayList<>()); - List proxies = proxyList.stream().map(HostAndPort::fromString).collect(Collectors.toList()); + List proxies = proxyList.stream().map(HostAndPort::fromString).collect(toList()); this.apiConnector = plugin.makeApiConnector(ipAddresses, requestLimit, proxies); } diff --git a/pom.xml b/pom.xml index 0c0c34ef..f90a5cb3 100644 --- a/pom.xml +++ b/pom.xml @@ -41,7 +41,7 @@ pl.project13.maven git-commit-id-plugin - 2.2.3 + 2.2.4 false