Fallback to plugin ID.

This commit is contained in:
Andrew Steinborn 2018-12-02 01:59:46 -05:00
parent 65ca41cdb5
commit 5b9a8f160b

View File

@ -233,7 +233,7 @@ public class VelocityServer implements ProxyServer {
eventManager.register(instance.get(), instance.get());
} catch (Exception e) {
logger.error("Unable to register plugin listener for {}",
plugin.getDescription().getName(), e);
plugin.getDescription().getName().orElse(plugin.getDescription().getId()), e);
}
}
}