mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-08-31 10:01:45 +02:00
Update Bukkit dependencies for full 1.19 support
This commit is contained in:
@@ -16,7 +16,7 @@ dependencies {
|
||||
exclude(module: 'adventure-api')
|
||||
exclude(module: 'adventure-nbt')
|
||||
}
|
||||
compileOnly 'me.lucko:commodore:1.13'
|
||||
compileOnly 'me.lucko:commodore:2.0'
|
||||
compileOnly('net.milkbowl.vault:VaultAPI:1.7') {
|
||||
exclude(module: 'bukkit')
|
||||
}
|
||||
|
@@ -29,7 +29,7 @@ import com.mojang.brigadier.tree.LiteralCommandNode;
|
||||
|
||||
import me.lucko.commodore.Commodore;
|
||||
import me.lucko.commodore.CommodoreProvider;
|
||||
import me.lucko.commodore.file.CommodoreFileFormat;
|
||||
import me.lucko.commodore.file.CommodoreFileReader;
|
||||
import me.lucko.luckperms.bukkit.LPBukkitPlugin;
|
||||
import me.lucko.luckperms.common.sender.Sender;
|
||||
|
||||
@@ -50,7 +50,7 @@ public final class LuckPermsBrigadier {
|
||||
throw new Exception("Brigadier command data missing from jar");
|
||||
}
|
||||
|
||||
LiteralCommandNode<?> commandNode = CommodoreFileFormat.parse(is);
|
||||
LiteralCommandNode<?> commandNode = CommodoreFileReader.INSTANCE.parse(is);
|
||||
commodore.register(pluginCommand, commandNode, player -> {
|
||||
Sender playerAsSender = plugin.getSenderFactory().wrap(player);
|
||||
return plugin.getCommandManager().hasPermissionForAny(playerAsSender);
|
||||
|
Reference in New Issue
Block a user