Allows admins to run code snippets without crashing the server as often.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

init.lua 521B

1234567891011121314151617181920212223
  1. --
  2. -- Minetest snippets mod: Allows admins to run a bunch of predefined snippets
  3. --
  4. assert(minetest.get_current_modname() == 'snippets')
  5. snippets = {}
  6. local modpath = minetest.get_modpath('snippets')
  7. -- Load the core sandbox
  8. dofile(modpath .. '/core.lua')
  9. -- Load persistence
  10. loadfile(modpath .. '/persistence.lua')(minetest.get_mod_storage())
  11. -- Load the Form object
  12. dofile(modpath .. '/forms.lua')
  13. -- Load the "console"
  14. dofile(modpath .. '/console.lua')
  15. -- Load "snippet buttons"
  16. dofile(modpath .. '/nodes.lua')