Rimozione test.lua
parent
4f73fdec29
commit
071ba7355e
22
test.lua
22
test.lua
|
@ -1,22 +0,0 @@
|
|||
local scoreboard
|
||||
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
if scoreboard == nil then
|
||||
scoreboard = Scoreboard:new({
|
||||
position = { x = 1, y = 0.5 },
|
||||
alignment = { x = -1, y = 0 },
|
||||
text = "NINOOO",
|
||||
text_color = 0xFF0000,
|
||||
players = {}
|
||||
})
|
||||
end
|
||||
scoreboard:show()
|
||||
end)
|
||||
|
||||
minetest.register_on_chat_message(function(name, message)
|
||||
if string.match(message, "mettilacera") then
|
||||
minetest.chat_send_player(name, "Ti aggiungo la sb "..name)
|
||||
scoreboard:update_players({minetest.get_player_by_name(name)})
|
||||
scoreboard:show()
|
||||
end
|
||||
end)
|
Loading…
Reference in New Issue