Skip to content

sidebars.yml

Flarin edited this page May 5, 2018 · 5 revisions

sidebars.yml

Rules of setting a sidebar

Mandatory fields:

  • name The name that of the sidebar
  • header The name that will be displayed as the header of the sidebar
  • entries The contents of the sidebar

Optional fields

  • aliases Other names of the sidebar

Limitations

  1. 16 lines (Others will not be rendered)
  2. 40 characters per line (Theoretically if I re-analyze my code and use team prefix/suffix trickery i think i can get that to 72 chars)
  3. No sidebars limit, but too many can cause performance derps

Placeholders

%player%

  • Gets the player name

%x% %x.player% %y% %y.player% %z% %z.player%

  • Gets the location of a player

%balance% %balance.player%

  • Gets the balance of a player

%date.HH:mm:ss, dd/MM/yyyy% %time.HH:mm:ss, dd/MM/yyyy%

  • Uses a format to encode the current time (Required)
  • Read about format codes here:
  1. https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html (Difficulty level: Overwhelming for first time readers)
  • (Currently date and time do the same thing)

%timezone%

  • Gets your timezone (e.g +00:00)

%region.1% %region.player.1%

  • Gets a region from the player's region list
  • Number signifies the rank (1st in the list, 2nd in the list, etc)

%stat.LEAVE_GAME% %mstat.MINE_BLOCK.STONE% %estat.MOB_KILLS.CHICKEN%

  1. https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/EntityType.html (Difficulty level: Moderately easy for first time readers)

%afktime% %afktimeleft%

  • Gets time past AFK or AFK time left (Inverse from each other)

Clone this wiki locally