java.lang.Object
nl.mtvehicles.core.infrastructure.helpers.TextUtils

public class TextUtils extends Object
Methods for editing text (and for some reason also deprecated methods for creating vehicles - moved to VehicleUtils and VehicleClickListener)
  • Constructor Details

    • TextUtils

      public TextUtils()
  • Method Details

    • colorize

      public static String colorize(String text)
      Colorize a String with the ampersand characters.
      Parameters:
      text - Text
      Returns:
      Colorized text
    • licenseReplacer

      @Deprecated public static String licenseReplacer(String license)
      Deprecated.
      Get license plate from vehicle armor stand's name
      Parameters:
      license - Name of the vehicle
      Returns:
      Vehicle's license plate
    • list

      public static List<String> list(String... strings)
      Get a List from multiple Strings
    • createVehicle

      @Deprecated public static void createVehicle(String licensePlate, org.bukkit.entity.Player p)
      Deprecated.
      This method somehow worked, no idea how though. Use VehicleUtils.enterVehicle(String, Player) instead.
    • pickupVehicle

      @Deprecated public static void pickupVehicle(String ken, org.bukkit.entity.Player p)
      Pick up a vehicle and put it to player's inventory
      Parameters:
      ken - Vehicle's license plate
      p - Player
    • checkInvFull

      public static boolean checkInvFull(org.bukkit.entity.Player player)
      Check whether player's inventory is full
      Parameters:
      player - Player
      Returns:
      True if player's inventory is full