Skip to content

Commit

Permalink
mcMMO is now handled in Depenizen
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomeffinWay committed Mar 13, 2013
1 parent d5a4224 commit da14c28
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 67 deletions.
10 changes: 0 additions & 10 deletions pom.xml
Expand Up @@ -21,10 +21,6 @@

<!-- Repositories -->
<repositories>
<repository>
<id>mcMMO-repo</id>
<url>http://repo.mcmmo.info/</url>
</repository>
<repository>
<id>vault-repo</id>
<url>http://ci.herocraftonline.com/plugin/repository/everything/</url>
Expand Down Expand Up @@ -100,12 +96,6 @@
<version>5.6.6-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.gmail.nossr50.mcMMO</groupId>
<artifactId>mcMMO</artifactId>
<version>1.4.00-dev4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>org.json</artifactId>
Expand Down
10 changes: 0 additions & 10 deletions src/main/java/net/aufdemrand/denizen/tags/core/PlayerTags.java
Expand Up @@ -9,7 +9,6 @@
import net.aufdemrand.denizen.utilities.arguments.aH;
import net.aufdemrand.denizen.utilities.debugging.dB;
import net.aufdemrand.denizen.utilities.depends.Depends;
import net.aufdemrand.denizen.utilities.depends.MCMMOUtilities;
import net.aufdemrand.denizen.utilities.nbt.NBTItem;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
Expand Down Expand Up @@ -389,15 +388,6 @@ else if (subType.equalsIgnoreCase("CURRENCY"))
dB.echoError("Cannot check group! No permissions loaded!");
}

} else if (type.equalsIgnoreCase("MCMMO")) {
if(Depends.mcmmo != null) {
if (subType.equalsIgnoreCase("LEVEL")) {
event.setReplaced(String.valueOf(MCMMOUtilities.getPlayerSkillLevel(p.getName(), subTypeContext)));
}
} else {
dB.echoError("mcMMO not loaded! Have you installed the mcMMO plugin?");
}

} else if (type.equalsIgnoreCase("GAMEMODE")) {
if (subType.equalsIgnoreCase("ID"))
event.setReplaced(String.valueOf(p.getGameMode().getValue()));
Expand Down
Expand Up @@ -10,13 +10,11 @@

import com.comphenix.protocol.ProtocolLibrary;
import com.comphenix.protocol.ProtocolManager;
import com.gmail.nossr50.mcMMO;
import com.sk89q.worldguard.bukkit.WorldGuardPlugin;

public class Depends {

public static WorldGuardPlugin worldGuard = null;
public static mcMMO mcmmo = null;
public static Citizens citizens = null;

public static Economy economy = null;
Expand All @@ -30,7 +28,6 @@ public void initialize() {
setupPermissions();
setupChat();
setupWorldGuard();
setupMCMMO();
setupCitizens();
setupProtocolManager();
}
Expand Down Expand Up @@ -85,14 +82,6 @@ private boolean setupWorldGuard() {
worldGuard = (WorldGuardPlugin) Bukkit.getServer().getPluginManager().getPlugin("WorldGuard");
return worldGuard != null;
}

private boolean setupMCMMO() {
if (Bukkit.getServer().getPluginManager().getPlugin("mcMMO") == null) {
return false;
}
mcmmo = (mcMMO) Bukkit.getServer().getPluginManager().getPlugin("mcMMO");
return mcmmo != null;
}

private boolean setupCitizens() {
citizens = (Citizens) Bukkit.getServer().getPluginManager().getPlugin("Citizens");
Expand Down

This file was deleted.

0 comments on commit da14c28

Please sign in to comment.