File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
src/main/java/com/github/elic0de/thejpspit Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ public void death(PitPlayer player) {
4040 player .increaseDeaths ();
4141 killer .increaseKills ();
4242 killer .increaseXP ();
43+ killer .addReward ();
4344
4445 pit .getRatingHelper ().initRating (player );
4546 pit .getRatingHelper ().initRating (killer );
Original file line number Diff line number Diff line change @@ -69,6 +69,13 @@ public void addItem() {
6969 player .updateInventory ();
7070 }
7171
72+ public void addReward () {
73+ final PlayerInventory inventory = player .getInventory ();
74+
75+ inventory .addItem (new ItemStack (Material .GOLDEN_APPLE ));
76+ player .updateInventory ();
77+ }
78+
7279 public void showHealth (PitPlayer targetPit ) {
7380 ShowHealth .showHealth (this , targetPit );
7481 }
You can’t perform that action at this time.
0 commit comments