Skip to content

Commit

Permalink
remove debugging lines
Browse files Browse the repository at this point in the history
  • Loading branch information
crashdemons committed Oct 1, 2018
1 parent 552f1ff commit 785bd57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,16 @@ public PlayerDeathRecord(EntityDeathEvent event){
killerId=null;
else
killerId=killer.getUniqueId();
System.out.println("PlayerDeath "+victimId+" by "+killerId);
}
}
boolean sameKiller(PlayerDeathRecord record){
if(killerId==null && record.killerId==null) return true;
return killerId.equals(record.killerId);
}
boolean closeTo(PlayerDeathRecord record){
if(record==null){
System.out.println("null comparison");
return false;
}
System.out.println("Comparing "+victimId+" by "+killerId+" :: "+record.victimId+" by "+record.killerId);
if(victimId.equals(record.victimId) && sameKiller(record)){
System.out.println(" comparison timing");
if(record==null) return false;
if(victimId.equals(record.victimId) && sameKiller(record))
return super.closeTo(record, TIME_THRESHOLD_MS);
}
System.out.println(" comparison mismatch");
return false;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ public void onEntityDeath(EntityDeathEvent event) {
if(skullType==null) return;//entity type is one we don't support - don't attempt to handle heads for it.
String mobDropConfig = skullType.getConfigName();
Double droprate = plugin.configFile.getDouble(mobDropConfig);
//System.out.println(skullType);
//System.out.println(mobDropConfig);
switch (skullType) {
case PLAYER:
if (plugin.configFile.getBoolean("nerfdeathspam"))
Expand Down

0 comments on commit 785bd57

Please sign in to comment.