mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-11 21:57:40 +00:00
Disable Area Kill for Parties
This commit is contained in:
1 parent
0983a8dba1
commit
2e16e2bea7
1 file changed
+14
-12
@@ -341,18 +341,20 @@ public class ServerEventsHandler {
|
||||
if (data.quest.type != EnumQuestType.Kill && data.quest.type != EnumQuestType.AreaKill)
|
||||
continue;
|
||||
|
||||
if (data.quest.type == EnumQuestType.AreaKill && all) {
|
||||
List<EntityPlayer> list = player.worldObj.getEntitiesWithinAABB(EntityPlayer.class, entity.boundingBox.expand(10, 10, 10));
|
||||
for (EntityPlayer pl : list) {
|
||||
if (pl != player) {
|
||||
if(party == null){
|
||||
doQuest(pl, entity, false);
|
||||
} else if(!party.hasPlayer(pl.getUniqueID())){
|
||||
doQuest(pl, entity, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// Disable Area Kill for Party
|
||||
// if (data.quest.type == EnumQuestType.AreaKill && all) {
|
||||
// List<EntityPlayer> list = player.worldObj.getEntitiesWithinAABB(EntityPlayer.class, entity.boundingBox.expand(10, 10, 10));
|
||||
// for (EntityPlayer pl : list) {
|
||||
// if (pl != player) {
|
||||
// if(party == null){
|
||||
// doQuest(pl, entity, false);
|
||||
// } else if(!party.hasPlayer(pl.getUniqueID())){
|
||||
// doQuest(pl, entity, false);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
String name = entityName;
|
||||
QuestKill quest = (QuestKill) data.quest.questInterface;
|
||||
|
||||
|
||||
Reference in new issue
Block a user