by 0xcf10cd8b5dc2323b1eb6de6164647756bad4de4d (Eibriel)
Following on my 2 previous proposals to improve the moderation and safety tools on Decentraland.
This one improves on the previous ones by allowing the owners of a land to fully control the moderation of their own scenes, without affecting other scenes.
When developing a scene with the SDK a new new element can be added to requiredPermissions on scene.json: ALLOW_TO_BLOCK_USERS_INSIDE_SCENE.
The developer can call to blockUser()
With the following parameters
setUserBlockStatus(
"0x000....",
{
chat: true,
voice: true,
avatar_sounds: true
}
)
That call will instruct the Client to block (or unblock) an user while the player's avatar is inside the scene, for the duration of the current session. A notification could be shown to the player to let them know about the change.
This will allow for the following:
voice: false on a server for PlayerBsetUserBlockStatus with PlayerB's address and voice: false as parametersAll the logic on who should be blocked is handled exclusively in the scene's code (with the aid of an optional authoritative server), without any involvement of the Catalysts.