This commit is contained in:
Alessandro Proto 2024-10-22 22:30:28 +02:00
parent 2fe6498830
commit d95471b7c6
3 changed files with 1 additions and 11 deletions

View file

@ -33,11 +33,9 @@ public class ReplyCommand {
}
var targetName = TellCommand.lastSender.get(senderName);
var playerManager = source.getServer().getPlayerManager();
TellCommand.sendDirectMessage(targetName, source, message);
return 1;
}
}

View file

@ -9,14 +9,12 @@ import net.kyori.adventure.text.minimessage.MiniMessage;
import net.kyori.adventure.text.minimessage.tag.resolver.Placeholder;
import net.minecraft.command.CommandRegistryAccess;
import net.minecraft.command.CommandSource;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.command.CommandManager;
import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.text.Style;
import net.minecraft.text.Text;
import net.minecraft.util.Formatting;
import org.jetbrains.annotations.Nullable;
import java.util.HashMap;

View file

@ -5,18 +5,12 @@ import net.minecraft.server.command.MessageCommand;
import net.minecraft.server.command.ServerCommandSource;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;
import org.spongepowered.asm.mixin.gen.Accessor;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import java.lang.annotation.Target;
@Mixin(MessageCommand.class)
public class MessageCommandMixin {
/**
* @author Alex
* @author AlexDevs
* @reason Implementing custom tell command
*/
@Overwrite