+ Added fast enable cmd description and a message after using it
parent
e91c1d557b
commit
49318c0dd8
|
@ -148,6 +148,7 @@ end)
|
|||
|
||||
arena_lib.on_enable("skywars", function(arena, pl_name)
|
||||
local fast_enable = pl_name:match("@")
|
||||
local arena_lib_translator = minetest.get_translator("arena_lib")
|
||||
pl_name = pl_name:gsub("@", "")
|
||||
|
||||
if arena.treasures[1] == nil then
|
||||
|
@ -166,6 +167,8 @@ arena_lib.on_enable("skywars", function(arena, pl_name)
|
|||
skywars.save_nodes_with_inventories(arena)
|
||||
end
|
||||
|
||||
skywars.print_msg(pl_name, arena_lib_translator("Arena @1 successfully enabled", arena.name))
|
||||
|
||||
return true
|
||||
end)
|
||||
|
||||
|
|
|
@ -935,7 +935,10 @@ end, {
|
|||
- remove <arena name>
|
||||
- list
|
||||
- enable <arena name>
|
||||
- fast enable <arena name>
|
||||
- fast enable <arena name>:
|
||||
enables the arena without checking if there are nodes with inventories;
|
||||
use this just if after disabling the arena you didn't add nodes with an
|
||||
inventory (e.g. a chest or a furnace)
|
||||
- disable <arena name>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue