added changing criterion to scoreboard_add #624
This commit is contained in:
1 parent
f9bce2b50e
commit
055c26d44a
5 files changed
+42
-3
No files matched your search
@@ -10,8 +10,9 @@ With specified `objective` and
|
||||
|
||||
### `scoreboard_add(objective, criterion?)`
|
||||
|
||||
Adds a new objective to scoreboard. If `criterion` is not specified, assumes `'dummy'`. Returns `false` if objective
|
||||
already existed, `true` otherwise.
|
||||
Adds a new objective to scoreboard. If `criterion` is not specified, assumes `'dummy'`.
|
||||
If the objective already exists, changes the criterion of that objective and returns false.
|
||||
If the objective was added, returns true.
|
||||
|
||||
<pre>
|
||||
scoreboard_add('counter')
|
||||
|
||||
Reference in new issue
Block a user