Updated Community Scripts (markdown)

cj89898 2020-05-02 07:46:11 -05:00
parent d278d556bf
commit 6d89232128

@ -14,6 +14,24 @@ The JavaScript Expansion for PlaceholderAPI allows for expansions that wouldn't
## Community Scripts
***
* [**Random Integer Between**](#random-integer-between)
* [**Data**](#data)
* [**Has Permission**](#has-permission)
* [**Animated Text**](#animated-text)
* [**Rounded Player Health**](#rounded-player-health)
* [**Rounded Max Player Health**](#rounded-max-player-health)
* [**Held Item Display Name**](#held-item-display-name)
* [**Lore Lines**](#lore-lines)
* [**Held Item Lore**](#held-item-lore)
* [**Check/Remove Item**](#checkremove-item)
* [**Difference Between 2 Dates**](#difference-between-2-dates)
* [**Cooldown**](#cooldown)
* [**TokenEnchant Token Value**](#tokenenchant-token-value)
* [**Health Bar**](#health-bar)
* [**Number of Players in Group of Worlds**](#number-of-players-in-group-of-worlds)
***
### Random Integer Between
* **Author:** NathanG
* **Description:** Generates a random integer between two given integers.
@ -346,7 +364,7 @@ maxhealth:
***
### Holding item display name
### Held Item Display Name
* **Author:** aBooDyy
* **Description:** Return the display name of the item you're holding in your hand.
* **Usage:** `%javascript_displayname%`
@ -390,7 +408,7 @@ displayname:
***
### Lore lines
### Lore Lines
* **Author:** aBooDyy
* **Description:** Returns how many lore line of the item you're holding.
* **Usage:** `%javascript_lorelines%`
@ -430,7 +448,7 @@ lorelines:
***
### Holding item lore
### Held Item Lore
* **Author:** aBooDyy
* **Description:** Returns the lore of the item you're holding. Can return all lines, or specific lines.
* **Usage:** `%javascript_lore% OR %javascript_lore_<LineNumber>%`
@ -497,7 +515,7 @@ lore:
***
### Check/Remove item
### Check/Remove Item
* **Author:** aBooDyy
* **Description:** Check if player has an item you set in the placeholder (Material, Data, Amount, Name, Lore), It supports color codes for Name and Lore also it supports more than one lore line. It returns 'yes' if the player has the item, and 'no' if he doesn't. And remove item from player inventory if he has the item when the placeholder is parsed. You can run papi parse command to parse it (`/papi parse %player_name% %javascript_item_check_{player_name}_mat: 1%`) or send the placeholder to the player.
* **Usage:** `%javascript_item_check/remove_[PLAYER]_mat: [MATERIAL/ID]_data: [DATA]_amt: [AMOUNT]_name: [DISPLAYNAME]_lore: [LORE]%`
@ -656,7 +674,7 @@ item:
***
### Difference between 2 dates
### Difference Between 2 Dates
* **Author:** aBooDyy
* **Description:** Give you the difference between 2 dates you set or how many until that date or how many time passed from that date
* **Usage:** `%javascript_difference_dates%`
@ -1017,7 +1035,7 @@ tokenenchant_token:
***
### Health bar
### Health Bar
* **Author:** aBooDyy
* **Description:** A javascript placeholder to return the player's health bar (with hearts).
* **Usage:** `%javascript_healthbar%`