Locally a field

Former-commit-id: 2da4a8d5d89068b34f5751ab9381442c25eb029d
This commit is contained in:
Ghost_chu committed 2020-01-18 21:55:41 +08:00
1 parent db049dcf4a
commit 983d291570
1 file changed
+4 -5
@@ -64,9 +64,8 @@ public class QuickShopLogger extends PluginLogger {
//private FileHandler debugLogFileHandler = null;
private boolean AnsiSupported = true;
private String pluginName;
@SneakyThrows
@SneakyThrows
public QuickShopLogger(Plugin plugin) {
super(plugin);
@@ -81,9 +80,9 @@ public class QuickShopLogger extends PluginLogger {
// Logger re-naming
String prefix = plugin.getDescription().getPrefix();
pluginName = prefix != null ?
"[" + ChatColor.YELLOW + prefix + ChatColor.RESET + "] ":
"[" + ChatColor.YELLOW + plugin.getDescription().getName() + ChatColor.RESET + "] ";
String pluginName = prefix != null ?
"[" + ChatColor.YELLOW + prefix + ChatColor.RESET + "] " :
"[" + ChatColor.YELLOW + plugin.getDescription().getName() + ChatColor.RESET + "] ";
pluginName = AnsiSupported ? applyStyles(pluginName) : pluginName;
// Apply plugin name for BukkitLogger