aboutsummaryrefslogtreecommitdiff
path: root/misc
ModeNameSize
-rw-r--r--CPACK_WIX_UI_BANNER.BMP114514logplain
-rw-r--r--CPACK_WIX_UI_DIALOG.BMP461882logplain
-rw-r--r--Info.plist447logplain
-rw-r--r--debpkg-control1183logplain
-rw-r--r--kubernetes.yml1035logplain
-rw-r--r--minetest-icon-24x24.png587logplain
-rw-r--r--minetest-icon.icns242668logplain
-rw-r--r--minetest-icon.ico9662logplain
-rw-r--r--minetest-xorg-icon-128.png11241logplain
-rw-r--r--minetest.exe.manifest658logplain
-rw-r--r--minetest.svg8289logplain
-rw-r--r--net.minetest.minetest.appdata.xml2725logplain
-rw-r--r--net.minetest.minetest.desktop816logplain
-rw-r--r--winresource.rc1711logplain
f he has track_builder)", give_to_singleplayer= true, }); minetest.register_privilege("train_admin", { description = "Player may drive, place or remove any trains from/to anywhere, regardless of owner, whitelist or protection", give_to_singleplayer= true, }); -- Privileges to control TRACK BUILDING minetest.register_privilege("track_builder", { description = "Player can place and/or dig rails not protected from him. If he also has protection_bypass, he can place/dig any rails", give_to_singleplayer= true, }); -- Privileges to control OPERATING TURNOUTS/SIGNALS minetest.register_privilege("railway_operator", { description = "Player can operate turnouts and signals not protected from him. If he also has protection_bypass, he can operate any turnouts/signals", give_to_singleplayer= true, }); -- there is a configuration option "allow_build_only_owner". If this is active, a player having track_builder can only build rails and operate signals/turnouts in an area explicitly belonging to him -- (checked using a dummy player called "*dummy*" (which is not an allowed player name)) -- Protection ranges local npr_r = tonumber(minetest.settings:get("advtrains_prot_range_side")) or 1 local npr_vr = tonumber(minetest.settings:get("advtrains_prot_range_up")) or 3 local npr_vrd = tonumber(minetest.settings:get("advtrains_prot_range_down")) or 1 local boo = minetest.settings:get_bool("advtrains_allow_build_to_owner") --[[ Protection/privilege concept: Tracks: Protected 1 node all around a rail and 4 nodes upward (maybe make this dynamically determined by the rail...) if track_builder privilege: if not protected from* player: if allow_build_only_owner: if unprotected: deny else: allow deny Wagons in general: Players can only place/destroy wagons if they have train_operator Wagon driving controls: The former seat_access tables are unnecessary, instead there is a whitelist for the driving stands on player trying to access a driver stand: if is owner or is on whitelist: