Skip to content

Commit

Permalink
make your death count not increase when you get killed by the bot
Browse files Browse the repository at this point in the history
  • Loading branch information
Inf1nityy committed Aug 4, 2024
1 parent bde16e5 commit dbf2044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/nexia/ffa/base/BaseFfaUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public void doPreKill(NexiaPlayer attacker, NexiaPlayer player) {
}

public void calculateDeath(NexiaPlayer player, boolean sendMessage){
if (player.hasTag("bot")) return;
if (PlayerUtil.getPlayerAttacker(player.unwrap()).getTags().contains("bot")) return;

SavedPlayerData data = getDataManager().get(player).savedData;
data.incrementInteger("deaths");
Expand Down

0 comments on commit dbf2044

Please sign in to comment.