Rimozione profilo e trofei

master
Zughy 2021-02-25 23:51:34 +01:00
parent 9e75f97772
commit 261067cb21
11 changed files with 14 additions and 52 deletions

View File

@ -12,15 +12,15 @@ function hub_manager.set_items(player)
nil,
nil,
nil,
"hub_manager:profile",
"hub_manager:achievements",
nil,
nil,
"hub_manager:settings"
}
local additional_items = hub_manager.get_additional_items()
-- eventuali oggetti aggiuntivi
for i = 1, 5 do
for i = 1, 7 do
hotbar_items[i] = additional_items[i]
end
@ -43,4 +43,4 @@ function hub_manager.get_prefix(name)
if prefix == "" then return "" end
return minetest.colorize(color, prefix) .. " "
end
end

View File

@ -6,6 +6,8 @@ hub_spawn_point = -3.5, 3.0, -20.5
3=
4=
5=
6=
7=
# physics overrides while in the lobby
speed=1

View File

@ -1,6 +1,7 @@
local version = "0.1.0-dev"
dofile(minetest.get_modpath("hub_manager") .. "/api.lua")
dofile(minetest.get_modpath("hub_manager") .. "/chatcmdbuilder.lua")
dofile(minetest.get_modpath("hub_manager") .. "/commands.lua")
dofile(minetest.get_modpath("hub_manager") .. "/items.lua")
dofile(minetest.get_modpath("hub_manager") .. "/load_config.lua")

View File

@ -2,38 +2,6 @@ local S = minetest.get_translator("hub_manager")
minetest.register_tool("hub_manager:profile", {
description = S("Profile"),
inventory_image = "hubmanager_profile.png",
groups = {not_in_creative_inventory = 1, oddly_breakable_by_hand = "2"},
on_place = function() end,
on_drop = function() end,
on_use = function(itemstack, user, pointed_thing)
minetest.chat_send_player(user:get_player_name(), "Coming soon")
end
})
minetest.register_tool("hub_manager:achievements", {
description = S("Achievements"),
inventory_image = "hubmanager_achievements.png",
groups = {not_in_creative_inventory = 1, oddly_breakable_by_hand = "2"},
on_place = function() end,
on_drop = function() end,
on_use = function(itemstack, user, pointed_thing)
minetest.chat_send_player(user:get_player_name(), "Coming soon")
end
})
minetest.register_tool("hub_manager:settings", {
description = S("Settings"),

View File

@ -9,12 +9,12 @@ local additional_items = {}
local physics = {}
-- oggetti
for i = 3, 7 do
for i = 3, 9 do
additional_items[i-2] = string.match(data[i], "=(.*)")
end
-- fisica
for i = 9, 11 do
for i = 11, 13 do
physics[string.match(data[i], "(.*)=")] = tonumber(string.match(data[i], "=(.*)"))
end

View File

@ -4,6 +4,4 @@
# textdomain: hub_manager
# items.lua
Profile=Perfil
Achievements=Logros
Settings=Configuraciones
Settings=Configuraciones

View File

@ -4,8 +4,6 @@
# textdomain: hub_manager
# items.lua
Profile=Profilo
Achievements=Trofei
Settings=Impostazioni
# commands.lua
@ -14,4 +12,4 @@ It allows you to use /hubadmin=Ti permette di usare /hubadmin
# player_manager.lua
@1's prefix set to "@2"=Il prefisso di @1 è ora "@2"
@1's prefix color set to @2=Il colore del prefisso di @1 è ora @2
@1's prefix color set to @2=Il colore del prefisso di @1 è ora @2

View File

@ -4,8 +4,6 @@
# textdomain: hub_manager
# items.lua
Profile=
Achievements=
Settings=
# commands.lua
@ -14,4 +12,4 @@ It allows you to use /hubadmin=
# player_manager.lua
@1's prefix set to "@2"=
@1's prefix color set to @2=
@1's prefix color set to @2=

View File

@ -17,9 +17,6 @@ end)
minetest.register_on_player_hpchange(function(player, hp_change, reason)
reason = reason.type
minetest.chat_send_player("singleplayer", reason)
-- se non è in arena, disabilito danno da caduta, da affogamento e PvP
if not arena_lib.is_player_in_arena(player:get_player_name()) and (reason == "fall" or reason == "punch" or reason == "drown") then
return 0
@ -37,7 +34,7 @@ minetest.register_on_respawnplayer(function(player)
player:set_pos(hub_manager.get_hub_spawn_point())
return true
end)
@ -47,4 +44,4 @@ function minetest.format_chat_message(name, msg)
if arena_lib.is_player_in_arena(name) then return format_chat_message(name, msg) end
return hub_manager.get_prefix(name) .. format_chat_message(name, msg)
end
end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 201 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 161 B