java.lang.Object
studio.magemonkey.codex.legacy.utils.Utils

public final class Utils extends Object
  • Method Details

    • parseInt

      public static Integer parseInt(String num)
    • fixColors

      public static String fixColors(String string)
      Fixes color characters in a string
      Parameters:
      string - message to fix
      Returns:
      new string
    • fixColors

      public static String[] fixColors(String... strings)
    • fixColors

      public static List<String> fixColors(List<String> list)
      Fixes color characters in a List
      Parameters:
      list - List to fix
      Returns:
      new List
    • removeColors

      public static List<String> removeColors(List<String> list)
      Strips colors from the list.
      Parameters:
      list - List of Strings to remove color from
      Returns:
      New ArrayList of cleaned Strings
    • removeColors

      public static String[] removeColors(String... strings)
    • removeColors

      public static String removeColors(String string)
    • toInt

      public static Integer toInt(String str)
    • parseDateDiff

      public static long parseDateDiff(String time, boolean future)
    • parseDateDiff

      public static long parseDateDiff(String time, long from, boolean future)
    • getFriendlyTime

      public static String getFriendlyTime(long millis)
    • locToString

      public static String locToString(org.bukkit.Location loc, boolean direction)
    • locToString

      public static String locToString(org.bukkit.Location loc)
    • stringToLoc

      public static org.bukkit.Location stringToLoc(String locStr)