Check for um_plugin_playername
This commit is contained in:
parent
1c9e43d471
commit
ae27316629
3
init.lua
3
init.lua
|
@ -52,7 +52,8 @@ local function set_if_exists(name, balance)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Register money3 as a backend for unified_money
|
-- Register money3 as a backend for unified_money
|
||||||
if minetest.get_modpath("um_core") then
|
if minetest.get_modpath("um_core") and
|
||||||
|
minetest.get_modpath("um_plugin_playername") then
|
||||||
local function make_canonical_name_cache()
|
local function make_canonical_name_cache()
|
||||||
if minetest.global_exists("canonical_name") then
|
if minetest.global_exists("canonical_name") then
|
||||||
return canonical_name.get
|
return canonical_name.get
|
||||||
|
|
2
mod.conf
2
mod.conf
|
@ -1,4 +1,4 @@
|
||||||
name = money3
|
name = money3
|
||||||
description = Adds /money.
|
description = Adds /money.
|
||||||
optional_depends = canonical_name, locked_sign, lurkcoin, um_core
|
optional_depends = canonical_name, locked_sign, lurkcoin, um_core, um_plugin_playername
|
||||||
supported_games = *
|
supported_games = *
|
||||||
|
|
Loading…
Reference in New Issue