Rimosse parti di codice trasferite su arena_lib (quit/kick) e iniziata geolocalizzazione
parent
ca8875e0b0
commit
96d5b622b1
|
@ -39,7 +39,7 @@ function quake.list_achievements(sender, t_name)
|
|||
|
||||
-- se il giocatore non esiste, annullo
|
||||
if quake.players[p_name] == nil then
|
||||
minetest.chat_send_player(sender, minetest.colorize("#e6482e", "[!] Questo giocatore non esiste!"))
|
||||
minetest.chat_send_player(sender, minetest.colorize("#e6482e", S("[!] This player doesn't exist!")))
|
||||
return end
|
||||
|
||||
local p_achievements = quake.players[p_name].ACHVMTS
|
||||
|
|
|
@ -75,15 +75,8 @@ ChatCmdBuilder.new("quakeadmin", function(cmd)
|
|||
arena_lib.disable_arena(sender, mod, arena)
|
||||
end)
|
||||
|
||||
-- gestione utenti
|
||||
|
||||
-- kick
|
||||
cmd:sub("kick :playername", function(sender, p_name)
|
||||
quake.kick_player(sender, p_name)
|
||||
end)
|
||||
|
||||
end, {
|
||||
description = "gestione della mod",
|
||||
description = S("mod management"),
|
||||
privs = { quake_admin = true }
|
||||
})
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# reviewer(s):
|
||||
# textdomain: quake
|
||||
|
||||
#achievements
|
||||
# achievements.lua
|
||||
killing spree=serie d'uccisioni
|
||||
unstoppable=inarrestabile
|
||||
bloodbath=furia omicida
|
||||
|
@ -11,5 +11,14 @@ shutdown!=spento!
|
|||
first blood=primo sangue
|
||||
two in one=due in uno
|
||||
three in one=tre in uno
|
||||
[!] This player doesn't exist!=[!] Questo giocatore non esiste!
|
||||
@1 ACHIEVEMENTS=PRESTIGI DI @1
|
||||
|
||||
# commands.lua
|
||||
mod management=gestione della mod
|
||||
|
||||
# items.lua
|
||||
THE END!=FINE DEI GIOCHI!
|
||||
|
||||
# privs.lua
|
||||
It allows to use the /quakeadmin command=Permette di usare il comando /quakeadmin
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# reviewer(s):
|
||||
# textdomain: quake
|
||||
|
||||
#achievements
|
||||
# achievements.lua
|
||||
killing spree=
|
||||
unstoppable=
|
||||
bloodbath=
|
||||
|
@ -11,4 +11,24 @@ shutdown!=
|
|||
first blood=
|
||||
two in one=
|
||||
three in one=
|
||||
[!] This player doesn't exist!=
|
||||
@1 ACHIEVEMENTS=
|
||||
|
||||
# commands.lua
|
||||
mod management=
|
||||
|
||||
# items.lua
|
||||
THE END!=
|
||||
|
||||
# privs.lua
|
||||
It allows to use the /quakeadmin command=
|
||||
|
||||
# _weapons/
|
||||
# railgun.lua
|
||||
Railgun=
|
||||
|
||||
# rocket_launcher.lua
|
||||
Rocket Launcher=
|
||||
|
||||
# weapons.lua
|
||||
You can't hit @1 due to immunity=
|
||||
|
|
|
@ -43,13 +43,3 @@ minetest.register_on_joinplayer(function(player)
|
|||
inv:remove_item("main", ItemStack("quake:match_over"))
|
||||
|
||||
end)
|
||||
|
||||
|
||||
|
||||
function quake.kick_player(sender, p_name)
|
||||
if arena_lib.is_player_in_arena(p_name, "quake") then
|
||||
arena_lib.remove_player_from_arena(p_name, 2)
|
||||
else
|
||||
minetest.chat_send_player(sender, minetest.colorize("#e6482e", "[!] Il giocatore non è in partita"))
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
|
||||
minetest.register_privilege("quake_admin", {
|
||||
|
||||
description = "Può usare il comando /quakeadmin"
|
||||
description = S("It allows to use the /quakeadmin command")
|
||||
|
||||
})
|
||||
|
Loading…
Reference in New Issue