This commit is contained in:
Luca 2021-11-22 00:01:13 +01:00
parent 9a442cbb9d
commit 6c9b0c51cd
2 changed files with 3 additions and 2 deletions

View File

@ -20,6 +20,7 @@ public class InfoCommand extends BaseCommand {
Player player = (Player) sender;
if (this.main.getPartyManager().getParty(player.getUniqueId()) == null) {
player.sendMessage(CC.translate("&cYou are not in a party!"));
return;
}

View File

@ -53,9 +53,9 @@ public class PartyManager {
public void createPartyInvite(UUID requester, UUID requested) {
this.partyInvites.computeIfAbsent(requested, k -> new ArrayList<>()).add(requester);
Clickable partyInv = new Clickable(
CC.translate("&d" + Bukkit.getPlayer(requested).getName() + " &ehas invited you to play in their party!"),
CC.translate("&d" + Bukkit.getPlayer(requester).getName() + " &ehas invited you to play in their party!"),
CC.translate("&aClick to join the party!"),
"/party accept " + Bukkit.getPlayer(requested).getName()
"/party accept " + Bukkit.getPlayer(requester).getName()
);
partyInv.sendToPlayer(Bukkit.getPlayer(requested));
}