Skip to content

Commit

Permalink
Srun command br0ke
Browse files Browse the repository at this point in the history
  • Loading branch information
HaedHutner committed Jul 14, 2018
1 parent 0280678 commit d45924c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/atherys/script/command/SRunCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public CommandResult execute(CommandSource src, CommandContext args) throws Comm
String script = args.<String>getOne("javascript").orElse("");

if (script.isEmpty()) return CommandResult.empty();

else {
try {
long before = System.currentTimeMillis();
Expand All @@ -54,7 +53,7 @@ public CommandResult execute(CommandSource src, CommandContext args) throws Comm
src.sendMessage(Text.of(ERROR_PREFIX, TextColors.RED, "Executed: ", TextColors.RESET, script));
src.sendMessage(Text.of(ERROR_PREFIX, TextColors.RED, "Error: ", TextColors.RESET, e.getMessage()));

if (e.getMessage() == null) e.printStackTrace();
e.printStackTrace();
}
}

Expand Down

0 comments on commit d45924c

Please sign in to comment.