Skip to content

Commit

Permalink
set DamageCause to SUICIDE for scissor's DamageSource
Browse files Browse the repository at this point in the history
  • Loading branch information
granny committed Feb 18, 2025
1 parent b0d36ca commit 97dcff4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@

public DamageSource knownCause(final org.bukkit.event.entity.EntityDamageEvent.DamageCause cause) {
final DamageSource damageSource = this.copy();
@@ -42,6 +_,29 @@
@@ -42,6 +_,30 @@
return this.knownCause;
}

+ // Purpur start - Dont run with scissors!
+ public DamageSource scissors() {
+ this.knownCause(org.bukkit.event.entity.EntityDamageEvent.DamageCause.SUICIDE);
+ this.scissors = true;
+ return this;
+ }
Expand Down

0 comments on commit 97dcff4

Please sign in to comment.