nanoblox / core

https://nanoblox.github.io/core/
Mozilla Public License 2.0
57 stars 18 forks source link

Messages: an enhanced form of communication #139

Open 1ForeverHD opened 2 years ago

1ForeverHD commented 2 years ago

An alternative to the former 'PM/DM' system, and a powerful tool for communicating to elevated individuals cross-server and offline, such as staff members, star creators, etc. Can also be used by game developers to provide updates to their players.

image

image

Key notes:

preventReplies = true -- even when set to 'false', only users with a role perm of 'MessageReplyPerms' set to 'All' can respond to the Message (unless the message was sent from the same server and 'inServer' is set)

-- This is an Enum used to decide to-who or where the Message should be posted
MessageAudience:
1: Individual
2: Group (i.e. a collection of roles, including a default 'everyone' role) -- with roles you can then design groups of people such as 'Star Creators'

-- This is an Enum within Role Settings used to determine who a user can open up a Conversation to
MessageStartConversationPerms:
1: None
2: IndividualsInServer -- can only message players in the server
3. GroupsInServer -- same as below but can also broadcast to all members in selected roles
4: All -- can start conversations with anyone, any roles, online or offline, in any server

-- This is an Enum within Role Settings used to determine when a user can respond *after* receiving a Message with
-- We don't want everyone being able to respond to players outside of their server otherwise this is going to eat into the games memory/data store budget.
MessageReplyPerms:
1: None
2: InServer
3: All