mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-15 20:14:42 +02:00
Added party alliances
Adds the following commands: `/party alliance` `/party alliance invite <target>` `/party alliance accept` Allies will share party chat and will not be able to harm eachother. Item and XP sharing is limitied to a single party. Allowing two parties to team up without sharing resources and XP. Closes #1009
This commit is contained in:
@ -93,6 +93,10 @@ public class PartyInfoCommand implements CommandExecutor {
|
||||
private void displayPartyHeader(Player player, Party party) {
|
||||
player.sendMessage(LocaleLoader.getString("Commands.Party.Header"));
|
||||
player.sendMessage(LocaleLoader.getString("Commands.Party.Status", party.getName(), LocaleLoader.getString("Party.Status." + (party.isLocked() ? "Locked" : "Unlocked"))));
|
||||
|
||||
if (party.getAlly() != null) {
|
||||
player.sendMessage(LocaleLoader.getString("Commands.Party.Status.Alliance", party.getAlly().getName()));
|
||||
}
|
||||
}
|
||||
|
||||
private void displayMemberInfo(Player player, McMMOPlayer mcMMOPlayer, Party party) {
|
||||
|
Reference in New Issue
Block a user