11 Commits

Author SHA1 Message Date
MoNTE48
c2d13411ca Remove builtin Weather 2020-07-24 16:46:20 +02:00
MoNTE48
fe5941bdf7 Builtin: Backport MT5 Game 2020-02-04 21:47:07 +01:00
MoNTE48
8ea2d24c47 Add Weather (with rain and snow) 2019-10-13 20:34:13 +02:00
MoNTE48
f24fc3c1e1 Grant some privs in creative mode 2019-10-11 14:28:30 +02:00
Wuzzy
4a9436a936 Privileges: Only give singleplayer 4 basic privs
- interact
- shout
- privs
- basic_privs
2016-11-07 21:55:17 +00:00
lhofhansl
9447a9b575 Add debug priv, and allow player to display the scene as wire-frame. (#4709) 2016-11-04 03:14:32 +01:00
Ben Deutsch
59197a8d98 Zooming the camera requires the 'zoom' privilege 2016-08-10 12:18:25 +02:00
Sokomine
df827a4163 protection_bypass priv can now be revoked in singleplayer (#4169) 2016-05-30 22:40:32 +10:00
Auke Kok
ac65ce9c1c Introduce "protection_bypass" privilege.
This privilege allows map protection bypassing for server operators
and world moderators.

Initially I had thought that bypassing protection mods would have been
something that could entirely be done inside mods and minetest_game,
but the concept of protection is defined in core, in the code of
core.is_protected().

I don't feel that it would be logical to introduce a protection
concept in core, but not some way around that for server operators
to maintain map parts that need fixing, de-griefing or cleanup.

Others had noticed the same problems, and proposed a patch to
minetest_game. That patch is fine by itself, but it fails to add
protection bypass functionality for digging normal nodes and placing
nodes.

So, instead, we indroduce the new priv "protection_bypass" in core,
and modify 'on_place_node' and 'node_dig' to allow bypassing node
protections if the player holds this priv.

This priv was tested with protector redo by tenplus1.

A followup patch to Minetest Game will include allowing special checks
for doors, trapdoors, chests in Minetest Game.

Protection mods will likely want to mimic the changes in their relevant
code sections.
2016-03-11 21:09:53 +00:00
ShadowNinja
9718e20bfa Use "core" namespace internally 2014-05-08 13:02:04 -04:00
ShadowNinja
6001210df6 Organize builtin into subdirectories 2014-05-07 17:14:23 -04:00