/** * Same as log, but will printout nothing if debug mode is disabled * * @param s * @return */ public boolean debug(Object... s) { if (debugMode) plugin.getLogger().info(TextFormat.clean(getText(s))); return true; }
public static boolean debugMessage(Object... s) { if (debugMode) plugin.getLogger().info(TextFormat.clean(join(s))); return true; }
/** * Send current message to log files * * @param s * @return — always returns true. Examples: Message.ERROR_MESSAGE.log(variable1); // just print * in log return Message.ERROR_MESSAGE.log(variable1); // print in log and return value true */ public boolean log(Object... s) { plugin.getLogger().info(getText(s)); return true; }