mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-10 10:20:41 -07:00
Iron men can no longer participate in lootshare
This commit is contained in:
parent
edc6f9cf07
commit
f37b30749e
2 changed files with 14 additions and 10 deletions
|
|
@ -44,9 +44,13 @@ public final class ClanInterfacePlugin extends ComponentPlugin {
|
||||||
ClanRepository.openSettings(player);
|
ClanRepository.openSettings(player);
|
||||||
return true;
|
return true;
|
||||||
case 14:
|
case 14:
|
||||||
|
if (player.getIronmanManager().checkRestriction()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
player.getDetails().getCommunication().toggleLootshare(player);
|
player.getDetails().getCommunication().toggleLootshare(player);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 590:
|
case 590:
|
||||||
final ClanRepository clan = ClanRepository.get(player.getName(), true);
|
final ClanRepository clan = ClanRepository.get(player.getName(), true);
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,7 @@ public final class NPCDropTables {
|
||||||
List<Player> players = RegionManager.getLocalPlayers(npc, 16);
|
List<Player> players = RegionManager.getLocalPlayers(npc, 16);
|
||||||
List<Player> looters = new ArrayList<>(20);
|
List<Player> looters = new ArrayList<>(20);
|
||||||
for (Player p : players) {
|
for (Player p : players) {
|
||||||
if (p != null && p.getCommunication().getClan() != null && p.getCommunication().getClan() == player.getCommunication().getClan() && p.getCommunication().isLootShare() && p.getCommunication().getLootRequirement().ordinal() >= p.getCommunication().getClan().getLootRequirement().ordinal() && !p.getIronmanManager().isIronman()) {
|
if (p != null && p.getCommunication().getClan() != null && p.getCommunication().getClan() == player.getCommunication().getClan() && p.getCommunication().isLootShare() && p.getCommunication().getLootRequirement().ordinal() >= p.getCommunication().getClan().getLootRequirement().ordinal()) {
|
||||||
looters.add(p);
|
looters.add(p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue