Update init.lua

master
AFCMS 2021-05-24 10:05:05 +02:00 committed by GitHub
parent 044477a311
commit ebf292475c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
local params = {}
params.text = minetest.settings:get("mcl_welcome_hud_msg") or "WELCOME"
params.color = minetest.settings:get("mcl_welcome_hud_color") or "white"
params.timeout = minetest.settings:get("mcl_welcome_hud_timeout")
params.text = minetest.settings:get("mcl_welcome_hud.msg") or "WELCOME"
params.color = minetest.settings:get("mcl_welcome_hud.color") or "white"
params.timeout = minetest.settings:get("mcl_welcome_hud.timeout")
minetest.register_on_joinplayer(function(player)
mcl_bossbars.add_bar(player, {text=params.text, color=params.color, percentage=100, dynamic=false, timeout=params.timeout})
end)
end)