{"id":18866669,"url":"https://github.com/andre601/formatter-expansion","last_synced_at":"2025-04-14T14:31:13.095Z","repository":{"id":41466368,"uuid":"262575538","full_name":"Andre601/Formatter-Expansion","owner":"Andre601","description":"Up-to-date repo at","archived":true,"fork":false,"pushed_at":"2025-02-25T20:40:58.000Z","size":189,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T03:24:58.986Z","etag":null,"topics":["formatting","placeholderapi","placeholderexpansion","spigot"],"latest_commit_sha":null,"homepage":"https://codeberg.org/Andre601/Formatter-Expansion","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Andre601.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-09T13:20:46.000Z","updated_at":"2025-02-25T20:41:19.000Z","dependencies_parsed_at":"2023-02-08T20:01:03.959Z","dependency_job_id":null,"html_url":"https://github.com/Andre601/Formatter-Expansion","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andre601%2FFormatter-Expansion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andre601%2FFormatter-Expansion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andre601%2FFormatter-Expansion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andre601%2FFormatter-Expansion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Andre601","download_url":"https://codeload.github.com/Andre601/Formatter-Expansion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248897089,"owners_count":21179536,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["formatting","placeholderapi","placeholderexpansion","spigot"],"created_at":"2024-11-08T05:07:12.614Z","updated_at":"2025-04-14T14:31:13.070Z","avatar_url":"https://github.com/Andre601.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[wiki]: https://wiki.powerplugins.net/wiki/formatter-expansion\n[changelog]: https://github.com/Andre601/Formatter-Expansion/blob/master/CHANGELOG.md\n\n# Repository Archived\nThis repository has been archived. You can find the up-to-date source of it at codeberg:  \nhttps://codeberg.org/Andre601/Formatter-Expansion\n\n# Formatter Expansion\n\n\u003ca href=\"https://discord.gg/6dazXp6\" target=\"_blank\"\u003e\n  \u003cimg alt=\"discord\" src=\"https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@2/assets/minimal/social/discord-singular_vector.svg\" height=\"64\" align=\"right\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://app.revolt.chat/invite/74TpERXA\" target=\"_blank\"\u003e\n  \u003cimg alt=\"revolt\" src=\"https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@2/assets/minimal/social/revolt-singular_vector.svg\" height=\"64\" align=\"right\"\u003e\n\u003c/a\u003e\n\n\u003e [!IMPORTANT]  \n\u003e The Formatter expansion uses Paper 1.19.3 and therefore builds against Java 17.  \n\u003e This makes it incompatible with older Java Distributions. Older Minecraft versions *may* be supported, but it isn't guaranteed.\n\u003e \n\u003e Please make sure to use **at least** Java 17 or else you may get a `UnsupportedClassVersionError` when it loads.\n\n## Placeholders\nThe Formatter expansion currently offers the following placeholders:\n\n- [`%formatter_number_format[_[locale]:[pattern]]_\u003cnumber\u003e%`](./placeholders/number/format.md)\n- [`%formatter_number_from:\u003ctime_unit\u003e_to:\u003ctime_unit\u003e_\u003cnumber\u003e%`](./placeholders/number/fromto.md)\n- [`%formatter_number_round[_[precision]:[rounding_mode]]_\u003cnumber\u003e%`](./placeholders/number/round.md)\n- [`%formatter_number_shorten_\u003cnumber\u003e%`](./placeholders/number/shorten.md)\n- [`%formatter_number_time[_\u003ctime_unit\u003e]_\u003cnumber\u003e%`](./placeholders/number/time.md)\n- [`%formatter_text_length_\u003ctext\u003e%`](./placeholders/text/length.md)\n- [`%formatter_text_lowercase_\u003ctext\u003e%`](./placeholders/text/lowercase.md)\n- [`%formatter_text_replace_[target]_[replacement]_\u003ctext\u003e%`](./placeholders/text/replace.md)\n- [`%formatter_text_substring_[start]:[end]_\u003ctext\u003e%`](./placeholders/text/substring.md)\n- [`%formatter_text_uppercase_\u003ctext\u003e%`](./placeholders/text/uppercase.md)\n\nAn explanation of the placeholder pages is found in the [placeholders folder](./placeholders/README.md)\n\n### External placeholder support\nThe expansion allows you to use placeholders from other expansions such as the Player expansion.  \nTo use a placeholder, make sure to use the bracket-format instead of the percent one (i.e. `{player_name}` instead of `%player_name%`).\n\n## Config options\nThe expansion adds a few options to the config.yml of PlaceholderAPI.  \nThey can be found under `expansions.formatter`.\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\" nowrap=\"nowrap\"\u003e\n      Option\n    \u003c/td\u003e\n    \u003ctd align=\"center\" nowrap=\"nowrap\"\u003e\n      Description\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003ch4\u003e\u003ccode\u003eformatting.pattern\u003c/code\u003e\u003c/h4\u003e\n    \u003c/td\u003e\n    \u003ctd rowspan=\"2\"\u003e\n      The default \u003ca href=\"https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/DecimalFormat.html\"\u003eDecimalFormat\u003c/a\u003e to use for the \u003ca href=\"./placeholders/number/format.md\"\u003eformat placeholder\u003c/a\u003e.\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003cb\u003eType:\u003c/b\u003e String\u003cbr\u003e\n      \u003cb\u003eDefault:\u003c/b\u003e \u003ccode\u003e#,###,###.##\u003c/code\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003ch4\u003e\u003ccode\u003eformatting.locale\u003c/code\u003e\u003c/h4\u003e\n    \u003c/td\u003e\n    \u003ctd rowspan=\"2\"\u003e\n      The country code to use for the decimal format.\u003cbr\u003e\n      You need to replace \u003ccode\u003e_\u003c/code\u003e with \u003ccode\u003e-\u003c/code\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003cb\u003eType:\u003c/b\u003e String\u003cbr\u003e\n      \u003cb\u003eDefault:\u003c/b\u003e \u003ccode\u003een-US\u003c/code\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003ch4\u003e\u003ccode\u003eshorten.thousands\u003c/code\u003e\u003c/h4\u003e\n    \u003c/td\u003e\n    \u003ctd rowspan=\"2\"\u003e\n      The letter used to indicate thousands.\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003cb\u003eType:\u003c/b\u003e String\u003cbr\u003e\n      \u003cb\u003eDefault:\u003c/b\u003e \u003ccode\u003eK\u003c/code\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003ch4\u003e\u003ccode\u003eshorten.millions\u003c/code\u003e\u003c/h4\u003e\n    \u003c/td\u003e\n    \u003ctd rowspan=\"2\"\u003e\n      The letter used to indicate millions.\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003cb\u003eType:\u003c/b\u003e String\u003cbr\u003e\n      \u003cb\u003eDefault:\u003c/b\u003e \u003ccode\u003eM\u003c/code\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003ch4\u003e\u003ccode\u003eshorten.billions\u003c/code\u003e\u003c/h4\u003e\n    \u003c/td\u003e\n    \u003ctd rowspan=\"2\"\u003e\n      The letter used to indicate billions.\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003cb\u003eType:\u003c/b\u003e String\u003cbr\u003e\n      \u003cb\u003eDefault:\u003c/b\u003e \u003ccode\u003eB\u003c/code\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003ch4\u003e\u003ccode\u003eshorten.trillions\u003c/code\u003e\u003c/h4\u003e\n    \u003c/td\u003e\n    \u003ctd rowspan=\"2\"\u003e\n      The letter used to indicate trillions.\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003cb\u003eType:\u003c/b\u003e String\u003cbr\u003e\n      \u003cb\u003eDefault:\u003c/b\u003e \u003ccode\u003eT\u003c/code\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003ch4\u003e\u003ccode\u003eshorten.quadrillions\u003c/code\u003e\u003c/h4\u003e\n    \u003c/td\u003e\n    \u003ctd rowspan=\"2\"\u003e\n      The letter used to indicate quadrillions.\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003cb\u003eType:\u003c/b\u003e String\u003cbr\u003e\n      \u003cb\u003eDefault:\u003c/b\u003e \u003ccode\u003eQ\u003c/code\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003ch4\u003e\u003ccode\u003etime.condensed\u003c/code\u003e\u003c/h4\u003e\n    \u003c/td\u003e\n    \u003ctd rowspan=\"2\"\u003e\n      Whether the time returned by the \u003ca href=\"./placeholders/number/time\"\u003etime placeholder\u003c/a\u003e should not have any spaces.\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003cb\u003eType:\u003c/b\u003e Boolean\u003cbr\u003e\n      \u003cb\u003eDefault:\u003c/b\u003e \u003ccode\u003efalse\u003c/code\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003ch4\u003e\u003ccode\u003etime.days\u003c/code\u003e\u003c/h4\u003e\n    \u003c/td\u003e\n    \u003ctd rowspan=\"2\"\u003e\n      The text used to indicate days.\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003cb\u003eType:\u003c/b\u003e String\u003cbr\u003e\n      \u003cb\u003eDefault:\u003c/b\u003e \u003ccode\u003ed\u003c/code\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003ch4\u003e\u003ccode\u003etime.hours\u003c/code\u003e\u003c/h4\u003e\n    \u003c/td\u003e\n    \u003ctd rowspan=\"2\"\u003e\n      The text used to indicate hours.\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003cb\u003eType:\u003c/b\u003e String\u003cbr\u003e\n      \u003cb\u003eDefault:\u003c/b\u003e \u003ccode\u003eh\u003c/code\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003ch4\u003e\u003ccode\u003etime.minutes\u003c/code\u003e\u003c/h4\u003e\n    \u003c/td\u003e\n    \u003ctd rowspan=\"2\"\u003e\n      The text used to indicate minutes.\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003cb\u003eType:\u003c/b\u003e String\u003cbr\u003e\n      \u003cb\u003eDefault:\u003c/b\u003e \u003ccode\u003em\u003c/code\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003ch4\u003e\u003ccode\u003etime.seconds\u003c/code\u003e\u003c/h4\u003e\n    \u003c/td\u003e\n    \u003ctd rowspan=\"2\"\u003e\n      The text used to indicate seconds.\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003cb\u003eType:\u003c/b\u003e String\u003cbr\u003e\n      \u003cb\u003eDefault:\u003c/b\u003e \u003ccode\u003es\u003c/code\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003ch4\u003e\u003ccode\u003etime.milliseconds\u003c/code\u003e\u003c/h4\u003e\n    \u003c/td\u003e\n    \u003ctd rowspan=\"2\"\u003e\n      The text used to indicate milliseconds.\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003cb\u003eType:\u003c/b\u003e String\u003cbr\u003e\n      \u003cb\u003eDefault:\u003c/b\u003e \u003ccode\u003ems\u003c/code\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003ch4\u003e\u003ccode\u003erounding.mode\u003c/code\u003e\u003c/h4\u003e\n    \u003c/td\u003e\n    \u003ctd rowspan=\"2\"\u003e\n      The default rounding mode to use if no mode was defined in the \u003ca href=\"./placeholders/number/round.md\"\u003erounding placeholder\u003c/a\u003e.\n      \u003cbr\u003e\n      \u003cbr\u003e\n      \u003cb\u003eAvailable modes:\u003c/b\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ccode\u003eup\u003c/code\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ccode\u003edown\u003c/code\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ccode\u003eceiling\u003c/code\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ccode\u003efloor\u003c/code\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ccode\u003ehalf-up\u003c/code\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ccode\u003ehalf-down\u003c/code\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ccode\u003ehalf-even\u003c/code\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003cb\u003eType:\u003c/b\u003e String\u003cbr\u003e\n      \u003cb\u003eDefault:\u003c/b\u003e \u003ccode\u003ehalf-up\u003c/code\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003ch4\u003e\u003ccode\u003erounding.precision\u003c/code\u003e\u003c/h4\u003e\n    \u003c/td\u003e\n    \u003ctd rowspan=\"2\"\u003e\n      Default number of decimal points to display when no precision was defined the \u003ca href=\"/placeholders/number/round.md\"\u003erounding placeholder\u003c/a\u003e.\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd nowrap=\"nowrap\"\u003e\n      \u003cb\u003eType:\u003c/b\u003e Number \u003ci\u003e(0 ≤ x)\u003c/i\u003e\u003cbr\u003e\n      \u003cb\u003eDefault:\u003c/b\u003e \u003ccode\u003e0\u003c/code\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandre601%2Fformatter-expansion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandre601%2Fformatter-expansion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandre601%2Fformatter-expansion/lists"}