Compare commits
No commits in common. "newCity" and "main" have entirely different histories.
18
init.lua
18
init.lua
@ -5,24 +5,10 @@ local towns_list = {}
|
||||
|
||||
local central_spawn = { x = 206.7,y = 6,z = -84.2 }
|
||||
local city_pos = { x = -12003, y = 22, z = -7498 }
|
||||
local new_city_pos = { x = 22985, y = 26, z = -24836 }
|
||||
table.insert(towns_list, S("The City built by the player H743")..S(" | command - ").."/city")
|
||||
table.insert(towns_list, S("The NewCity built by the player H743 and another")..S(" | command - ").."/newcity")
|
||||
|
||||
minetest.register_chatcommand("newcity", {
|
||||
description = S("Go to the NewCity built by the player H743 and another"),
|
||||
privs = { home = true },
|
||||
func = function(name)
|
||||
local player = minetest.get_player_by_name(name)
|
||||
if (player) then
|
||||
player:setpos(new_city_pos)
|
||||
minetest.chat_send_player(name,minetest.colorize("cyan", S("Welcome to the NewCity!")))
|
||||
end
|
||||
end,
|
||||
})
|
||||
table.insert(towns_list, S("The city built by the player H743")..S(" | command - ").."/city")
|
||||
|
||||
minetest.register_chatcommand("city", {
|
||||
description = S("Go to the City built by the player H743"),
|
||||
description = S("Go to the city built by the player H743"),
|
||||
privs = { home = true },
|
||||
func = function(name)
|
||||
local player = minetest.get_player_by_name(name)
|
||||
|
@ -1,12 +1,9 @@
|
||||
# textdomain: towns
|
||||
|
||||
The City built by the player H743=Город, построенный игроком H743
|
||||
The NewCity built by the player H743 and another=Новый Город, построенный игроком H743 и другими
|
||||
The city built by the player H743=Город, построенный игроком H743
|
||||
| command - = | комманда -
|
||||
Go to the City built by the player H743=Отправиться в город, построенный игроком H743
|
||||
Go to the NewCity built by the player H743 and another=Отправиться в новый город, построенный игроком H743 и другими
|
||||
Go to the city built by the player H743=Отправиться в город, построенный игроком H743
|
||||
Welcome to the City!=Добро пожаловать в City!
|
||||
Welcome to the NewCity!=Добро пожаловать в NewCity!
|
||||
List of server towns=Список городов сервера
|
||||
Towns:=Города:
|
||||
Total number of towns:=Всего городов на сервере:
|
||||
|
Loading…
Reference in New Issue
Block a user