mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-13 14:48:34 +00:00
chore: Exchange debug log levels & component-ify a few messages (#1342)
This commit is contained in:
@ -755,7 +755,7 @@ public final class PlatformCommandManager {
|
||||
}
|
||||
} catch (ConditionFailedException e) {
|
||||
if (e.getCondition() instanceof PermissionCondition) {
|
||||
actor.printError(Caption.of(
|
||||
actor.print(Caption.of(
|
||||
"fawe.error.no-perm",
|
||||
StringMan.getString(((PermissionCondition) e.getCondition()).getPermissions())
|
||||
));
|
||||
@ -911,7 +911,7 @@ public final class PlatformCommandManager {
|
||||
suggestions = commandManager.getSuggestions(access, argStrings);
|
||||
} catch (Throwable t) { // catch errors which are *not* command exceptions generated by parsers/suggesters
|
||||
if (!(t instanceof CommandException)) {
|
||||
LOGGER.debug("Unexpected error occurred while generating suggestions for input: " + arguments, t);
|
||||
LOGGER.error("Unexpected error occurred while generating suggestions for input: {}", arguments, t);
|
||||
return;
|
||||
}
|
||||
throw t;
|
||||
|
Reference in New Issue
Block a user