diff --git a/src/main/java/cc/reconnected/server/commands/ReplyCommand.java b/src/main/java/cc/reconnected/server/commands/ReplyCommand.java index f087453..2f3e414 100644 --- a/src/main/java/cc/reconnected/server/commands/ReplyCommand.java +++ b/src/main/java/cc/reconnected/server/commands/ReplyCommand.java @@ -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; } } diff --git a/src/main/java/cc/reconnected/server/commands/TellCommand.java b/src/main/java/cc/reconnected/server/commands/TellCommand.java index c1af2ec..67c48fa 100644 --- a/src/main/java/cc/reconnected/server/commands/TellCommand.java +++ b/src/main/java/cc/reconnected/server/commands/TellCommand.java @@ -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; diff --git a/src/main/java/cc/reconnected/server/mixin/MessageCommandMixin.java b/src/main/java/cc/reconnected/server/mixin/MessageCommandMixin.java index 91316d2..cd2a8af 100644 --- a/src/main/java/cc/reconnected/server/mixin/MessageCommandMixin.java +++ b/src/main/java/cc/reconnected/server/mixin/MessageCommandMixin.java @@ -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