Skip to content

Commit c178d0a

Browse files
committed
✨ Add isFull to CitizenServer
1 parent c8db877 commit c178d0a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/model/CitizenServer.js

+9
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,15 @@ class CitizenServer {
293293
return this.publicVariables['sv_projectDesc'];
294294
}
295295

296+
/** *
297+
* Get is the server full
298+
* @type {boolean} trye if server is full
299+
* @readonly
300+
*/
301+
get isFull() {
302+
return this.playersCount >= this.maxPlayers;
303+
}
304+
296305
/** *
297306
* Get if the server has the specified resource
298307
* @param {string} resource Resource to check

0 commit comments

Comments
 (0)