diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2018-05-30 18:53:44 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2018-05-30 18:53:44 +0200 |
commit | 25d743b7e702613735fb5aeeaff2e14d50c0eb8e (patch) | |
tree | 045849b2ad73168d6e77bb9b95a6cf3859fa2f26 /income.lua | |
parent | e463c23587af4b9be3c42583d3713d729d908aca (diff) | |
parent | bb3fd1a928c730c9a99a341ec4aa9969f99c0195 (diff) |
Merge branch 'master' of https://github.com/minetest-mods/currencyHEADorigin/masterorigin/HEADmaster
Also removed 50 MG note, since it doesn't make much sense on my server.
Diffstat (limited to 'income.lua')
-rw-r--r-- | income.lua | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,5 +1,9 @@ players_income = {} +-- internationalization boilerplate +local MP = minetest.get_modpath(minetest.get_current_modname()) +local S, NS = dofile(MP.."/intllib.lua") + local timer = 0 minetest.register_globalstep(function(dtime) timer = timer + dtime; @@ -11,7 +15,7 @@ minetest.register_globalstep(function(dtime) players_income[name] = 0 end players_income[name] = 1 - minetest.log("info", "[Currency] basic income for "..name.."") + minetest.log("info", "[Currency] "..S("basic income for @1", name)) end end end) @@ -27,7 +31,7 @@ earn_income = function(player) local inv = player:get_inventory() inv:add_item("main", {name="currency:minegeld_5", count=count}) players_income[name] = 0 - minetest.log("info", "[Currency] added basic income for "..name.." to inventory") + minetest.log("info", "[Currency] "..S("added basic income for @1 to inventory", name)) end end |