mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-08-02 20:24:41 +02:00
Add /newline variable
This commit is contained in:
@@ -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
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
|
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user