mirror of
https://github.com/Suiranoil/SkinRestorer.git
synced 2026-01-16 04:42:12 +00:00
Compare commits
3 Commits
1.21.11-mu
...
a0d8f3d518
| Author | SHA1 | Date | |
|---|---|---|---|
|
a0d8f3d518
|
|||
|
aa3cb3df09
|
|||
|
da754aa830
|
@@ -1,6 +1,6 @@
|
||||
plugins {
|
||||
// see https://fabricmc.net/develop/ for new versions
|
||||
id 'fabric-loom' version '1.13-SNAPSHOT' apply false
|
||||
id 'fabric-loom' version '1.11-SNAPSHOT' apply false
|
||||
// see https://projects.neoforged.net/neoforged/moddevgradle for new versions
|
||||
id 'net.neoforged.moddev' version '2.0.+' apply false
|
||||
// see https://files.minecraftforge.net/net/minecraftforge/gradle/ForgeGradle/ for new versions
|
||||
|
||||
@@ -15,7 +15,7 @@ import net.lionarius.skinrestorer.skin.provider.*;
|
||||
import net.lionarius.skinrestorer.translation.Translation;
|
||||
import net.lionarius.skinrestorer.util.*;
|
||||
import net.minecraft.commands.CommandSourceStack;
|
||||
import net.minecraft.resources.Identifier;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.server.level.ServerPlayer;
|
||||
import net.minecraft.world.level.storage.LevelResource;
|
||||
@@ -70,8 +70,8 @@ public final class SkinRestorer {
|
||||
return Optional.ofNullable(SkinRestorer.providersRegistry.get(name));
|
||||
}
|
||||
|
||||
public static Identifier resourceLocation(String name) {
|
||||
return Identifier.fromNamespaceAndPath(SkinRestorer.MOD_ID, name);
|
||||
public static ResourceLocation resourceLocation(String name) {
|
||||
return ResourceLocation.fromNamespaceAndPath(SkinRestorer.MOD_ID, name);
|
||||
}
|
||||
|
||||
public static String assetPath(String name) {
|
||||
|
||||
@@ -15,7 +15,6 @@ import net.lionarius.skinrestorer.skin.provider.SkinProviderContext;
|
||||
import net.lionarius.skinrestorer.translation.Translation;
|
||||
import net.lionarius.skinrestorer.util.PlayerUtils;
|
||||
import net.minecraft.commands.CommandSourceStack;
|
||||
import net.minecraft.commands.Commands;
|
||||
import net.minecraft.commands.arguments.GameProfileArgument;
|
||||
import net.minecraft.server.level.ServerPlayer;
|
||||
import net.minecraft.server.players.NameAndId;
|
||||
@@ -56,7 +55,7 @@ public final class SkinCommand {
|
||||
|
||||
base.then(
|
||||
literal("config")
|
||||
.requires(commandSourceStack -> Commands.LEVEL_OWNERS.check(commandSourceStack.permissions()))
|
||||
.requires(commandSourceStack -> commandSourceStack.hasPermission(4))
|
||||
.then(literal("reload").executes(SkinCommand::configReloadSubcommand))
|
||||
);
|
||||
|
||||
@@ -270,7 +269,7 @@ public final class SkinCommand {
|
||||
BiFunction<CommandContext<CommandSourceStack>, Collection<NameAndId>, Integer> consumer
|
||||
) {
|
||||
return argument("targets", GameProfileArgument.gameProfile())
|
||||
.requires(source -> Commands.LEVEL_GAMEMASTERS.check(source.permissions()))
|
||||
.requires(source -> source.hasPermission(2))
|
||||
.executes(context -> consumer.apply(context, GameProfileArgument.getGameProfiles(context, "targets")));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ import net.lionarius.skinrestorer.platform.Services;
|
||||
import net.lionarius.skinrestorer.skin.SkinValue;
|
||||
import net.lionarius.skinrestorer.skin.provider.SkinShuffleSkinProvider;
|
||||
import net.lionarius.skinrestorer.util.PlayerUtils;
|
||||
import net.minecraft.resources.Identifier;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.server.level.ServerPlayer;
|
||||
|
||||
@@ -23,8 +23,8 @@ public class SkinShuffleCompatibility {
|
||||
return SkinShuffleCompatibility.SHOULD_APPLY;
|
||||
}
|
||||
|
||||
public static Identifier resourceLocation(String name) {
|
||||
return Identifier.fromNamespaceAndPath(SkinShuffleCompatibility.MOD_ID, name);
|
||||
public static ResourceLocation resourceLocation(String name) {
|
||||
return ResourceLocation.fromNamespaceAndPath(SkinShuffleCompatibility.MOD_ID, name);
|
||||
}
|
||||
|
||||
public static void onPlayerJoin(ServerPlayer player) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Fabric, see https://fabricmc.net/develop/ for new versions
|
||||
fabric_loader_version=0.15.0
|
||||
fabric_api_version=0.139.4+1.21.11
|
||||
fabric_api_version=0.133.14+1.21.9
|
||||
|
||||
optional_dependencies=fabric-api
|
||||
additional_modloaders=quilt
|
||||
|
||||
@@ -11,7 +11,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
public abstract class MinecraftServerMixin {
|
||||
|
||||
@Inject(method = "runServer",
|
||||
at = @At(value = "INVOKE", target = "Lnet/minecraft/util/Util;getNanos()J", ordinal = 0))
|
||||
at = @At(value = "INVOKE", target = "Lnet/minecraft/Util;getNanos()J", ordinal = 0))
|
||||
private void onServerStarted(CallbackInfo ci) {
|
||||
SkinRestorer.Events.onServerStarted((MinecraftServer) (Object) this);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Forge, see https://files.minecraftforge.net/net/minecraftforge/forge/ for new versions
|
||||
forge_version=61.0.0
|
||||
forge_loader_version_range=[61,)
|
||||
forge_version=59.0.0
|
||||
forge_loader_version_range=[59,)
|
||||
# Forge sometimes skips minor minecraft versions (like 1.20.5)
|
||||
forge_minecraft_version=1.21.11
|
||||
forge_minecraft_version=1.21.9
|
||||
|
||||
@@ -3,9 +3,9 @@ group=net.lionarius
|
||||
java_version=21
|
||||
|
||||
# Common
|
||||
minecraft_version=1.21.11
|
||||
minecraft_version_list=1.21.11
|
||||
minecraft_version_range=[1.21.11, 1.22)
|
||||
minecraft_version=1.21.9
|
||||
minecraft_version_list=1.21.9,1.21.10
|
||||
minecraft_version_range=[1.21.9, 1.21.10]
|
||||
mod_id=skinrestorer
|
||||
mod_name=SkinRestorer
|
||||
mod_version=2.5.0
|
||||
@@ -21,8 +21,8 @@ description=A server-side mod for managing skins.
|
||||
mineskin_client_version=3.2.1-SNAPSHOT
|
||||
|
||||
# ParchmentMC mappings, see https://parchmentmc.org/docs/getting-started#choose-a-version for new versions
|
||||
parchment_minecraft=1.21.11
|
||||
parchment_version=2025.12.20
|
||||
parchment_minecraft=1.21.9
|
||||
parchment_version=2025.10.05
|
||||
|
||||
# Publishing
|
||||
curseforge_id=443823
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# NeoForge, see https://projects.neoforged.net/neoforged/neoforge for new versions
|
||||
neoforge_version=21.11.0-beta
|
||||
neoforge_version=21.9.0-beta
|
||||
neoforge_loader_version_range=[4,)
|
||||
|
||||
Reference in New Issue
Block a user