Пример #1
0
 /**
  * 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;
 }
Пример #2
0
 public static boolean debugMessage(Object... s) {
   if (debugMode) plugin.getLogger().info(TextFormat.clean(join(s)));
   return true;
 }
Пример #3
0
 /**
  * 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;
 }