mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
Update methods.md
This commit is contained in:
1 parent
5a076887fc
commit
261dd882fa
1 file changed
+9
-2
@@ -7,8 +7,6 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
These functions are inherited from the [Player class](../Server/).
|
||||
|
||||
|
||||
|
||||
## player.set
|
||||
|
||||
Update the player's metadata, optionally syncing it with the client.
|
||||
@@ -104,6 +102,9 @@ Set the current value for a status (i.e. hunger, thirst).
|
||||
player.setStatus(name, value)
|
||||
```
|
||||
|
||||
- name: string
|
||||
- value: number
|
||||
|
||||
## player.addStatus
|
||||
|
||||
Add the given amount to the total value for a status (i.e. hunger, thirst).
|
||||
@@ -112,6 +113,9 @@ Add the given amount to the total value for a status (i.e. hunger, thirst).
|
||||
player.addStatus(name, value)
|
||||
```
|
||||
|
||||
- name: string
|
||||
- value: number
|
||||
|
||||
## player.removeStatus
|
||||
|
||||
Remove the given amount from the total value for a status (i.e. hunger, thirst).
|
||||
@@ -120,6 +124,9 @@ Remove the given amount from the total value for a status (i.e. hunger, thirst).
|
||||
player.removeStatus(name, value)
|
||||
```
|
||||
|
||||
- name: string
|
||||
- value: number
|
||||
|
||||
- filter: `string | string[] | { [string]: number }`
|
||||
|
||||
## player.getPlayersInScope
|
||||
|
||||
Reference in new issue
Block a user