summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSokomine <wegwerf@anarres.dyndns.org>2018-07-26 19:42:50 +0200
committerSokomine <wegwerf@anarres.dyndns.org>2018-07-26 19:42:50 +0200
commit94c9a49ccca44b83ada837c685333f54c3f1f6a8 (patch)
tree3599319bab6467e5c0b2fb6652e3da2a4f29f0ae
parent61f1ab16f8f7c62fc28669bf2fc0b9759dc2580f (diff)
parent2cd7a757a4eb4341ebbb390308665885c4c0a5be (diff)
resolved merge conflict
-rw-r--r--handle_schematics.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/handle_schematics.lua b/handle_schematics.lua
index 4f0efda..bd443d7 100644
--- a/handle_schematics.lua
+++ b/handle_schematics.lua
@@ -8,6 +8,10 @@ handle_schematics.AUTODECAY = 'apartment:autodecay';
handle_schematics.ENABLE_SLOW_DECAY = false
+
+minetest.register_privilege("apartment_spawn", { description = "allows you to spawn apartments", give_to_singleplayer = false});
+
+
-- taken from https://github.com/MirceaKitsune/minetest_mods_structures/blob/master/structures_io.lua (Taokis Sructures I/O mod)
-- gets the size of a structure file
-- nodenames: contains all the node names that are used in the schematic
@@ -541,7 +545,7 @@ handle_schematics.on_receive_fields = function(pos, formname, fields, sender)
end
pname = sender:get_player_name();
- if( not( minetest.check_player_privs(pname, {apartment_unrent=true}))) then
+ if( not( minetest.check_player_privs(pname, {apartment_spawn=true}))) then
minetest.chat_send_player( pname, 'You do not have the necessary privileges.');
return;
end