parent
8fc7b9a5f9
commit
b666930fe7
|
@ -38,7 +38,7 @@ mod_name=ChatIT
|
|||
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
||||
mod_license=All Rights Reserved
|
||||
# The mod version. See https://semver.org/
|
||||
mod_version=0.2-BETA
|
||||
mod_version=0.2.1-BETA
|
||||
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
|
||||
# This should match the base package used for the mod sources.
|
||||
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
|
|
|
@ -2,15 +2,14 @@ package org.itqop.chatit.mixins;
|
|||
|
||||
import com.mojang.brigadier.CommandDispatcher;
|
||||
import net.minecraft.commands.CommandSourceStack;
|
||||
import net.minecraft.server.commands.MsgCommand;
|
||||
import org.itqop.chatit.commands.ChatITCommand;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
||||
@Mixin(MsgCommand.class)
|
||||
public abstract class MixinMessageCommand {
|
||||
@Mixin(net.minecraft.server.commands.MsgCommand.class)
|
||||
public abstract class MsgCommand {
|
||||
|
||||
@Inject(method = "register", at = @At("HEAD"), cancellable = true)
|
||||
private static void onRegister(CommandDispatcher<CommandSourceStack> dispatcher, CallbackInfo ci) {
|
|
@ -4,7 +4,7 @@
|
|||
"package": "org.itqop.chatit.mixins",
|
||||
"refmap": "chatit.refmap.json",
|
||||
"mixins": [
|
||||
"MixinMessageCommand"
|
||||
"MsgCommand"
|
||||
],
|
||||
"client": [],
|
||||
"server": []
|
||||
|
|
Loading…
Reference in New Issue