diff --git a/src/main/java/rip/tilly/bedwars/commands/party/AcceptCommand.java b/src/main/java/rip/tilly/bedwars/commands/party/AcceptCommand.java index a966cd1..f51e87e 100644 --- a/src/main/java/rip/tilly/bedwars/commands/party/AcceptCommand.java +++ b/src/main/java/rip/tilly/bedwars/commands/party/AcceptCommand.java @@ -24,7 +24,7 @@ public class AcceptCommand extends BaseCommand { return; } - this.main.getPartyManager().joinParty(player.getUniqueId(), target); + this.main.getPartyManager().joinParty(target.getUniqueId(), player); } @Override diff --git a/src/main/java/rip/tilly/bedwars/commands/party/InfoCommand.java b/src/main/java/rip/tilly/bedwars/commands/party/InfoCommand.java index 60201f7..60a1111 100644 --- a/src/main/java/rip/tilly/bedwars/commands/party/InfoCommand.java +++ b/src/main/java/rip/tilly/bedwars/commands/party/InfoCommand.java @@ -26,8 +26,8 @@ public class InfoCommand extends BaseCommand { player.sendMessage(CC.translate(CC.chatBar)); player.sendMessage(CC.translate("&dParty Information")); player.sendMessage(CC.translate(CC.chatBar)); - player.sendMessage("&7⚫ &9Leader: &e" + Bukkit.getPlayer(this.main.getPartyManager().getParty(player.getUniqueId()).getLeader()).getName()); - player.sendMessage("&7⚫ &9Party members: &e" + this.main.getPartyManager().getParty(player.getUniqueId()).getMembers().size() + "&7/&e" + this.main.getPartyManager().getParty(player.getUniqueId()).getLimit()); + player.sendMessage(CC.translate("&7⚫ &9Leader: &e" + Bukkit.getPlayer(this.main.getPartyManager().getParty(player.getUniqueId()).getLeader()).getName())); + player.sendMessage(CC.translate("&7⚫ &9Party members: &e" + this.main.getPartyManager().getParty(player.getUniqueId()).getMembers().size() + "&7/&e" + this.main.getPartyManager().getParty(player.getUniqueId()).getLimit())); player.sendMessage(CC.translate(CC.chatBar)); } diff --git a/src/main/java/rip/tilly/bedwars/commands/party/JoinCommand.java b/src/main/java/rip/tilly/bedwars/commands/party/JoinCommand.java index 420bed4..0222f21 100644 --- a/src/main/java/rip/tilly/bedwars/commands/party/JoinCommand.java +++ b/src/main/java/rip/tilly/bedwars/commands/party/JoinCommand.java @@ -24,7 +24,7 @@ public class JoinCommand extends BaseCommand { return; } - this.main.getPartyManager().joinParty(target.getUniqueId(), player); + this.main.getPartyManager().joinParty(player.getUniqueId(), target); } @Override diff --git a/src/main/java/rip/tilly/bedwars/commands/party/PartyCommand.java b/src/main/java/rip/tilly/bedwars/commands/party/PartyCommand.java index 4bdf009..a7d8980 100644 --- a/src/main/java/rip/tilly/bedwars/commands/party/PartyCommand.java +++ b/src/main/java/rip/tilly/bedwars/commands/party/PartyCommand.java @@ -18,13 +18,13 @@ public class PartyCommand implements CommandExecutor { player.sendMessage(CC.translate(CC.chatBar)); player.sendMessage(CC.translate("&dParty Commands")); player.sendMessage(CC.translate(CC.chatBar)); - player.sendMessage("&7⚫ &9/party &7- &eParty help information"); - player.sendMessage("&7⚫ &9/party create &7- &eCreate a party"); - player.sendMessage("&7⚫ &9/party leave &7- &eLeave a party"); - player.sendMessage("&7⚫ &9/party join &7- &eJoin a party"); - player.sendMessage("&7⚫ &9/party accept &7- &eAccept a party invitation"); - player.sendMessage("&7⚫ &9/party invite &7- &eInvite a player to a party"); - player.sendMessage("&7⚫ &9/party info &7- &eCheck a party's information"); + player.sendMessage(CC.translate("&7⚫ &9/party &7- &eParty help information")); + player.sendMessage(CC.translate("&7⚫ &9/party create &7- &eCreate a party")); + player.sendMessage(CC.translate("&7⚫ &9/party leave &7- &eLeave a party")); + player.sendMessage(CC.translate("&7⚫ &9/party join &7- &eJoin a party")); + player.sendMessage(CC.translate("&7⚫ &9/party accept &7- &eAccept a party invitation")); + player.sendMessage(CC.translate("&7⚫ &9/party invite &7- &eInvite a player to a party")); + player.sendMessage(CC.translate("&7⚫ &9/party info &7- &eCheck a party's information")); player.sendMessage(CC.translate(CC.chatBar)); } else { switch (args[0]) {