21 Commits

Author SHA1 Message Date
Auke Kok
a153f771be Add review permission.
This moves review into a separate permission, aside from "server".

The benefit is that we can grant this to more people without the
need to pass out "server" privs, which has a lot more powers than
needeed.

This doesn't grant noclip. This needs to be done separately. Scoring
will be disabled for those with the review priv.
2020-07-27 16:52:10 -07:00
Auke Kok
ba1c93e23f Fix missing tools in tools tab.
Since we converted these tools into craftitems, to allow them to
stack, they have been missing from the tools tab. Explicitly insert
them so builders can obtain them easily again.
2020-03-04 11:19:55 -08:00
Wuzzy
207de4dc2c Add I18N support
This adds I18N support for ITB by using Minetest 5.0.0's locale system.
2019-09-11 21:06:59 -07:00
Wuzzy
e7e0357926 Rename both "Admin" tabs to disambiguate them 2019-04-13 23:50:18 -07:00
Wuzzy
139e06ea37 Add mega nexus to Creative inventory (Admin tab) 2019-04-13 23:47:17 -07:00
Auke Kok
80cbd6d34a Add license headers to all lua files.
Some of these are copies from the respective origins from mtg,
to make sure we have headers everywhere listing the proper code.

I've relicensed spectator_mode from WT*PL to LGPL-2.1. No other
licenses were changed.
2018-06-21 22:56:48 -07:00
Auke Kok
080a247553 Verbose logging for possible csm abuse. 2017-11-19 17:54:03 -08:00
Ekdohibs
755c2f9e4c Prevent non-admins from accessing admin nodes 2017-11-18 22:09:25 +01:00
Ekdohibs
d4c99b276f Fix second stupidity of mine 2017-11-18 21:22:54 +01:00
Ekdohibs
c68e430053 Typo fix 2017-11-18 21:21:03 +01:00
Ekdohibs
1d25d52885 Temp fix for preventing players from taking items from creative inv when they shouldn't.
**WARNING**: still allows all players to take admin items from creative inv.
2017-11-18 21:10:11 +01:00
Ekdohibs
6f7a1a73d9 Try to fix barrier, marbleb, bronzeb not being in admin tab. 2017-11-13 09:36:10 +01:00
Auke Kok
ad886c025f Add all border nodes to the admin tab. 2017-10-01 21:07:06 -07:00
Auke Kok
cbc0a15b4e Add inspector tool to admin tool tab. 2017-09-09 23:37:28 -07:00
Auke Kok
23633502a9 Admin inventory tab.
Contains teleports, barrier, admin tool. We should never allow
players to reach these items, since they create potential issues
in boxes if used.
2017-09-09 15:46:42 -07:00
Auke Kok
35a66b5869 Curate and pre-filter inventory items.
This reduces the available inventory tabs in the game to two:
- nodes
- tools

The items tab as well as the all tab is removed.
- wood/steel door are now "nodes"
- set door tool is now in "tools"
- a bunch of admin items (barrier, teleports, inspector) is now
  no longer obtainable at all.
2017-09-09 15:36:11 -07:00
Auke Kok
7519398cf4 Bugfix: custom inventory lists reak sfinv
It seems that if we do a table.copy() and pass that to sfinv, it
crashes our own filter code due to groups being empty.
2017-09-09 15:34:39 -07:00
Auke Kok
e3d92afb7e Simplify files here. 2017-02-11 21:13:28 -08:00
Ekdohibs
3df4665983 Handle inventory 2017-02-03 10:53:53 +01:00
Auke Kok
0dfda79c59 Fix inventory stuff 2017-01-26 00:20:03 -08:00
Auke Kok
5cf83a2a81 Add sfinv and creative, giving us a usable inventory. 2017-01-25 23:47:19 -08:00