mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-12-23 04:10:06 +00:00
Added Player.onChat event & Player:kick()
This commit is contained in:
@@ -2,6 +2,13 @@ print("Hello world!")
|
||||
|
||||
World.onPlayerAdded:listen(function(plr)
|
||||
print(plr.type .. " " .. plr.name .. " joined from LUA!!")
|
||||
plr.onChat:listen(function(msg)
|
||||
print(plr.name .. " said : " .. msg)
|
||||
|
||||
if msg == "kickme" then
|
||||
plr:kick()
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
||||
wait(2)
|
||||
|
||||
Reference in New Issue
Block a user