Make it so that you can't pay yourself.

This commit is contained in:
AppleDash 2016-06-14 05:38:21 -04:00
parent c3853af49a
commit 9ee377044a
3 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,5 @@
group 'org.appledash'
version '0.1.5-SNAPSHOT'
version '0.1.6-SNAPSHOT'
apply plugin: 'java'

View File

@ -51,6 +51,11 @@ public class PayCommand extends SaneEconomyCommand {
return;
}
if (toPlayer.getUniqueId().equals(fromPlayer.getUniqueId())) {
MessageUtils.sendMessage(sender, "You cannot pay yourself.");
return;
}
String sAmount = args[1];
double amount = NumberUtils.parsePositiveDouble(sAmount);

View File

@ -1,6 +1,6 @@
name: SaneEconomy
main: org.appledash.saneeconomy.SaneEconomy
version: 0.1.5
version: 0.1.6
commands:
balance:
aliases: [bal]