mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 14:38:53 +00:00
Adjust importer color
This commit is contained in:
1 parent
3c26f92603
commit
9ad75f1814
1 file changed
+4
-4
@@ -56,11 +56,11 @@ public abstract class Importer extends Hook {
|
|||||||
|
|
||||||
for (ImportData data : supportedImportData) {
|
for (ImportData data : supportedImportData) {
|
||||||
try {
|
try {
|
||||||
log(user, Level.INFO, "│ ⌚ Importing " + data.getName() + "...");
|
log(user, Level.INFO, "⌚ Importing " + data.getName() + "...");
|
||||||
final int entries = importData(data);
|
final int entries = importData(data);
|
||||||
log(user, Level.INFO, "│ └ ✔ Imported " + data.getName() + " (" + entries + " entries)");
|
log(user, Level.INFO, "✔ Imported " + data.getName() + " (" + entries + " entries)");
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
log(user, Level.WARNING, "│ └ ❌ Failed to import " + data.getName() + ": " + e.getMessage(), e);
|
log(user, Level.WARNING, "❌ Failed to import " + data.getName() + ": " + e.getMessage(), e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -76,7 +76,7 @@ public abstract class Importer extends Hook {
|
|||||||
if (user instanceof OnlineUser online) {
|
if (user instanceof OnlineUser online) {
|
||||||
final TextColor color = level == Level.SEVERE || level == Level.WARNING
|
final TextColor color = level == Level.SEVERE || level == Level.WARNING
|
||||||
? TextColor.color(0xff3300)
|
? TextColor.color(0xff3300)
|
||||||
: TextColor.color(0xfff021);
|
: TextColor.color(0xC3C3C3);
|
||||||
online.sendMessage(Component.text(message, color));
|
online.sendMessage(Component.text(message, color));
|
||||||
}
|
}
|
||||||
plugin.log(level, message, e);
|
plugin.log(level, message, e);
|
||||||
|
|||||||
Reference in new issue
Block a user