Merge pull request #138 from tovernaar123/master

Added greetings message on join
This commit is contained in:
Cooldude2606
2020-02-11 20:54:38 +00:00
committed by GitHub
3 changed files with 20 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ return {
'modules.commands.home',
-- QoL Addons
'modules.addons.station-auto-name',
'modules.addons.greetings',
'modules.addons.chat-popups',
'modules.addons.damage-popups',
'modules.addons.death-logger',

View File

@@ -57,3 +57,8 @@ riot=(admins) ┬┴┬┴┤ᵒ_ᵒ)├┬┴┬┴ \(´ω` )/
loops=NO LOOPS; LOOPS ARE BAD; JUST NO LOOPS!!!!!; IF YOU MAKE A LOOP.... IT WILL NOT END WELL!!!!!!!
lenny=( ͡° ͜ʖ ͡°)
hodor=Hodor
[greetings]
greet=[color=0,1,0] Welcome to explosive gaming community server! If you like the server join our discord: __1__ [/color]

View File

@@ -0,0 +1,14 @@
--greets players on join
local Event = require 'utils.event' --- @dep utils.event
local greet =
function(event)
local message = {'greetings.greet',{'links.discord'}}
game.players[event.player_index].print(message)
end
Event.add(defines.events.on_player_joined_game ,greet)