Skip to content

Commit

Permalink
add: JaylyDB.objectiveId
Browse files Browse the repository at this point in the history
  • Loading branch information
tutinoko2048 committed Aug 17, 2023
1 parent eb5dffc commit 8668e18
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/jaylydb/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ declare class JaylyDB implements Map<string, string | number | boolean> {
* @returns the number of elements in the database.
*/
get size(): number;
/**
* @returns the id of scoreboard objective used in the database
*/
get objectiveId(): string;
/**
* Clears every element in the database.
*/
Expand Down
6 changes: 6 additions & 0 deletions scripts/jaylydb/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ class JaylyDB {
get size() {
return this.localState.size;
}
/**
* @returns the id of scoreboard objective used in the database
*/
get objectiveId() {
return this.objective.id;
}
/**
* Clears every element in the database.
*/
Expand Down
6 changes: 6 additions & 0 deletions scripts/jaylydb/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@ class JaylyDB implements Map<string, string | number | boolean> {
get size(): number {
return this.localState.size;
}
/**
* @returns the id of scoreboard objective used in the database
*/
get objectiveId(): string {
return this.objective.id;
}
/**
* Clears every element in the database.
*/
Expand Down

0 comments on commit 8668e18

Please sign in to comment.