Add /newline variable

This commit is contained in:
games647
2018-05-04 18:54:26 +02:00
parent 1ea6d929b1
commit 8a9eed3a74
3 changed files with 2 additions and 4 deletions

View File

@@ -45,14 +45,13 @@ https://ci.codemc.org/job/Games647/job/FastLogin/changes
fastlogin.bukkit.command.cracked fastlogin.bukkit.command.cracked
fastlogin.command.premium.other fastlogin.command.premium.other
fastlogin.command.cracked.other fastlogin.command.cracked.other
fastlogin.command.import
## Requirements ## Requirements
* Plugin: * Plugin:
* [ProtocolLib](https://www.spigotmc.org/resources/protocollib.1997/) or * [ProtocolLib](https://www.spigotmc.org/resources/protocollib.1997/) or
* [ProtocolSupport](https://www.spigotmc.org/resources/protocolsupport.7201/) * [ProtocolSupport](https://www.spigotmc.org/resources/protocolsupport.7201/)
* [Spigot](https://www.spigotmc.org) 1.7+ * [Spigot](https://www.spigotmc.org) 1.7.10+
* Java 8+ * Java 8+
* Run Spigot and/or BungeeCord/Waterfall in offline mode (see server.properties or config.yml) * Run Spigot and/or BungeeCord/Waterfall in offline mode (see server.properties or config.yml)
* An auth plugin. Supported plugins * An auth plugin. Supported plugins

View File

@@ -56,7 +56,6 @@ public class ProtocolSupportListener extends JoinManagement<Player, CommandSende
InetSocketAddress address = loginFinishEvent.getAddress(); InetSocketAddress address = loginFinishEvent.getAddress();
BukkitLoginSession session = plugin.getLoginSessions().get(address.toString()); BukkitLoginSession session = plugin.getLoginSessions().get(address.toString());
//skin was resolved -> premium player
if (session != null) { if (session != null) {
session.setVerified(true); session.setVerified(true);
} }

View File

@@ -75,7 +75,7 @@ public class FastLoginCore<P extends C, C, T extends PlatformPlugin<C>> {
.forEach((key, message) -> { .forEach((key, message) -> {
String colored = CommonUtil.translateColorCodes((String) message); String colored = CommonUtil.translateColorCodes((String) message);
if (!colored.isEmpty()) { if (!colored.isEmpty()) {
localeMessages.put(key, colored); localeMessages.put(key, colored.replace("/newline", "\n"));
} }
}); });
} catch (IOException ioEx) { } catch (IOException ioEx) {