mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-10-06 10:27:26 +02:00
Typo.
This commit is contained in:
parent
4a8f19ef7a
commit
fdf15fc33e
@ -275,22 +275,22 @@ public final class NCPHookManager {
|
||||
* @param throwable
|
||||
* the throwable
|
||||
*/
|
||||
private static final void logHookFailure(final CheckType checkType, final Player player, final NCPHook hook,
|
||||
final Throwable t) {
|
||||
private static final void logHookFailure(final CheckType checkType, final Player player, final NCPHook hook, final Throwable t) {
|
||||
// TODO: might accumulate failure rate and only log every so and so seconds or disable hook if spamming (leads
|
||||
// to NCP spam though)?
|
||||
final StringBuilder builder = new StringBuilder(1024);
|
||||
builder.append("Hook " + getHookDescription(hook) + " encountered an unexpected exception:\n");
|
||||
builder.append("Processing: ");
|
||||
if (checkType.getParent() != null)
|
||||
builder.append("Prent " + checkType.getParent() + " ");
|
||||
if (checkType.getParent() != null) {
|
||||
builder.append("Parent " + checkType.getParent() + " ");
|
||||
}
|
||||
builder.append("Check " + checkType);
|
||||
builder.append(" Player " + player.getName());
|
||||
builder.append("\n");
|
||||
builder.append("Exception (" + t.getClass().getSimpleName() + "): " + t.getMessage() + "\n");
|
||||
for (final StackTraceElement el : t.getStackTrace())
|
||||
for (final StackTraceElement el : t.getStackTrace()) {
|
||||
builder.append(el.toString());
|
||||
|
||||
}
|
||||
Bukkit.getLogger().severe(builder.toString());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user