Fix bug caused by some other plugins.

This commit is contained in:
AppleDash 2016-07-17 22:53:46 -04:00
parent 5702c1ed5c
commit 948e617d4e
4 changed files with 8 additions and 4 deletions

View File

@ -6,10 +6,10 @@
<parent>
<groupId>org.appledash</groupId>
<artifactId>SaneEconomy</artifactId>
<version>0.5.5-SNAPSHOT</version>
<version>0.5.6-SNAPSHOT</version>
</parent>
<artifactId>SaneEconomyCore</artifactId>
<version>0.5.5-SNAPSHOT</version>
<version>0.5.6-SNAPSHOT</version>
<dependencies>
<dependency>

View File

@ -51,6 +51,10 @@ public class EconomySaneEconomy implements Economy {
@Override
public boolean hasAccount(String playerName) {
if (Bukkit.getServer().getPlayer(playerName) == null) {
return false;
}
return SaneEconomy.getInstance().getEconomyManager().accountExists(Bukkit.getServer().getPlayer(playerName));
}

View File

@ -1,7 +1,7 @@
name: SaneEconomy
author: AppleDash
main: org.appledash.saneeconomy.SaneEconomy
version: 0.5.5
version: 0.5.6
softdepends: [Vault]
commands:
balance:

View File

@ -6,7 +6,7 @@
<groupId>org.appledash</groupId>
<artifactId>SaneEconomy</artifactId>
<version>0.5.5-SNAPSHOT</version>
<version>0.5.6-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>