mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-03-11 14:49:24 +02:00
Minor fix
This commit is contained in:
parent
f9009a9e8f
commit
93e0b5f91f
@ -18,6 +18,7 @@ require 'utils.datastore.quickbar_data'
|
||||
require 'utils.datastore.message_on_join_data'
|
||||
require 'utils.datastore.player_tag_data'
|
||||
require 'utils.datastore.supporters'
|
||||
require 'utils.datastore.banhandler'
|
||||
require 'utils.chatbot'
|
||||
require 'utils.commands'
|
||||
require 'utils.antigrief'
|
||||
|
@ -5,6 +5,7 @@ local Token = require 'utils.token'
|
||||
local len = string.len
|
||||
local gmatch = string.gmatch
|
||||
local insert = table.insert
|
||||
local ban_by_join_enabled = false
|
||||
|
||||
local try_get_ban = Server.try_get_ban
|
||||
|
||||
@ -34,6 +35,10 @@ local try_get_is_banned_token =
|
||||
Event.add(
|
||||
defines.events.on_player_joined_game,
|
||||
function(event)
|
||||
if not ban_by_join_enabled then
|
||||
return
|
||||
end
|
||||
|
||||
local player = game.get_player(event.player_index)
|
||||
if not player or not player.valid then
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user