mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
Update for 1.21.11
This commit is contained in:
7 files changed
+13
-12
No files matched your search
@@ -89,6 +89,7 @@ publishMods.modrinth {
|
|||||||
"1.21.8",
|
"1.21.8",
|
||||||
"1.21.9",
|
"1.21.9",
|
||||||
"1.21.10",
|
"1.21.10",
|
||||||
|
"1.21.11",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -18,7 +18,7 @@ hangarPublish.publications.register("plugin") {
|
|||||||
apiKey = providers.environmentVariable("HANGAR_UPLOAD_KEY")
|
apiKey = providers.environmentVariable("HANGAR_UPLOAD_KEY")
|
||||||
platforms.paper {
|
platforms.paper {
|
||||||
jar = project(":carbonchat-paper").platformJar()
|
jar = project(":carbonchat-paper").platformJar()
|
||||||
platformVersions.add("1.21.4-1.21.10")
|
platformVersions.add("1.21.4-1.21.11")
|
||||||
dependencies {
|
dependencies {
|
||||||
url("LuckPerms", "https://luckperms.net/")
|
url("LuckPerms", "https://luckperms.net/")
|
||||||
hangar("Essentials") {
|
hangar("Essentials") {
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public interface FabricCommander extends Commander, ForwardingAudience.Single {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean hasPermission(final String permission) {
|
public boolean hasPermission(final String permission) {
|
||||||
return Permissions.check(this.commandSourceStack, permission, this.commandSourceStack.getServer().operatorUserPermissionLevel());
|
return Permissions.check(this.commandSourceStack, permission, this.commandSourceStack.getServer().operatorUserPermissions().level());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ public record FabricPlayerCommander(
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean hasPermission(final String permission) {
|
public boolean hasPermission(final String permission) {
|
||||||
return Permissions.check(this.commandSourceStack, permission, this.commandSourceStack.getServer().operatorUserPermissionLevel());
|
return Permissions.check(this.commandSourceStack, permission, this.commandSourceStack.getServer().operatorUserPermissions().level());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -38,15 +38,15 @@ import net.minecraft.network.chat.ChatType;
|
|||||||
import net.minecraft.network.chat.FilterMask;
|
import net.minecraft.network.chat.FilterMask;
|
||||||
import net.minecraft.network.chat.OutgoingChatMessage;
|
import net.minecraft.network.chat.OutgoingChatMessage;
|
||||||
import net.minecraft.network.chat.PlayerChatMessage;
|
import net.minecraft.network.chat.PlayerChatMessage;
|
||||||
|
import net.minecraft.resources.Identifier;
|
||||||
import net.minecraft.resources.ResourceKey;
|
import net.minecraft.resources.ResourceKey;
|
||||||
import net.minecraft.resources.ResourceLocation;
|
|
||||||
import net.minecraft.server.level.ServerPlayer;
|
import net.minecraft.server.level.ServerPlayer;
|
||||||
import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
public class FabricChatHandler extends ChatListenerInternal implements ServerMessageEvents.AllowChatMessage {
|
public class FabricChatHandler extends ChatListenerInternal implements ServerMessageEvents.AllowChatMessage {
|
||||||
|
|
||||||
public static final ResourceLocation CHAT_TYPE_KEY = ResourceLocation.fromNamespaceAndPath("carbonchat", "chat");
|
public static final Identifier CHAT_TYPE_KEY = Identifier.fromNamespaceAndPath("carbonchat", "chat");
|
||||||
|
|
||||||
private final CarbonChatFabric carbonChat;
|
private final CarbonChatFabric carbonChat;
|
||||||
private @MonotonicNonNull ResourceKey<ChatType> chatTypeResourceKey;
|
private @MonotonicNonNull ResourceKey<ChatType> chatTypeResourceKey;
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ public class CarbonPlayerFabric extends WrappedCarbonPlayer implements Forwardin
|
|||||||
@Override
|
@Override
|
||||||
public boolean hasPermission(final String permission) {
|
public boolean hasPermission(final String permission) {
|
||||||
return this.player()
|
return this.player()
|
||||||
.map(player -> Permissions.check(player, permission, player.level().getServer().operatorUserPermissionLevel()))
|
.map(player -> Permissions.check(player, permission, player.level().getServer().operatorUserPermissions().level()))
|
||||||
.orElse(false);
|
.orElse(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,8 +20,8 @@ resource-factory = "1.3.1"
|
|||||||
|
|
||||||
adventure = "4.18.0"
|
adventure = "4.18.0"
|
||||||
cloud = "2.0.0"
|
cloud = "2.0.0"
|
||||||
cloudMinecraft = "2.0.0-beta.13"
|
cloudMinecraft = "2.0.0-beta.14"
|
||||||
cloudModded = "2.0.0-beta.12"
|
cloudModded = "2.0.0-beta.15"
|
||||||
cloudSponge = "2.0.0-SNAPSHOT"
|
cloudSponge = "2.0.0-SNAPSHOT"
|
||||||
configurate = "4.2.0"
|
configurate = "4.2.0"
|
||||||
checkerQual = "3.49.2"
|
checkerQual = "3.49.2"
|
||||||
@@ -35,11 +35,11 @@ registry = "1.0.0-SNAPSHOT"
|
|||||||
kyoriMoonshine = "2.0.4"
|
kyoriMoonshine = "2.0.4"
|
||||||
guice = "7.0.0"
|
guice = "7.0.0"
|
||||||
velocityApi = "3.4.0-SNAPSHOT"
|
velocityApi = "3.4.0-SNAPSHOT"
|
||||||
minecraft = "1.21.10"
|
minecraft = "1.21.11"
|
||||||
fabricLoader = "0.18.2"
|
fabricLoader = "0.18.2"
|
||||||
fabricApi = "0.135.0+1.21.10"
|
fabricApi = "0.139.5+1.21.11"
|
||||||
fabricPermissionsApi = "0.5.0"
|
fabricPermissionsApi = "0.6.1"
|
||||||
adventurePlatformFabric = "6.7.0"
|
adventurePlatformFabric = "6.8.0"
|
||||||
luckPermsApi = "5.5"
|
luckPermsApi = "5.5"
|
||||||
essentialsx = "2.20.1"
|
essentialsx = "2.20.1"
|
||||||
discordsrv = "1.30.1"
|
discordsrv = "1.30.1"
|
||||||
|
|||||||
Reference in new issue
Block a user