Channels
Why not?
Channels are cool, but sometimes confusing to set up. This module also simplifies that (somewhat)
:createChannel
This method creates a chat channel object, more on those below.
Arguments:
<string> name -> Chat channel name
Sample code:
-- This creates a VIP channel and assigns everyone to it
-- (planning on adding the AutoJoin property later chat nerds lol)
local channel = chatPlus:createChannel("VIP")
channel:setWelcomeMessage("Only vip people can see this!")
chatPlus:onPlayer(function(player)
channel:assignUser(player)
end)
Result:
Returns:
Channel Object:getChannel
This method gets a chat channel object, more on those below.
Arguments:
<string> name -> Chat channel name
Sample code:
local channel = chatPlus:getChannel("All")
Returns:
Channel ObjectLast updated