1
0
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:
Luck
2022-06-12 20:54:33 +01:00
parent 9b2bbb3e53
commit 016f35a6f0
3 changed files with 10 additions and 10 deletions

View File

@@ -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')
}

View File

@@ -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);