mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-14 02:34:07 +00:00
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:
1 file changed
+3
-1
@@ -159,7 +159,9 @@ public class LPBukkitPlugin extends AbstractLuckPermsPlugin {
|
||||
try {
|
||||
LuckPermsBrigadier.register(this, cmd);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
if (!(e instanceof RuntimeException && e.getMessage().contains("not supported by the server"))) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user