mirror of
https://github.com/PlaceholderAPI/Javascript-Expansion.git
synced 2025-05-24 20:02:44 +00:00
changed Suffix Format to Number Suffix
parent
23869e032b
commit
70fc5779a9
@ -32,7 +32,7 @@ The JavaScript Expansion for PlaceholderAPI allows for expansions that wouldn't
|
|||||||
* [**Health Bar**](#health-bar)
|
* [**Health Bar**](#health-bar)
|
||||||
* [**Player Exp Points**](#player-exp-points)
|
* [**Player Exp Points**](#player-exp-points)
|
||||||
* [**Number of Players in Group of Worlds**](#number-of-players-in-group-of-worlds)
|
* [**Number of Players in Group of Worlds**](#number-of-players-in-group-of-worlds)
|
||||||
* [**Suffix Format**](#suffix-format)
|
* [**Number Suffix**](#number-suffix)
|
||||||
***
|
***
|
||||||
|
|
||||||
### Random Integer Between
|
### Random Integer Between
|
||||||
@ -1164,13 +1164,13 @@ number_in_group_of_worlds:
|
|||||||
|
|
||||||
***
|
***
|
||||||
|
|
||||||
### Suffix Format
|
### Number Suffix
|
||||||
* **Author:** cj89898
|
* **Author:** cj89898
|
||||||
* **Description:** Formats numbers to a shortened version with a suffix. Suffixes and Decimals can both be customized.
|
* **Description:** Formats numbers to a shortened version with a suffix. Suffixes and Decimals can both be customized.
|
||||||
* **Usage:** `%javascript_suffixFormat_<raw number>%` - Can use placeholders surrounded by `{}`
|
* **Usage:** `%javascript_numberSuffix_<raw number>%` - Can use placeholders surrounded by `{}`
|
||||||
* **Example:** `%javascript_suffixFormat_{vault_eco_balance}%` could return `1.89S`
|
* **Example:** `%javascript_numberSuffix_{vault_eco_balance}%` could return `1.89S`
|
||||||
|
|
||||||
**Save as** `suffixFormat.js`
|
**Save as** `numberSuffix.js`
|
||||||
|
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
@ -1196,6 +1196,6 @@ formatNum(num);
|
|||||||
**Add to** `javascript_placeholders.yml`
|
**Add to** `javascript_placeholders.yml`
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
suffix_format:
|
numberSuffix:
|
||||||
file: suffixFormat.js
|
file: numberSuffix.js
|
||||||
```
|
```
|
Loading…
x
Reference in New Issue
Block a user