Skip to content

Commit

Permalink
Better debugz
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphan1 committed May 28, 2016
1 parent 611dada commit cf3fa86
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -7,6 +7,7 @@
import net.aufdemrand.denizencore.objects.aH;
import net.aufdemrand.denizencore.scripts.ScriptEntry;
import net.aufdemrand.denizencore.scripts.commands.AbstractCommand;
import net.aufdemrand.denizencore.utilities.debugging.dB;
import net.elseland.xikage.MythicMobs.API.IMobsAPI;
import net.elseland.xikage.MythicMobs.Mobs.MythicMob;
import net.elseland.xikage.MythicMobs.MythicMobs;
Expand Down Expand Up @@ -77,6 +78,8 @@ public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {
dLocation location = scriptEntry.getdObject("location");
Element level = scriptEntry.getElement("level");

dB.report(scriptEntry, getName(), name.debug() + location.debug() + level.debug());

IMobsAPI api = MythicMobs.inst().getAPI().getMobAPI();

try {
Expand All @@ -85,7 +88,7 @@ public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {
scriptEntry.addObject("spawned_mythicmob", new MythicMobsMob(api.getMythicMobInstance(entity)));
}
catch (Exception e) {
e.printStackTrace();
dB.echoError(e);
}

}
Expand Down

0 comments on commit cf3fa86

Please sign in to comment.