Skip to content

Commit

Permalink
Compatibility with not-spigot
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jun 29, 2015
1 parent 1261bc8 commit a250c08
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/net/aufdemrand/denizen/Denizen.java
Expand Up @@ -72,7 +72,6 @@
import org.bukkit.entity.Player;
import org.bukkit.event.HandlerList;
import org.bukkit.plugin.java.JavaPlugin;
import org.spigotmc.AsyncCatcher;

import java.io.File;
import java.io.IOException;
Expand Down Expand Up @@ -358,7 +357,12 @@ public void onEnable() {
return;
}

AsyncCatcher.enabled = false;
try {
org.spigotmc.AsyncCatcher.enabled = false;
}
catch (Exception e) {
dB.echoError("Running not-Spigot?!");
}

try {
versionTag = this.getDescription().getVersion();
Expand Down

0 comments on commit a250c08

Please sign in to comment.