diff options
author | orwell96 <orwell@bleipb.de> | 2018-08-12 17:23:52 +0200 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2018-08-12 17:23:52 +0200 |
commit | 224d5cbfd3a0403e40eef6604f418bc65e26423d (patch) | |
tree | ab00f84427775b8103eb0caff3766d95b35430d5 /advtrains_interlocking/init.lua | |
parent | a92ecbc26a14a193f103fe6a626eae000fe9b949 (diff) | |
download | advtrains-224d5cbfd3a0403e40eef6604f418bc65e26423d.tar.gz advtrains-224d5cbfd3a0403e40eef6604f418bc65e26423d.tar.bz2 advtrains-224d5cbfd3a0403e40eef6604f418bc65e26423d.zip |
Add 'interlocking' privilege and add security checks
Diffstat (limited to 'advtrains_interlocking/init.lua')
-rw-r--r-- | advtrains_interlocking/init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/advtrains_interlocking/init.lua b/advtrains_interlocking/init.lua index a67ea0f..19501b6 100644 --- a/advtrains_interlocking/init.lua +++ b/advtrains_interlocking/init.lua @@ -12,3 +12,5 @@ dofile(modpath.."train_related.lua") dofile(modpath.."route_prog.lua") dofile(modpath.."routesetting.lua") dofile(modpath.."tcb_ts_ui.lua") + +minetest.register_privilege("interlocking", {description = "Can set up track sections, routes and signals.", give_to_singleplayer = true}) |