From 881b2ec7bc7020caa286214d0f0a856351b339b8 Mon Sep 17 00:00:00 2001 From: games647 Date: Sat, 15 Apr 2017 09:42:17 +0200 Subject: [PATCH] Fix changelog markdown syntax --- CHANGELOG.md | 64 +++++++++---------- .../bukkit/listener/BungeeCordListener.java | 4 +- 2 files changed, 33 insertions(+), 35 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d434f3a4..f33bf715 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -######1.10 +### 1.10 * Automatically register accounts if they are not in the auth plugin database but in the FastLogin database * Update BungeeAuth dependency and use the new API. Please update your plugin if you still use the old one. @@ -8,7 +8,7 @@ * Fix timestamp parsing in newer versions of SQLite * Fix Spigot console command invocation sends result to ingame players -######1.9 +### 1.9 * Added second attempt login -> cracked login * Added cracked whitelist (switch-mode -> switching to online-mode from offlinemode) @@ -27,7 +27,7 @@ * Drop support for LoginSecurity 1.X since 2.X seems to be stable * Remove the nasty UltraAuth fakeplayer workaround by using a new api method. You should UltraAuth if you have it -######1.8 +### 1.8 * Added autoIn importer * Added BFA importer @@ -36,12 +36,12 @@ * Fix ProtocolSupport BungeeCord * Fix duplicate logins for BungeeAuth users -######1.7.1 +### 1.7.1 * Fix BungeeCord autoRegister (Fixes #46) * Fix protocollsupport autoregister -######1.7 +### 1.7 * Added support for making requests to Mojang from different IPv4 addresses * Added us.mcapi.com as third-party APIs to workaround rate-limits @@ -54,15 +54,15 @@ * Fix setting skin on Cauldron * Fix saving on name change -######1.6.2 +### 1.6.2 * Fixed support for new LoginSecurity version -######1.6.1 +### 1.6.1 * Fix message typo in BungeeCord which created a NPE if premium-warning is activated -######1.6 +### 1.6 * Add a warning message if the user tries to invoke the premium command * Added missing translation if the server isn't fully started @@ -73,34 +73,34 @@ * Fixed cracked command not working on BungeeCord * Fix error if forward skins is disabled -######1.5.2 +### 1.5.2 * Fixed BungeeCord force logins if there is a lobby server * Removed cache expire in BungeeCord * Applies skin earlier to make it visible for other plugins listening on login events -######1.5.1 +### 1.5.1 * Fixed BungeeCord support by correctly saving the proxy ids -######1.5 +### 1.5 * Added localization * Fixed NPE on premium name check if it's pure cracked player * Fixed NPE in BungeeCord on cracked login for existing players * Fixed saving of existing cracked players -######1.4 +### 1.4 * Added Bungee setAuthPlugin method * Added nameChangeCheck * Multiple BungeeCord support -######1.3.1 +### 1.3.1 * Prevent thread create violation in BungeeCord -######1.3 +### 1.3 * Added support for AuthMe 3.X * Fixed premium logins if the server is not fully started @@ -109,11 +109,11 @@ * Fixed 1.7 Minecraft support by removing guava 11+ only features -> Cauldron support * Fixed BungeeCord support in Cauldron -######1.2.1 +### 1.2.1 * Fix premium status change notification message on BungeeCord -######1.2 +### 1.2 * Fix race condition in BungeeCord * Fix dead lock in xAuth @@ -121,20 +121,20 @@ * Added API methods for plugins to set their own auth plugin hook => Added support for AdvancedLogin -######1.1 +### 1.1 * Make the configuration options also work under BungeeCord (premiumUUID, forwardSkin) * Catch configuration loading exception if it's not spigot build * Fix config loading for older Spigot builds -######1.0 +### 1.0 * Massive refactor to handle errors on force actions safely * force Methods now runs async too * force methods now returns a boolean to reflect if the method was successful * isRegistered method should now throw an exception if the plugin was unable to query the requested data -######0.8 +### 0.8 * Fixed BungeeCord support for the Bukkit module * Added database storage to save the premium state @@ -142,7 +142,7 @@ * Fixed issues with host lookup from hosts file (Thanks to @NorbiPeti) * Remove handshake listener because it creates errors on some systems -######0.7 +### 0.7 * Added BungeeAuth support * Added /premium [player] command with optional player parameter @@ -155,12 +155,12 @@ * Fixed BungeeCord support * Changed config option autologin to autoregister to clarify the usage -######0.6 +### 0.6 * Fixed 1.9 bugs * Added UltraAuth support -######0.5 +### 0.5 * Added unpremium command * Added autologin - See config @@ -172,34 +172,34 @@ * Fixed premium name check to protocolsupport * Improved permissions management -######0.4 +### 0.4 * Added forward premium skin * Added plugin support for protocolsupport -######0.3.2 +### 0.3.2 * Run packet readers in a different thread (separated from the Netty I/O Thread) -> Improves performance * Fixed Plugin disable if the server is in online mode but have to be in offline mode -######0.3.1 +### 0.3.1 * Improved BungeeCord security -#####0.3 +### 0.3 * Added BungeeCord support * Decrease timeout checks in order to fail faster on connection problems * Code style improvements -######0.2.4 +### 0.2.4 * Fixed NPE on invalid sessions * Improved security by generating a randomized serverId * Removed /premium [player] because it's safer for premium players who join without registration -######0.2.3 +### 0.2.3 * Remove useless AuthMe forcelogin code * Send a kick message to the client instead of just "Disconnect" @@ -207,15 +207,15 @@ * Fix thread safety for fake start packets (Bukkit.getOfflinePlayer doesn't look like to be thread-safe) * Added more documentation -######0.2.2 +### 0.2.2 * Compile project with Java 7 :( -######0.2.1 +### 0.2.1 * A couple of security fixes (premium players cannot longer steal the account of a cracked account) * Added a /premium command to mark you as premium player -#####0.2 +### 0.2 * Added support for CrazyLogin and LoginSecurity * Now minecraft version independent @@ -224,5 +224,5 @@ * More state validation * Added better error handling -#####0.1 +### 0.1 * First release diff --git a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/BungeeCordListener.java b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/BungeeCordListener.java index 5c860516..2a22fa99 100644 --- a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/BungeeCordListener.java +++ b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/BungeeCordListener.java @@ -6,7 +6,6 @@ import com.github.games647.fastlogin.bukkit.tasks.ForceLoginTask; import com.github.games647.fastlogin.core.hooks.AuthPlugin; import com.google.common.io.ByteArrayDataInput; import com.google.common.io.ByteStreams; - import org.bukkit.Bukkit; import org.bukkit.entity.Player; import org.bukkit.plugin.messaging.PluginMessageListener; @@ -15,7 +14,6 @@ import java.io.IOException; import java.net.InetSocketAddress; import java.nio.file.Files; import java.nio.file.Path; -import java.util.List; import java.util.Set; import java.util.UUID; import java.util.logging.Level; @@ -103,7 +101,7 @@ public class BungeeCordListener implements PluginMessageListener { Files.createFile(whitelistFile); } - return Files.readAllLines(whitelistFile).stream() + return Files.lines(whitelistFile) .map(String::trim) .map(UUID::fromString) .collect(Collectors.toSet());