Get table owner

Game development with Board Game Arena Studio
Post Reply
User avatar
LaszloK
Posts: 36
Joined: 05 January 2018, 19:00

Get table owner

Post by LaszloK »

Is there a way to identify the table owner (the player who created the table) in-game?

(If anyone is curious - I would use this to add training features such as the option to replay the exact same hand again. Ideally I would have the table owner decide on this.)
User avatar
Benoit314
Posts: 82
Joined: 02 April 2020, 22:12

Re: Get table owner

Post by Benoit314 »

There is a function called self::getTableAdminPlayerId(), I didn't try it, but maybe it returns the game owner ID.
Otherwise, I would check in the database, there could be a global variable used for this. Maybe the global variable with ID 5.
Post Reply

Return to “Developers”