04. PLACEHOLDERS

The available placeholders are as follows :

  • {tm_player} : Displays the name of the player.
  • {tm_world} : Displays the name of the world.
  • {tm_tick} : Displays the current tick.
  • {tm_time12} : Displays the current time in hh:mm:ss format. (1 → 12)
  • {tm_time24} : Displays the current time in HH:mm:ss format. (0 → 23)
  • {tm_hours12} : Displays the current hour value in 2 digits. (1 → 12)
  • {tm_hours24} : Displays the current hour value in 2 digits. (0 → 23)
  • {tm_minutes} : Displays the current minutes value in 2 digits.
  • {tm_seconds} : Displays the current seconds value in 2 digits.
  • {tm_ampm} : Displays the current AM or PM part of the day.
  • {tm_daypart} : Displays the name of the current part of the day, among the four existing ones, in each of the languages.
  • {tm_currentday} : Displays the number of the current day. (1 → ∞)
  • {tm_elapseddays} : Displays the number of elapsed day(s). (0 → ∞)
  • {tm_dayname} : Displays the name of current day, based on entries in the lang.yml file.
  • {tm_yearday} : Displays the number of the day in the year. (1 → 365)
  • {tm_yearweek} : Displays the number of the week in the year. (1 → 52)
  • {tm_week} : Displays the number of elapsed weeks. (1 → ∞)
  • {tm_monthname} : Displays the name of current month, based on entries in the lang.yml file.
  • {tm_dd} : Displays the day part of the date in 2 digits.
  • {tm_mm} : Displays the month part of the date in 2 digits.
  • {tm_yy} : Displays the year part of the date in 2 digits.
  • {tm_yyyy} : Displays the year part of the date in 4 digits.

Please note that these placeholders are case sensitive.

They can be used in lang and cmds YAML files, but also in signs, books, chat messages and commands.

DEPEDENCIES

TimeManager can display its placeholders through PlaceholderAPI and MVdWPlaceholderAPI. You just need to place the API in your plugin folder and set the related node to 'true' in the TimeManager config.yml file.