mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
parent
5dab742645
commit
49ff1d2ea8
6 changed files with 13 additions and 45 deletions
|
@ -7,21 +7,19 @@ dofile("preview:example.lua")
|
|||
core.register_on_shutdown(function()
|
||||
print("[PREVIEW] shutdown client")
|
||||
end)
|
||||
local id = 0
|
||||
core.register_on_connect(function()
|
||||
print("[PREVIEW] Player connection completed")
|
||||
local server_info = core.get_server_info()
|
||||
print("Server version: " .. server_info.protocol_version)
|
||||
print("Server ip: " .. server_info.ip)
|
||||
print("Server address: " .. server_info.address)
|
||||
print("Server port: " .. server_info.port)
|
||||
mod_channel = core.mod_channel_join("experimental_preview")
|
||||
local id = nil
|
||||
|
||||
core.after(4, function()
|
||||
if mod_channel:is_writeable() then
|
||||
mod_channel:send_all("preview talk to experimental")
|
||||
end
|
||||
end)
|
||||
local server_info = core.get_server_info()
|
||||
print("Server version: " .. server_info.protocol_version)
|
||||
print("Server ip: " .. server_info.ip)
|
||||
print("Server address: " .. server_info.address)
|
||||
print("Server port: " .. server_info.port)
|
||||
mod_channel = core.mod_channel_join("experimental_preview")
|
||||
|
||||
core.after(4, function()
|
||||
if mod_channel:is_writeable() then
|
||||
mod_channel:send_all("preview talk to experimental")
|
||||
end
|
||||
end)
|
||||
|
||||
core.after(1, function()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue