Skip to content

Commit

Permalink
Update points.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Exanthiax committed May 8, 2024
1 parent 8bd0fcd commit ddeff3d
Showing 1 changed file with 12 additions and 24 deletions.
36 changes: 12 additions & 24 deletions docs/effects/points.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,19 @@ title: "The Points System"
sidebar_position: 8
---

Points are similar to currencies, however they exist purely as a way to keep track of something in a player. For
example, lets say you want the player to have to used an item a certain amount of times in order to use another one -
you would be able to keep track of this with a point.
Points are similar to currencies, however they exist purely as a way to keep track of something in a player. For example, lets say you want the player to have to used an item a certain amount of times in order to use another one - you would be able to keep track of this with a point.

You can have as many different points as you want, the plugins will keep track of them automatically. Points are shared
between plugins, too - so if you make a point in EcoItems, then you can use it in EcoPets, EcoJobs, etc.
You can have as many different points as you want, the plugins will keep track of them automatically. Points are shared between plugins, too - so if you make a point in EcoItems, then you can use it in EcoPets, EcoJobs, etc.

A point can hold any numeric value, including negatives and decimals, but of course how you decide to use them is
completely up to you.
A point can hold any numeric value, including negatives and decimals, but of course how you decide to use them is completely up to you.
## Point Types

## Placeholders
| Point Type | Placeholder | Description |
| ------------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Points | `%libreforge_points_<point>%` | A general point that can be used to keep track of something per-player. (e.g. times jumped, zombies killed, etc.) |
| Global Points | `%libreforge_global_points_<point>%` | A general point that keeps track of something globally/server-wide for all players. (e.g. zombies killed by all players.) |
| Item Points | `%libreforge_item_points_<point>%` | A point that is tied to a specific item and tracks data on the item. Useful for making tools with custom durability's or per-item stats (e.g zombies killed using this sword.) |
## Commands
## `/libreforge points set/give/get/take`

You can get the value of a point with the following placeholder:

`%libreforge_points_<point>%`

## Global Points

There are also global points, which belong to the server rather than to the player.

You can get the value of these with `%libreforge_global_points_<point>%`

## Item Points

Item Points exist too - instead of belonging to the player or the server, they belong to items.

You can get the value of these with `%libreforge_item_points_<point>%`

Usage: `/libreforgepoints give <player> <point> <value>`

0 comments on commit ddeff3d

Please sign in to comment.