Skip to content

Commit

Permalink
Check if player exists
Browse files Browse the repository at this point in the history
  • Loading branch information
onebone committed Jan 3, 2016
1 parent dbe12bd commit 65ab04e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ public boolean execute(CommandSender sender, String label, String[] args){
}

double money = this.plugin.myMoney(player);
if(money < 0){
sender.sendMessage(this.plugin.getMessage("player-never-connected", new String[]{player}, sender));
return true;
}
sender.sendMessage(this.plugin.getMessage("seemoney-seemoney", new String[]{player, Double.toString(money)}, sender));
return true;
}
Expand Down

0 comments on commit 65ab04e

Please sign in to comment.