mirror of
https://github.com/AppleDash/SaneEconomy.git
synced 2024-09-27 14:12:58 +02:00
Make it so that you can't pay yourself.
This commit is contained in:
parent
c3853af49a
commit
9ee377044a
@ -1,5 +1,5 @@
|
||||
group 'org.appledash'
|
||||
version '0.1.5-SNAPSHOT'
|
||||
version '0.1.6-SNAPSHOT'
|
||||
|
||||
apply plugin: 'java'
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
name: SaneEconomy
|
||||
main: org.appledash.saneeconomy.SaneEconomy
|
||||
version: 0.1.5
|
||||
version: 0.1.6
|
||||
commands:
|
||||
balance:
|
||||
aliases: [bal]
|
||||
|
Loading…
Reference in New Issue
Block a user