File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -179,3 +179,25 @@ index a5984ab06cce95d30e70511e125f69339b574c04..e19a3df9aa2204b44c0b029bda141ae6
179
179
+ }
180
180
+ // Paper end
181
181
}
182
+ diff --git a/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java b/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java
183
+ index a01d4c21bedc7f1a54f5a330bb4c2909ce3a18e4..48f272747b8d5ab43f79a9d474713aca79f121b7 100644
184
+ --- a/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java
185
+ +++ b/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java
186
+ @@ -63,6 +63,17 @@ public class PlayerDeathEvent extends EntityDeathEvent {
187
+ }
188
+
189
+ // Paper start
190
+ + /**
191
+ + * Clarity method for getting the player. Not really needed except
192
+ + * for reasons of clarity.
193
+ + *
194
+ + * @return Player who is involved in this event
195
+ + */
196
+ + @NotNull
197
+ + public Player getPlayer() {
198
+ + return getEntity();
199
+ + }
200
+ +
201
+ /**
202
+ * Set the death message that will appear to everyone on the server.
203
+ *
You can’t perform that action at this time.
0 commit comments