mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-08-22 06:02:49 +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-api')
|
||||||
exclude(module: 'adventure-nbt')
|
exclude(module: 'adventure-nbt')
|
||||||
}
|
}
|
||||||
compileOnly 'me.lucko:commodore:1.13'
|
compileOnly 'me.lucko:commodore:2.0'
|
||||||
compileOnly('net.milkbowl.vault:VaultAPI:1.7') {
|
compileOnly('net.milkbowl.vault:VaultAPI:1.7') {
|
||||||
exclude(module: 'bukkit')
|
exclude(module: 'bukkit')
|
||||||
}
|
}
|
||||||
|
@@ -29,7 +29,7 @@ import com.mojang.brigadier.tree.LiteralCommandNode;
|
|||||||
|
|
||||||
import me.lucko.commodore.Commodore;
|
import me.lucko.commodore.Commodore;
|
||||||
import me.lucko.commodore.CommodoreProvider;
|
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.bukkit.LPBukkitPlugin;
|
||||||
import me.lucko.luckperms.common.sender.Sender;
|
import me.lucko.luckperms.common.sender.Sender;
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ public final class LuckPermsBrigadier {
|
|||||||
throw new Exception("Brigadier command data missing from jar");
|
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 -> {
|
commodore.register(pluginCommand, commandNode, player -> {
|
||||||
Sender playerAsSender = plugin.getSenderFactory().wrap(player);
|
Sender playerAsSender = plugin.getSenderFactory().wrap(player);
|
||||||
return plugin.getCommandManager().hasPermissionForAny(playerAsSender);
|
return plugin.getCommandManager().hasPermissionForAny(playerAsSender);
|
||||||
|
@@ -71,21 +71,21 @@ public enum Dependency {
|
|||||||
ADVENTURE_PLATFORM(
|
ADVENTURE_PLATFORM(
|
||||||
"me{}lucko",
|
"me{}lucko",
|
||||||
"adventure-platform-api",
|
"adventure-platform-api",
|
||||||
"4.11.0",
|
"4.11.1",
|
||||||
"rFUSnKY6xEGCjgxqSl6/oJw2deCA/x834HlcCQEI1K4=",
|
"zCnxNgosme++TsheFaL+YHdtRIrp+oJhUiI8awsKgfQ=",
|
||||||
Relocation.of("adventure", "net{}kyori{}adventure")
|
Relocation.of("adventure", "net{}kyori{}adventure")
|
||||||
),
|
),
|
||||||
ADVENTURE_PLATFORM_BUKKIT(
|
ADVENTURE_PLATFORM_BUKKIT(
|
||||||
"me{}lucko",
|
"me{}lucko",
|
||||||
"adventure-platform-bukkit",
|
"adventure-platform-bukkit",
|
||||||
"4.11.0",
|
"4.11.1",
|
||||||
"usbxLJmMp+fb9cnnRNlHnOVSgd5NZfColiVlsjmMulo=",
|
"+xpPjOz1YkhB2Dq8JDNPcKOm4IUijolg10a2x+ISpBc=",
|
||||||
Relocation.of("adventure", "net{}kyori{}adventure")
|
Relocation.of("adventure", "net{}kyori{}adventure")
|
||||||
),
|
),
|
||||||
ADVENTURE_PLATFORM_BUNGEECORD(
|
ADVENTURE_PLATFORM_BUNGEECORD(
|
||||||
"me{}lucko",
|
"me{}lucko",
|
||||||
"adventure-platform-bungeecord",
|
"adventure-platform-bungeecord",
|
||||||
"4.11.0",
|
"4.11.1",
|
||||||
"+WUdRdZ6qkacw3ha/R3ayLx46soMywGe70Zmnw4yha8=",
|
"+WUdRdZ6qkacw3ha/R3ayLx46soMywGe70Zmnw4yha8=",
|
||||||
Relocation.of("adventure", "net{}kyori{}adventure")
|
Relocation.of("adventure", "net{}kyori{}adventure")
|
||||||
),
|
),
|
||||||
@@ -128,8 +128,8 @@ public enum Dependency {
|
|||||||
COMMODORE(
|
COMMODORE(
|
||||||
"me{}lucko",
|
"me{}lucko",
|
||||||
"commodore",
|
"commodore",
|
||||||
"1.13",
|
"2.0",
|
||||||
"A4M1Im54vrYbcdSpteQvI6ppNPYWL+VpfBVjsdteY+M=",
|
"5pPvU2MFRK4doXDOG8UKTp1y7D7uuTfiPglTosUh4zk=",
|
||||||
Relocation.of("commodore", "me{}lucko{}commodore")
|
Relocation.of("commodore", "me{}lucko{}commodore")
|
||||||
),
|
),
|
||||||
COMMODORE_FILE(
|
COMMODORE_FILE(
|
||||||
|
Reference in New Issue
Block a user