Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
Added some outputException
Browse files Browse the repository at this point in the history
Fixed a code comment
  • Loading branch information
Xenmai committed May 16, 2017
1 parent 954ef86 commit 62e8e07
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.denizenscript.denizen2sponge.commands.world;

import com.denizenscript.denizen2core.Denizen2Core;
import com.denizenscript.denizen2core.commands.AbstractCommand;
import com.denizenscript.denizen2core.commands.CommandEntry;
import com.denizenscript.denizen2core.commands.CommandQueue;
Expand Down Expand Up @@ -86,6 +87,7 @@ public void execute(CommandQueue queue, CommandEntry entry) {
}
} catch (InterruptedException | ExecutionException e) {
queue.handleError(entry, "World deletion failed!");
Denizen2Core.getImplementation().outputException(e);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.denizenscript.denizen2sponge.commands.world;

import com.denizenscript.denizen2core.Denizen2Core;
import com.denizenscript.denizen2core.commands.AbstractCommand;
import com.denizenscript.denizen2core.commands.CommandEntry;
import com.denizenscript.denizen2core.commands.CommandQueue;
Expand Down Expand Up @@ -222,6 +223,7 @@ public void execute(CommandQueue queue, CommandEntry entry) {
}
catch (IOException e) {
queue.handleError(entry, "World creation failed!");
Denizen2Core.getImplementation().outputException(e);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class RemoveGameRuleCommand extends AbstractCommand {
// Note: you can't remove default minecraft game rules.
// @Example
// # Removes the custom game rules 'xp_multiplier' and
// 'currency_multiplier' from world 'Games'.
// # 'currency_multiplier' from world 'Games'.
// - removegamerule Games xp_multiplier|currency_multiplier
// -->

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.denizenscript.denizen2sponge.utilities;

import com.denizenscript.denizen2core.Denizen2Core;
import com.denizenscript.denizen2core.utilities.CoreUtilities;
import org.spongepowered.api.world.gamerule.DefaultGameRules;

Expand All @@ -20,6 +21,8 @@ public static void init() {
}
}
catch (IllegalAccessException e) {
Denizen2Core.getImplementation().outputError("Failed to initialize the default game rules maps!");
Denizen2Core.getImplementation().outputException(e);
}
}
}

0 comments on commit 62e8e07

Please sign in to comment.