Skip to content

Commit

Permalink
Merge pull request #220 from Kingdom-Programmers/advanced-warfare
Browse files Browse the repository at this point in the history
now informs players in a faction when land is conquered from them
  • Loading branch information
dmccoystephenson authored Jun 10, 2020
2 parents 240a84c + e2a5f37 commit ed1d165
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/factionsystem/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,9 @@ public void addChunkAtPlayerLocation(Player player) {
newChunk.setWorld(player.getLocation().getWorld().getName());
claimedChunks.add(newChunk);
player.sendMessage(ChatColor.GREEN + "Land conquered from " + faction.getName() + "! Demesne Size: " + getChunksClaimedByFaction(faction.getName(), claimedChunks) + "/" + faction.getCumulativePowerLevel());

sendAllPlayersInFactionMessage(faction, ChatColor.RED + getPlayersFaction(player.getName(), factions).getName() + " has conquered land from your faction!");

return;
}
}
Expand Down

0 comments on commit ed1d165

Please sign in to comment.