mirror of
https://github.com/PlaceholderAPI/Javascript-Expansion.git
synced 2025-05-23 18:42: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)
|
||||
* [**Player Exp Points**](#player-exp-points)
|
||||
* [**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
|
||||
@ -1164,13 +1164,13 @@ number_in_group_of_worlds:
|
||||
|
||||
***
|
||||
|
||||
### Suffix Format
|
||||
### Number Suffix
|
||||
* **Author:** cj89898
|
||||
* **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 `{}`
|
||||
* **Example:** `%javascript_suffixFormat_{vault_eco_balance}%` could return `1.89S`
|
||||
* **Usage:** `%javascript_numberSuffix_<raw number>%` - Can use placeholders surrounded by `{}`
|
||||
* **Example:** `%javascript_numberSuffix_{vault_eco_balance}%` could return `1.89S`
|
||||
|
||||
**Save as** `suffixFormat.js`
|
||||
**Save as** `numberSuffix.js`
|
||||
|
||||
|
||||
```javascript
|
||||
@ -1196,6 +1196,6 @@ formatNum(num);
|
||||
**Add to** `javascript_placeholders.yml`
|
||||
|
||||
```yaml
|
||||
suffix_format:
|
||||
file: suffixFormat.js
|
||||
numberSuffix:
|
||||
file: numberSuffix.js
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user