diff --git a/scripts/jaylydb/index.d.ts b/scripts/jaylydb/index.d.ts index abd345ba..598df5f0 100644 --- a/scripts/jaylydb/index.d.ts +++ b/scripts/jaylydb/index.d.ts @@ -11,6 +11,10 @@ declare class JaylyDB implements Map { * @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. */ diff --git a/scripts/jaylydb/index.js b/scripts/jaylydb/index.js index 65c3e0d9..31f4a358 100644 --- a/scripts/jaylydb/index.js +++ b/scripts/jaylydb/index.js @@ -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. */ diff --git a/scripts/jaylydb/index.ts b/scripts/jaylydb/index.ts index a55e43be..3f58c0ca 100644 --- a/scripts/jaylydb/index.ts +++ b/scripts/jaylydb/index.ts @@ -180,6 +180,12 @@ class JaylyDB implements Map { 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. */