Work around message bug when parsing two consecutive color codes

This commit is contained in:
Luck
2017-12-11 17:39:35 +00:00
Unverified
parent 322b522a52
commit dfb1b8f841
2 changed files with 2 additions and 3 deletions
@@ -43,9 +43,9 @@ public enum Message {
/*
* General & Commands
*/
PREFIX("&7&l[&b&lL&3&lP&7&l] &c", false),
PREFIX("&7&l[&b&lL&3&lP&7&l] ", false),
EMPTY("{}", true),
EMPTY("&c{}", true),
PLAYER_ONLINE("&aOnline", false),
PLAYER_OFFLINE("&cOffline", false),
LOADING_ERROR("&cPermissions data could not be loaded. Please try again later.", true),
@@ -74,7 +74,6 @@ public class LoginHelper {
plugin.getStorage().noBuffer().loadUser(cache.getUUID(u), username).join();
User user = plugin.getUserManager().getIfLoaded(cache.getUUID(u));
if (user == null) {
plugin.getLog().warn("Failed to load user: " + username);
throw new RuntimeException("Failed to load user");
} else {
// Setup defaults for the user