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
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
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);

View File

@ -71,21 +71,21 @@ public enum Dependency {
ADVENTURE_PLATFORM(
"me{}lucko",
"adventure-platform-api",
"4.11.0",
"rFUSnKY6xEGCjgxqSl6/oJw2deCA/x834HlcCQEI1K4=",
"4.11.1",
"zCnxNgosme++TsheFaL+YHdtRIrp+oJhUiI8awsKgfQ=",
Relocation.of("adventure", "net{}kyori{}adventure")
),
ADVENTURE_PLATFORM_BUKKIT(
"me{}lucko",
"adventure-platform-bukkit",
"4.11.0",
"usbxLJmMp+fb9cnnRNlHnOVSgd5NZfColiVlsjmMulo=",
"4.11.1",
"+xpPjOz1YkhB2Dq8JDNPcKOm4IUijolg10a2x+ISpBc=",
Relocation.of("adventure", "net{}kyori{}adventure")
),
ADVENTURE_PLATFORM_BUNGEECORD(
"me{}lucko",
"adventure-platform-bungeecord",
"4.11.0",
"4.11.1",
"+WUdRdZ6qkacw3ha/R3ayLx46soMywGe70Zmnw4yha8=",
Relocation.of("adventure", "net{}kyori{}adventure")
),
@ -128,8 +128,8 @@ public enum Dependency {
COMMODORE(
"me{}lucko",
"commodore",
"1.13",
"A4M1Im54vrYbcdSpteQvI6ppNPYWL+VpfBVjsdteY+M=",
"2.0",
"5pPvU2MFRK4doXDOG8UKTp1y7D7uuTfiPglTosUh4zk=",
Relocation.of("commodore", "me{}lucko{}commodore")
),
COMMODORE_FILE(