Skip to content

Commit

Permalink
Add convenience methods to DebugUtil.
Browse files Browse the repository at this point in the history
  • Loading branch information
asofold committed Oct 21, 2015
1 parent 8de7907 commit 6ee9528
Showing 1 changed file with 19 additions and 1 deletion.
Expand Up @@ -295,6 +295,24 @@ public static void outputDebugVehicleMove(final Player player, final Entity vehi
NCPAPIProvider.getNoCheatPlusAPI().getLogManager().debug(Streams.TRACE_FILE, builder.toString());
}

/**
* Debug to TRACE_FILE.
* @return The given returnValue.
*/
public static boolean debug(String message, boolean returnValue) {
NCPAPIProvider.getNoCheatPlusAPI().getLogManager().debug(Streams.TRACE_FILE, message);
return returnValue;
}

/**
* Debug to TRACE_FILE.
* @param message
* @return
*/
public static void debug(String message) {
NCPAPIProvider.getNoCheatPlusAPI().getLogManager().debug(Streams.TRACE_FILE, message);
}

public static String toJava(final double[] doubles) {
final StringBuilder builder = new StringBuilder(20 + doubles.length * 20);
toJava(doubles, builder);
Expand All @@ -320,7 +338,7 @@ public static void toJava(final double[] doubles, final StringBuilder builder) {
}
builder.append("}");
}

// TODO: method to log raytracing/recorder directly with prefix message.

}

0 comments on commit 6ee9528

Please sign in to comment.