Ignore exception if Brigadier is not supported by the server (#1506)

This error occurs when another plugin/the server shades the brigadier library without relocation on pre 1.13 MC versions.
This commit is contained in:
Luck 2019-04-22 09:24:05 +01:00
parent 493e5d08be
commit 2fd2f4fedb
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -159,7 +159,9 @@ public class LPBukkitPlugin extends AbstractLuckPermsPlugin {
try { try {
LuckPermsBrigadier.register(this, cmd); LuckPermsBrigadier.register(this, cmd);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); if (!(e instanceof RuntimeException && e.getMessage().contains("not supported by the server"))) {
e.printStackTrace();
}
} }
} }
} }