Room-level ban without disconnecting from the Zone

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Post Reply
ciaoamigos
Posts: 70
Joined: 05 Sep 2021, 16:57

Room-level ban without disconnecting from the Zone

Post by ciaoamigos »

Hi everyone
I need to ban a user from only certain rooms (or a group of rooms) while keeping them logged in to the same Zone. Basically, the user should be able to stay online but must not be able to enter/return to those rooms.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Room-level ban without disconnecting from the Zone

Post by Lapo »

Hi,
this is not a feature we provide out of the box. The banishment is global and works at login time by denying access to users that were added to the ban list.

However: you can implement what you have described via Extensions, by keeping a persistent database of room bans with the details of which user is not allowed in which Room.

Next, join requests should be handled by the server side which, in turn, can access the DB and verify that the Player is allowed in the requested Room.

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply