PlayerApi.GetIsModerator
4Bakers
gets if local player is has moderation perms (ie: world creator, instance creator, group moderator).
I want my moderator room to available to members of any group that visits my world, as opposed to a static whitelist which unfairly favors my group's moderators
(for clarification: by "moderator room" I mean "a small private meeting room used by moderators to have private conversations without having to leave the instance")
Log In
Heather May
I personally don't have much that owner can do and no one else can, but even simple things like "Can always manage the video player" would be nice. Right now, if there is no instance owner I record the first person to join and they at the only one with override power for the duration of the instance. This would give additional options.
4Bakers
Heather May
I have also considered "First player to join" but I have always hated The Event Portal Ritual where everybody must wait 20 seconds to ensure the host has loaded first. This should be a non-issue, but we're forced to deal with these awful workarounds.
Existing methods also cannot account for group members with "Instance Moderator" permission, which my use case needs desperately.
Heather May
4Bakers First player to join is a work around; it's better than master as it's predictable and consistent, but it's still just a workaround. This is my point, though - being able to check if someone has moderator access would be better, AND being able to verify it's a group instance.
Then I can use the rule:
* If owner, use owner (invite and friends)
* If group, use moderator (group)
* Otherwise, use first joiner (public)
4Bakers
Heather May That's mostly right, but you're overcomplicating it by specifing all the logic for who is or isn't a moderator, we don't need to do that in this function (plus, doing the logic twice leaves room for desync...)
IsModeator would simply return True if the user has instance moderation permission, regardless of why.
Currently that would be the world author, instance creator, group moderator (and VRChat admins I think? I'm not sure.)
We don't need to list all possibilities in all circumstances because it just checks if the user already has the relevant permission.
Heather May
4Bakers Fair, you're right. I'd no longer need the fallback checks at all if I had a single call that worked in all cases.
4Bakers
This gets more relevant every time yall add another social hook
Patroll
Maybe even cooler if you could check for specific group permissions
4Bakers
For those who want something that isn't so scope-restricted I super agree (I'd like to know Instance Type and all that jazz) but I wrote this to fight the strawman argument "what if it's abused"