mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01: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:
parent
493e5d08be
commit
2fd2f4fedb
@ -159,10 +159,12 @@ public class LPBukkitPlugin extends AbstractLuckPermsPlugin {
|
||||
try {
|
||||
LuckPermsBrigadier.register(this, cmd);
|
||||
} catch (Exception e) {
|
||||
if (!(e instanceof RuntimeException && e.getMessage().contains("not supported by the server"))) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void setupManagers() {
|
||||
|
Loading…
Reference in New Issue
Block a user