Use placeholder

This commit is contained in:
dordsor21
2020-07-28 09:35:44 +01:00
parent 97b1a60ae8
commit 704e92c3d0

View File

@@ -43,10 +43,10 @@ public abstract class QueueProvider {
try { try {
return (QueueCoordinator) primary.getConstructors()[0].newInstance(world); return (QueueCoordinator) primary.getConstructors()[0].newInstance(world);
} catch (Throwable e) { } catch (Throwable e) {
logger.info("Error creating Queue: " + primary.getName() + " - Does it have the correct constructor(s)?"); logger.error("Error creating Queue: {} - Does it have the correct constructor(s)?", primary.getName());
if (!primary.getName().contains("com.plotsquared")) { if (!primary.getName().contains("com.plotsquared")) {
logger.info("It looks like " + primary.getSimpleName() logger.error("It looks like {} is a custom queue. Please look for a plugin in its classpath and report to them.",
+ " is a custom queue. Please look for a plugin in its classpath and report to themm"); primary.getSimpleName());
} }
e.printStackTrace(); e.printStackTrace();
} }