Skip to content

Commit

Permalink
More verifications when giving levels to a killer.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePooN committed Mar 4, 2014
1 parent bc16bcb commit e8ee392
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/me/azenet/UHPlugin/UHPluginListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ public void run() {
}

if(ev.getEntity().getKiller() != null) {
Player p = ev.getEntity().getKiller();
p.giveExpLevels(5);
if(ev.getEntity().getKiller() instanceof Player) {
Player p = ev.getEntity().getKiller();
p.giveExpLevels(5);
}
}

p.setMatchInfo();
Expand Down

0 comments on commit e8ee392

Please sign in to comment.