From 61ce5cd860e023fb090c9c69bb19c40bbbd02ec4 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Fri, 5 Feb 2021 11:45:21 +0100 Subject: [PATCH 1/4] 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); -- 2.39.2 From 8114bb2922b9ce416d6ba1ca407814562cf5356c Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Fri, 5 Feb 2021 11:48:37 +0100 Subject: [PATCH 2/4] Fix Bau Add Message --- src/de/steamwar/bungeecore/commands/BauCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/commands/BauCommand.java b/src/de/steamwar/bungeecore/commands/BauCommand.java index 3c38836..f4187fc 100644 --- a/src/de/steamwar/bungeecore/commands/BauCommand.java +++ b/src/de/steamwar/bungeecore/commands/BauCommand.java @@ -134,7 +134,7 @@ public class BauCommand { ProxiedPlayer z = ProxyServer.getInstance().getPlayer(target.getUuid()); if(z != null) - Message.send("BAU_ADDMEMBER_ADDED_TARGET", p, p.getName()); + Message.send("BAU_ADDMEMBER_ADDED_TARGET", z, p.getName()); } private static void teleport(ProxiedPlayer p, String[] command){ -- 2.39.2 From 30cd8c2c7cb1182309dc8df46277fa2d5a117dd6 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Fri, 5 Feb 2021 11:49:45 +0100 Subject: [PATCH 3/4] Fix Bau Allowed Message --- src/de/steamwar/bungeecore/commands/BauCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/steamwar/bungeecore/commands/BauCommand.java b/src/de/steamwar/bungeecore/commands/BauCommand.java index f4187fc..a0d120f 100644 --- a/src/de/steamwar/bungeecore/commands/BauCommand.java +++ b/src/de/steamwar/bungeecore/commands/BauCommand.java @@ -316,11 +316,11 @@ public class BauCommand { if(permission){ if(player != null) - Message.send("BAU_MEMBER_TOGGLE_TARGET", p, p.getName(), what); + Message.send("BAU_MEMBER_TOGGLE_TARGET", player, p.getName(), what); Message.send("BAU_MEMBER_TOGGLE", p, what); }else{ if(player != null) - Message.send("BAU_MEMBER_TOGGLE_TARGET_OFF", p, p.getName(), what); + Message.send("BAU_MEMBER_TOGGLE_TARGET_OFF", player, p.getName(), what); Message.send("BAU_MEMBER_TOGGLE_OFF", p, what); } } -- 2.39.2 From d7b784c03ca569177b8344fe9b4e66ef6767a538 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Fri, 5 Feb 2021 11:55:20 +0100 Subject: [PATCH 4/4] Fix Team List --- src/de/steamwar/messages/BungeeCore.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/messages/BungeeCore.properties b/src/de/steamwar/messages/BungeeCore.properties index 6679b9b..4ed6107 100644 --- a/src/de/steamwar/messages/BungeeCore.properties +++ b/src/de/steamwar/messages/BungeeCore.properties @@ -387,7 +387,7 @@ TEAM_INFO_EVENTS=§7Events§8: §e{0} TEAM_LIST_NOT_PAGE=§cKeine Seitenzahl angegeben TEAM_LIST_UNKNOWN_PAGE=§cUngültige Seitenzahl angegeben TEAM_LIST_HEADER=§7§lTeamliste §7{0}§8/§7{1} -TEAM_LIST_TEAM=§{0}{1} §e{2} §8[§7{3}}§8] +TEAM_LIST_TEAM=§{0}{1} §e{2} §8[§7{3}§8] TEAM_LIST_TEAM_HOVER=§7Teaminfo TEAM_LIST_PAGE=Seite TEAM_LIST_NEXT=§eNächste Seite -- 2.39.2