stupid
This commit is contained in:
parent
9a442cbb9d
commit
6c9b0c51cd
@ -20,6 +20,7 @@ public class InfoCommand extends BaseCommand {
|
|||||||
Player player = (Player) sender;
|
Player player = (Player) sender;
|
||||||
|
|
||||||
if (this.main.getPartyManager().getParty(player.getUniqueId()) == null) {
|
if (this.main.getPartyManager().getParty(player.getUniqueId()) == null) {
|
||||||
|
player.sendMessage(CC.translate("&cYou are not in a party!"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,9 +53,9 @@ public class PartyManager {
|
|||||||
public void createPartyInvite(UUID requester, UUID requested) {
|
public void createPartyInvite(UUID requester, UUID requested) {
|
||||||
this.partyInvites.computeIfAbsent(requested, k -> new ArrayList<>()).add(requester);
|
this.partyInvites.computeIfAbsent(requested, k -> new ArrayList<>()).add(requester);
|
||||||
Clickable partyInv = new Clickable(
|
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!"),
|
CC.translate("&aClick to join the party!"),
|
||||||
"/party accept " + Bukkit.getPlayer(requested).getName()
|
"/party accept " + Bukkit.getPlayer(requester).getName()
|
||||||
);
|
);
|
||||||
partyInv.sendToPlayer(Bukkit.getPlayer(requested));
|
partyInv.sendToPlayer(Bukkit.getPlayer(requested));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user