Merge pull request #285 from mung3r/master

CommandsEX fixup
This commit is contained in:
Rodney Ramos 2012-10-16 16:18:07 -07:00
commit 62f6366240
2 changed files with 8 additions and 1 deletions

View File

@ -251,6 +251,13 @@
<scope>system</scope>
<systemPath>${project.basedir}/lib/Dosh.jar</systemPath>
</dependency>
<dependency>
<groupId>com.github.zathrus_writer.commandsex</groupId>
<artifactId>CommandsEX</artifactId>
<version>1.98</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/CommandsEx.jar</systemPath>
</dependency>
</dependencies>
<build>
<resources>

View File

@ -31,7 +31,7 @@ public class Economy_CommandsEX implements Economy {
Bukkit.getServer().getPluginManager().registerEvents(new EconomyServerListener(this), plugin);
if (economy == null) {
Plugin commandsex = plugin.getServer().getPluginManager().getPlugin("Essentials");
Plugin commandsex = plugin.getServer().getPluginManager().getPlugin("CommandsEx");
if (commandsex != null && commandsex.isEnabled()) {
economy = (CommandsEX) commandsex;