Skip to content

Commit

Permalink
Many updates
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Nov 22, 2023
1 parent 06e4aa5 commit 6bc7dae
Show file tree
Hide file tree
Showing 4 changed files with 161 additions and 104 deletions.
35 changes: 34 additions & 1 deletion docs/ecoshop/how-to-make-an-item.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ giving the player a real item. It's really common now in servers to have multipl
setups and move things like ranks to be done from in-game shops, so let's see how you can
do that with EcoShop.

Of course, you can't sell an
Of course, you can't sell a command, so they're buy-only.

```yaml
id: iron_rank
Expand Down Expand Up @@ -132,6 +132,39 @@ where bottom lore is shown under things like the buy price, quick buy options, e
`gui.show-quick-buy-sell`: By default, quick buy / quick sell lore is shown on items. If you don't
want that for this item, you can disable it here.

### Effect Items

Instead of just using commands, EcoShop also has full access to the
[effects system](https://plugins.auxilor.io/effects/configuring-an-effect), so you can run
effects when a player buys an item, or even just put effects themselves in the shop.

Like commands, these are unsellable.

```yaml
id: my_effect_item
effects: [ ]
buy:
value: 65
type: crystals
display: "&b%value% Crystals ❖"
gui:
display:
item: nether_star
lore:
- "&fBuy me to do something cool!"
column: 6 # The column.
row: 3 # The row.
page: 2 # The page.
show-quick-buy-sell: false
```

`effects`: These are the effects that are ran when the player buys the item. Read
[here](https://plugins.auxilor.io/effects/configuring-an-effect) to learn more!

### Extra Options

There's some extra options that aren't shown in the above examples. If you want to explore all
Expand Down
8 changes: 8 additions & 0 deletions docs/effects/all-mutators/dispatcher_as_player.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# `dispatcher_as_player`

Set the player to be whoever dispatched (triggered) the effect.

# Example Config
```yaml
- id: dispatcher_as_player
```
8 changes: 8 additions & 0 deletions docs/effects/all-mutators/dispatcher_as_victim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# `dispatcher_as_victim`

Set the victim to be whoever dispatched (triggered) the effect.

# Example Config
```yaml
- id: dispatcher_as_victim
```
Loading

0 comments on commit 6bc7dae

Please sign in to comment.