Added indication messages

master
zmv7 2022-01-28 10:06:40 +05:00 committed by GitHub
parent 344c0dbd0d
commit 1dfd608133
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,7 @@ function invisibility.toggle(player, toggle)
player:set_nametag_attributes({
color = {a = 0, r = 255, g = 255, b = 255},
})
status = minetest.colorize("#F00"," vanished")
else
-- Show player and nametag
prop = {
@ -42,10 +43,12 @@ function invisibility.toggle(player, toggle)
player:set_nametag_attributes({
color = {a = 255, r = 255, g = 255, b = 255},
})
status = minetest.colorize("#0F0"," unvanished")
end
-- Update properties
player:set_properties(prop)
return minetest.colorize("#FF0","-!- "..name)..status
end
-- [register] Privilege