From 61ce5cd860e023fb090c9c69bb19c40bbbd02ec4 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Fri, 5 Feb 2021 11:45:21 +0100 Subject: [PATCH] Fix MsgCommand and RCommand --- src/de/steamwar/bungeecore/commands/MsgCommand.java | 4 ++-- src/de/steamwar/bungeecore/commands/RCommand.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/de/steamwar/bungeecore/commands/MsgCommand.java b/src/de/steamwar/bungeecore/commands/MsgCommand.java index fde3244..8ec0d38 100644 --- a/src/de/steamwar/bungeecore/commands/MsgCommand.java +++ b/src/de/steamwar/bungeecore/commands/MsgCommand.java @@ -72,8 +72,8 @@ public class MsgCommand extends BasicCommand { for (int i = 1; i < args.length; i++){ msgBuilder.append(args[i]).append(" "); } - Message.send("MSG_FORMAT", player, player.getName(), target.getName(), msgBuilder.toString()); - Message.send("MSG_FORMAT", target, player.getName(), target.getName(), msgBuilder.toString()); + Message.sendPrefixless("MSG_FORMAT", player, player.getName(), target.getName(), msgBuilder.toString()); + Message.sendPrefixless("MSG_FORMAT", target, player.getName(), target.getName(), msgBuilder.toString()); BungeeCore.log(Message.parse("MSG_FORMAT", player, player.getName(), target.getName(), msgBuilder.toString())); lastChats.put(player, target); diff --git a/src/de/steamwar/bungeecore/commands/RCommand.java b/src/de/steamwar/bungeecore/commands/RCommand.java index 17b87b7..fef0031 100644 --- a/src/de/steamwar/bungeecore/commands/RCommand.java +++ b/src/de/steamwar/bungeecore/commands/RCommand.java @@ -69,8 +69,8 @@ public class RCommand extends BasicCommand { for (String arg : args){ msgBuilder.append(arg).append(" "); } - Message.send("MSG_FORMAT", player, player.getName(), target.getName(), msgBuilder.toString()); - Message.send("MSG_FORMAT", target, player.getName(), target.getName(), msgBuilder.toString()); + Message.sendPrefixless("MSG_FORMAT", player, player.getName(), target.getName(), msgBuilder.toString()); + Message.sendPrefixless("MSG_FORMAT", target, player.getName(), target.getName(), msgBuilder.toString()); BungeeCore.log(Message.parse("MSG_FORMAT", player, player.getName(), target.getName(), msgBuilder.toString())); lastChats.put(target, player);