private String parse(String msg) {
   msg = msg.replaceAll("<version>", plugin.info("version"));
   msg = msg.replaceAll("<name>", plugin.info("name"));
   msg = msg.replaceAll("<fullname>", plugin.info("fullname"));
   msg = msg.replaceAll("&([a-fA-F0-9])", "\u00A7$1");
   return msg;
 }
 /**
  * Returns a string to use as the log prefix
  *
  * @param lv The level of the message (INFO, WARN, SEVERE)
  * @return the string
  */
 private String validate(Level lv) {
   String os = "";
   try {
     os = System.getProperty("os.name");
   } catch (SecurityException e) {
   } catch (NullPointerException e) {
   } catch (IllegalArgumentException e) {
   }
   if (os.contains("Windows")) {
     return "[" + plugin.info("name") + "] ";
   } else {
     switch (lv) {
       case INFO:
         return "&A[" + plugin.info("name") + "] &F";
       case WARN:
         return "&3[" + plugin.info("name") + "] &F";
       case SEVERE:
         return "&C[" + plugin.info("name") + "] &F";
       default:
         return "[" + plugin.info("name") + "] ";
     }
   }
 }