mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-17 22:33:13 +09:00
Covnerted Event and Global
This commit is contained in:
1 parent
fc279c42f8
commit
1cb2a3c3a0
35 files changed
+97
-78
No files matched your search
@@ -136,7 +136,7 @@ local ThisModule = {
|
||||
}
|
||||
|
||||
-- Event Handlers Define
|
||||
script.on_event(defines.events.on_console_chat,function(event)
|
||||
Event.add(defines.events.on_console_chat,function(event)
|
||||
local player = Game.get_player(event)
|
||||
if not player then return end
|
||||
local player_message = event.message:lower():gsub("%s+", "")
|
||||
|
||||
@@ -14,7 +14,7 @@ local module_verbose = false
|
||||
local ThisModule = {}
|
||||
|
||||
-- Event Handlers Define
|
||||
script.on_event(defines.events.on_console_command,function(event)
|
||||
Event.add(defines.events.on_console_command,function(event)
|
||||
local command = event.command
|
||||
local args = {}
|
||||
if event.parameters then for word in event.parameters:gmatch('%S+') do table.insert(args,word) end end
|
||||
|
||||
Reference in new issue
Block a user