From 5b9a8f160b8ed4f6dde2ca95e7db3e113c777d88 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sun, 2 Dec 2018 01:59:46 -0500 Subject: [PATCH] Fallback to plugin ID. --- .../src/main/java/com/velocitypowered/proxy/VelocityServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java b/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java index 88494fb3d..660a80ae0 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java @@ -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); } } }