diff --git a/config/_file_loader.lua b/config/_file_loader.lua index 404261bf..186014e0 100644 --- a/config/_file_loader.lua +++ b/config/_file_loader.lua @@ -50,6 +50,7 @@ return { 'modules.addons.afk-kick', 'modules.addons.report-jail', 'modules.addons.protection-jail', + 'modules.addons.deconlog', --- Data 'modules.data.statistics', diff --git a/config/deconlog.lua b/config/deconlog.lua new file mode 100644 index 00000000..ca46a0e1 --- /dev/null +++ b/config/deconlog.lua @@ -0,0 +1,9 @@ +--- This config controls whether actions such as deconning by players without sufficient permissions is logged or not +-- @config Deconlog + +return { + decon_area = true, ---@setting decon_area whether to log when an area is being deconstructed + built_entity = true, ---@setting built_entity whether to log when an entity is built + mined_entity = true, ---@setting mined_entity whether to log when an entity is mined + fired_nuke = true, ---@setting fired_nuke whether to log when a nuke is fired +} \ No newline at end of file diff --git a/config/expcore/roles.lua b/config/expcore/roles.lua index 95b797bd..4ed31454 100644 --- a/config/expcore/roles.lua +++ b/config/expcore/roles.lua @@ -202,6 +202,7 @@ end) Roles.new_role('Member','Mem') :set_permission_group('Standard') :set_custom_color{r=24,g=172,b=188} +:set_flag("deconlog-bypass") :set_parent('Regular') :allow{ 'gui/task-list/add', diff --git a/docs/addons/Advanced-Start.html b/docs/addons/Advanced-Start.html index 34f0bf1e..f7c99b4e 100644 --- a/docs/addons/Advanced-Start.html +++ b/docs/addons/Advanced-Start.html @@ -56,6 +56,7 @@ + @@ -168,6 +169,7 @@ + @@ -348,7 +350,7 @@ generated by LDoc diff --git a/docs/addons/Chat-Popups.html b/docs/addons/Chat-Popups.html index bce5ef98..1994d826 100644 --- a/docs/addons/Chat-Popups.html +++ b/docs/addons/Chat-Popups.html @@ -56,6 +56,7 @@ + @@ -168,6 +169,7 @@ + @@ -377,7 +379,7 @@ generated by LDoc diff --git a/docs/addons/Chat-Reply.html b/docs/addons/Chat-Reply.html index e2683401..f7820467 100644 --- a/docs/addons/Chat-Reply.html +++ b/docs/addons/Chat-Reply.html @@ -56,6 +56,7 @@ + @@ -168,6 +169,7 @@ + @@ -376,7 +378,7 @@ generated by LDoc diff --git a/docs/addons/Compilatron.html b/docs/addons/Compilatron.html index e4dce463..07b6a94d 100644 --- a/docs/addons/Compilatron.html +++ b/docs/addons/Compilatron.html @@ -57,6 +57,7 @@ + @@ -169,6 +170,7 @@ + @@ -585,7 +587,7 @@ generated by LDoc diff --git a/docs/addons/Damage-Popups.html b/docs/addons/Damage-Popups.html index eed1bf5e..8b77743d 100644 --- a/docs/addons/Damage-Popups.html +++ b/docs/addons/Damage-Popups.html @@ -56,6 +56,7 @@ + @@ -168,6 +169,7 @@ + @@ -377,7 +379,7 @@ generated by LDoc diff --git a/docs/addons/Death-Logger.html b/docs/addons/Death-Logger.html index ea3476e7..94fd2159 100644 --- a/docs/addons/Death-Logger.html +++ b/docs/addons/Death-Logger.html @@ -56,6 +56,7 @@ + @@ -168,6 +169,7 @@ + @@ -404,7 +406,7 @@ generated by LDoc diff --git a/docs/addons/Deconlog.html b/docs/addons/Deconlog.html new file mode 100644 index 00000000..df742acd --- /dev/null +++ b/docs/addons/Deconlog.html @@ -0,0 +1,386 @@ + + + + + + + + Deconlog addon + + + + + + + +
+
+ + + + + + + +
+ + + + + + + + +

Deconlog addon

+

Log certain actions into a file when events are triggered

+

+ + + + + + + + + + + + + +

Dependencies

+ + + + + + + + + + + + + +
utils.event
expcore.roles
config.deconlog
+ + +
+ + +

Dependencies

+
+
+
+
+ # + utils.event +
+
+
+
+ + + + + + + + + + + + + + + +
+
+
+
+ # + expcore.roles +
+
+
+
+ + + + + + + + + + + + + + + +
+
+
+
+ # + config.deconlog +
+
+
+
+ + + + + + + + + + + + + + + +
+
+ + + +
+
+
+ + + + diff --git a/docs/addons/Discord-Alerts.html b/docs/addons/Discord-Alerts.html index fc92db84..86c890aa 100644 --- a/docs/addons/Discord-Alerts.html +++ b/docs/addons/Discord-Alerts.html @@ -56,6 +56,7 @@ + @@ -168,6 +169,7 @@ + @@ -488,7 +490,7 @@ generated by LDoc diff --git a/docs/addons/Inventory-Clear.html b/docs/addons/Inventory-Clear.html index 9fde797d..ac92bf69 100644 --- a/docs/addons/Inventory-Clear.html +++ b/docs/addons/Inventory-Clear.html @@ -56,6 +56,7 @@ + @@ -168,6 +169,7 @@ + @@ -376,7 +378,7 @@ generated by LDoc diff --git a/docs/addons/Pollution-Grading.html b/docs/addons/Pollution-Grading.html index d151b47f..87ba42ed 100644 --- a/docs/addons/Pollution-Grading.html +++ b/docs/addons/Pollution-Grading.html @@ -56,6 +56,7 @@ + @@ -168,6 +169,7 @@ + @@ -348,7 +350,7 @@ generated by LDoc diff --git a/docs/addons/Scorched-Earth.html b/docs/addons/Scorched-Earth.html index c580704f..dd4bb332 100644 --- a/docs/addons/Scorched-Earth.html +++ b/docs/addons/Scorched-Earth.html @@ -56,6 +56,7 @@ + @@ -168,6 +169,7 @@ + @@ -404,7 +406,7 @@ generated by LDoc diff --git a/docs/addons/Spawn-Area.html b/docs/addons/Spawn-Area.html index 58e9fdd3..d308247b 100644 --- a/docs/addons/Spawn-Area.html +++ b/docs/addons/Spawn-Area.html @@ -56,6 +56,7 @@ + @@ -168,6 +169,7 @@ + @@ -376,7 +378,7 @@ generated by LDoc diff --git a/docs/addons/Tree-Decon.html b/docs/addons/Tree-Decon.html index 4794c3b5..a2b6b831 100644 --- a/docs/addons/Tree-Decon.html +++ b/docs/addons/Tree-Decon.html @@ -56,6 +56,7 @@ + @@ -168,6 +169,7 @@ + @@ -432,7 +434,7 @@ generated by LDoc diff --git a/docs/addons/afk-kick.html b/docs/addons/afk-kick.html index 058bcb3b..1e439abe 100644 --- a/docs/addons/afk-kick.html +++ b/docs/addons/afk-kick.html @@ -56,6 +56,7 @@ + @@ -168,6 +169,7 @@ + @@ -404,7 +406,7 @@ generated by LDoc diff --git a/docs/addons/protection-jail.html b/docs/addons/protection-jail.html index 51341963..1d16761a 100644 --- a/docs/addons/protection-jail.html +++ b/docs/addons/protection-jail.html @@ -56,6 +56,7 @@ + @@ -168,6 +169,7 @@ + @@ -432,7 +434,7 @@ generated by LDoc diff --git a/docs/addons/report-jail.html b/docs/addons/report-jail.html index 97877ec1..da6f3c22 100644 --- a/docs/addons/report-jail.html +++ b/docs/addons/report-jail.html @@ -56,6 +56,7 @@ + @@ -168,6 +169,7 @@ + @@ -404,7 +406,7 @@ generated by LDoc diff --git a/docs/commands/Admin-Chat.html b/docs/commands/Admin-Chat.html index 39e3a170..92cca760 100644 --- a/docs/commands/Admin-Chat.html +++ b/docs/commands/Admin-Chat.html @@ -120,6 +120,7 @@ + @@ -169,6 +170,7 @@ + @@ -416,7 +418,7 @@ generated by LDoc diff --git a/docs/commands/Admin-Markers.html b/docs/commands/Admin-Markers.html index ff45dddb..0fe93fe6 100644 --- a/docs/commands/Admin-Markers.html +++ b/docs/commands/Admin-Markers.html @@ -120,6 +120,7 @@ + @@ -169,6 +170,7 @@ + @@ -421,7 +423,7 @@ generated by LDoc diff --git a/docs/commands/Cheat-Mode.html b/docs/commands/Cheat-Mode.html index c2cc6db8..1785a9eb 100644 --- a/docs/commands/Cheat-Mode.html +++ b/docs/commands/Cheat-Mode.html @@ -120,6 +120,7 @@ + @@ -169,6 +170,7 @@ + @@ -389,7 +391,7 @@ generated by LDoc diff --git a/docs/commands/Clear-Inventory.html b/docs/commands/Clear-Inventory.html index f3b90e6b..86a03286 100644 --- a/docs/commands/Clear-Inventory.html +++ b/docs/commands/Clear-Inventory.html @@ -120,6 +120,7 @@ + @@ -169,6 +170,7 @@ + @@ -416,7 +418,7 @@ generated by LDoc diff --git a/docs/commands/Connect.html b/docs/commands/Connect.html index 961c3cfc..830ba946 100644 --- a/docs/commands/Connect.html +++ b/docs/commands/Connect.html @@ -120,6 +120,7 @@ + @@ -169,6 +170,7 @@ + @@ -619,7 +621,7 @@ generated by LDoc diff --git a/docs/commands/Debug.html b/docs/commands/Debug.html index 0c6f4e39..6fc6de18 100644 --- a/docs/commands/Debug.html +++ b/docs/commands/Debug.html @@ -120,6 +120,7 @@ + @@ -169,6 +170,7 @@ + @@ -393,7 +395,7 @@ generated by LDoc diff --git a/docs/commands/Find.html b/docs/commands/Find.html index cdff8178..602729d5 100644 --- a/docs/commands/Find.html +++ b/docs/commands/Find.html @@ -120,6 +120,7 @@ + @@ -169,6 +170,7 @@ + @@ -388,7 +390,7 @@ generated by LDoc diff --git a/docs/commands/Help.html b/docs/commands/Help.html index 1af50ef6..3d222302 100644 --- a/docs/commands/Help.html +++ b/docs/commands/Help.html @@ -120,6 +120,7 @@ + @@ -169,6 +170,7 @@ + @@ -432,7 +434,7 @@ generated by LDoc diff --git a/docs/commands/Home.html b/docs/commands/Home.html index e1f10e3e..4b95731e 100644 --- a/docs/commands/Home.html +++ b/docs/commands/Home.html @@ -120,6 +120,7 @@ + @@ -169,6 +170,7 @@ + @@ -486,7 +488,7 @@ generated by LDoc diff --git a/docs/commands/Interface.html b/docs/commands/Interface.html index 45b6aa45..5b209898 100644 --- a/docs/commands/Interface.html +++ b/docs/commands/Interface.html @@ -120,6 +120,7 @@ + @@ -169,6 +170,7 @@ + @@ -416,7 +418,7 @@ generated by LDoc diff --git a/docs/commands/InventorySearch.html b/docs/commands/InventorySearch.html index 218fa9be..6b76a430 100644 --- a/docs/commands/InventorySearch.html +++ b/docs/commands/InventorySearch.html @@ -120,6 +120,7 @@ + @@ -169,6 +170,7 @@ + @@ -606,7 +608,7 @@ generated by LDoc diff --git a/docs/commands/Jail.html b/docs/commands/Jail.html index 3b45e437..28c707ca 100644 --- a/docs/commands/Jail.html +++ b/docs/commands/Jail.html @@ -120,6 +120,7 @@ + @@ -169,6 +170,7 @@ + @@ -515,7 +517,7 @@ generated by LDoc diff --git a/docs/commands/Kill.html b/docs/commands/Kill.html index 458c1796..64b8a86d 100644 --- a/docs/commands/Kill.html +++ b/docs/commands/Kill.html @@ -120,6 +120,7 @@ + @@ -169,6 +170,7 @@ + @@ -417,7 +419,7 @@ generated by LDoc diff --git a/docs/commands/LastLocation.html b/docs/commands/LastLocation.html index 528f9f56..98d6c209 100644 --- a/docs/commands/LastLocation.html +++ b/docs/commands/LastLocation.html @@ -120,6 +120,7 @@ + @@ -169,6 +170,7 @@ + @@ -416,7 +418,7 @@ generated by LDoc diff --git a/docs/commands/Me.html b/docs/commands/Me.html index 1adb8e43..5f78ffdf 100644 --- a/docs/commands/Me.html +++ b/docs/commands/Me.html @@ -120,6 +120,7 @@ + @@ -169,6 +170,7 @@ + @@ -388,7 +390,7 @@ generated by LDoc diff --git a/docs/commands/Protection.html b/docs/commands/Protection.html index 965719a2..c880d0fc 100644 --- a/docs/commands/Protection.html +++ b/docs/commands/Protection.html @@ -120,6 +120,7 @@ + @@ -169,6 +170,7 @@ + @@ -564,7 +566,7 @@ generated by LDoc diff --git a/docs/commands/Rainbow.html b/docs/commands/Rainbow.html index a90addf3..2bcaee47 100644 --- a/docs/commands/Rainbow.html +++ b/docs/commands/Rainbow.html @@ -120,6 +120,7 @@ + @@ -169,6 +170,7 @@ + @@ -416,7 +418,7 @@ generated by LDoc diff --git a/docs/commands/Repair.html b/docs/commands/Repair.html index 986fb835..5e5ea1ee 100644 --- a/docs/commands/Repair.html +++ b/docs/commands/Repair.html @@ -119,6 +119,7 @@ + @@ -168,6 +169,7 @@ + @@ -349,7 +351,7 @@ generated by LDoc diff --git a/docs/commands/Reports.html b/docs/commands/Reports.html index ae2d0f70..2c0fd025 100644 --- a/docs/commands/Reports.html +++ b/docs/commands/Reports.html @@ -120,6 +120,7 @@ + @@ -169,6 +170,7 @@ + @@ -613,7 +615,7 @@ generated by LDoc diff --git a/docs/commands/Roles.html b/docs/commands/Roles.html index 18a828d7..3a713362 100644 --- a/docs/commands/Roles.html +++ b/docs/commands/Roles.html @@ -120,6 +120,7 @@ + @@ -169,6 +170,7 @@ + @@ -585,7 +587,7 @@ generated by LDoc diff --git a/docs/commands/Spawn.html b/docs/commands/Spawn.html index 523abc78..15a87f91 100644 --- a/docs/commands/Spawn.html +++ b/docs/commands/Spawn.html @@ -120,6 +120,7 @@ + @@ -169,6 +170,7 @@ + @@ -417,7 +419,7 @@ generated by LDoc diff --git a/docs/commands/Spectate.html b/docs/commands/Spectate.html index 20d6310b..b4f23a11 100644 --- a/docs/commands/Spectate.html +++ b/docs/commands/Spectate.html @@ -120,6 +120,7 @@ + @@ -169,6 +170,7 @@ + @@ -447,7 +449,7 @@ generated by LDoc diff --git a/docs/commands/Teleport.html b/docs/commands/Teleport.html index 34decada..16ebb755 100644 --- a/docs/commands/Teleport.html +++ b/docs/commands/Teleport.html @@ -120,6 +120,7 @@ + @@ -169,6 +170,7 @@ + @@ -512,7 +514,7 @@ generated by LDoc diff --git a/docs/commands/Warnings.html b/docs/commands/Warnings.html index d16c0ba9..59f73b01 100644 --- a/docs/commands/Warnings.html +++ b/docs/commands/Warnings.html @@ -120,6 +120,7 @@ + @@ -169,6 +170,7 @@ + @@ -597,7 +599,7 @@ generated by LDoc diff --git a/docs/configs/Advanced-Start.html b/docs/configs/Advanced-Start.html index 85f06bab..7e142c7d 100644 --- a/docs/configs/Advanced-Start.html +++ b/docs/configs/Advanced-Start.html @@ -55,6 +55,7 @@ + @@ -126,6 +127,7 @@ + @@ -534,7 +536,7 @@ generated by LDoc diff --git a/docs/configs/Autofill.html b/docs/configs/Autofill.html index 0ab028ec..ee3fc421 100644 --- a/docs/configs/Autofill.html +++ b/docs/configs/Autofill.html @@ -47,6 +47,7 @@ + @@ -118,6 +119,7 @@ + @@ -265,7 +267,7 @@ generated by LDoc diff --git a/docs/configs/Bonuses.html b/docs/configs/Bonuses.html index 075f986f..d1a48f6f 100644 --- a/docs/configs/Bonuses.html +++ b/docs/configs/Bonuses.html @@ -47,6 +47,7 @@ + @@ -118,6 +119,7 @@ + @@ -265,7 +267,7 @@ generated by LDoc diff --git a/docs/configs/Chat-Reply.html b/docs/configs/Chat-Reply.html index d84a7b9d..948e2220 100644 --- a/docs/configs/Chat-Reply.html +++ b/docs/configs/Chat-Reply.html @@ -56,6 +56,7 @@ + @@ -127,6 +128,7 @@ + @@ -513,7 +515,7 @@ generated by LDoc diff --git a/docs/configs/Commands-Auth-Admin.html b/docs/configs/Commands-Auth-Admin.html index c33afd5a..afa536c3 100644 --- a/docs/configs/Commands-Auth-Admin.html +++ b/docs/configs/Commands-Auth-Admin.html @@ -55,6 +55,7 @@ + @@ -126,6 +127,7 @@ + @@ -322,7 +324,7 @@ generated by LDoc diff --git a/docs/configs/Commands-Auth-Roles.html b/docs/configs/Commands-Auth-Roles.html index e4bfd018..49363c29 100644 --- a/docs/configs/Commands-Auth-Roles.html +++ b/docs/configs/Commands-Auth-Roles.html @@ -55,6 +55,7 @@ + @@ -126,6 +127,7 @@ + @@ -348,7 +350,7 @@ generated by LDoc diff --git a/docs/configs/Commands-Auth-Runtime-Disable.html b/docs/configs/Commands-Auth-Runtime-Disable.html index e2ea43db..8944fea9 100644 --- a/docs/configs/Commands-Auth-Runtime-Disable.html +++ b/docs/configs/Commands-Auth-Runtime-Disable.html @@ -56,6 +56,7 @@ + @@ -127,6 +128,7 @@ + @@ -470,7 +472,7 @@ generated by LDoc diff --git a/docs/configs/Commands-Color-Parse.html b/docs/configs/Commands-Color-Parse.html index a29351f3..8d1e611c 100644 --- a/docs/configs/Commands-Color-Parse.html +++ b/docs/configs/Commands-Color-Parse.html @@ -55,6 +55,7 @@ + @@ -126,6 +127,7 @@ + @@ -348,7 +350,7 @@ generated by LDoc diff --git a/docs/configs/Commands-Parse-Roles.html b/docs/configs/Commands-Parse-Roles.html index 3421cae9..ffcc57c5 100644 --- a/docs/configs/Commands-Parse-Roles.html +++ b/docs/configs/Commands-Parse-Roles.html @@ -55,6 +55,7 @@ + @@ -126,6 +127,7 @@ + @@ -382,7 +384,7 @@ generated by LDoc diff --git a/docs/configs/Commands-Parse.html b/docs/configs/Commands-Parse.html index 6243a375..b8148745 100644 --- a/docs/configs/Commands-Parse.html +++ b/docs/configs/Commands-Parse.html @@ -55,6 +55,7 @@ + @@ -126,6 +127,7 @@ + @@ -338,7 +340,7 @@ see ./expcore/commands.lua for more details

generated by LDoc diff --git a/docs/configs/Compilatron.html b/docs/configs/Compilatron.html index e129d403..7d6b3bd9 100644 --- a/docs/configs/Compilatron.html +++ b/docs/configs/Compilatron.html @@ -55,6 +55,7 @@ + @@ -126,6 +127,7 @@ + @@ -382,7 +384,7 @@ generated by LDoc diff --git a/docs/configs/Death-Logger.html b/docs/configs/Death-Logger.html index 34709dbb..f41cfb5d 100644 --- a/docs/configs/Death-Logger.html +++ b/docs/configs/Death-Logger.html @@ -55,6 +55,7 @@ + @@ -126,6 +127,7 @@ + @@ -504,7 +506,7 @@ generated by LDoc diff --git a/docs/configs/Deconlog.html b/docs/configs/Deconlog.html new file mode 100644 index 00000000..bb55737f --- /dev/null +++ b/docs/configs/Deconlog.html @@ -0,0 +1,422 @@ + + + + + + + + Deconlog config + + + + + + + +
+
+ + + + + + + +
+ + + + + + + + +

Deconlog config

+

This config controls whether actions such as deconning by players without sufficient permissions is logged or not

+

+ + + + + + + + + + + + + +

Settings

+ + + + + + + + + + + + + + + + +
decon_area
built_entity
mined_entity
fired_nuke
+ + +
+ + +

Settings

+
+
+
+
+ # + decon_area +
+
+
+
+ +

+

whether to log when an area is being deconstructed

+ + + + + + + + + + + + + + +
+
+
+
+ # + built_entity +
+
+
+
+ +

+

whether to log when an entity is built

+ + + + + + + + + + + + + + +
+
+
+
+ # + mined_entity +
+
+
+
+ +

+

whether to log when an entity is mined

+ + + + + + + + + + + + + + +
+
+
+
+ # + fired_nuke +
+
+
+
+ +

+

whether to log when a nuke is fired

+ + + + + + + + + + + + + + +
+
+ + + +
+
+
+ + + + diff --git a/docs/configs/Discord-Alerts.html b/docs/configs/Discord-Alerts.html index a3fc5cf7..05235eea 100644 --- a/docs/configs/Discord-Alerts.html +++ b/docs/configs/Discord-Alerts.html @@ -47,6 +47,7 @@ + @@ -118,6 +119,7 @@ + @@ -265,7 +267,7 @@ generated by LDoc diff --git a/docs/configs/File-Loader.html b/docs/configs/File-Loader.html index df65386c..433a8c21 100644 --- a/docs/configs/File-Loader.html +++ b/docs/configs/File-Loader.html @@ -47,6 +47,7 @@ + @@ -118,6 +119,7 @@ + @@ -268,7 +270,7 @@ generated by LDoc diff --git a/docs/configs/Permission-Groups.html b/docs/configs/Permission-Groups.html index 5dbb9d44..0b557597 100644 --- a/docs/configs/Permission-Groups.html +++ b/docs/configs/Permission-Groups.html @@ -55,6 +55,7 @@ + @@ -126,6 +127,7 @@ + @@ -323,7 +325,7 @@ generated by LDoc diff --git a/docs/configs/Player-List.html b/docs/configs/Player-List.html index 1498f5f2..31772a28 100644 --- a/docs/configs/Player-List.html +++ b/docs/configs/Player-List.html @@ -56,6 +56,7 @@ + @@ -127,6 +128,7 @@ + @@ -722,7 +724,7 @@ generated by LDoc diff --git a/docs/configs/Pollution-Grading.html b/docs/configs/Pollution-Grading.html index 4d83f309..77fbd245 100644 --- a/docs/configs/Pollution-Grading.html +++ b/docs/configs/Pollution-Grading.html @@ -55,6 +55,7 @@ + @@ -126,6 +127,7 @@ + @@ -412,7 +414,7 @@ generated by LDoc diff --git a/docs/configs/Popup-Messages.html b/docs/configs/Popup-Messages.html index 2b5688d1..573f652c 100644 --- a/docs/configs/Popup-Messages.html +++ b/docs/configs/Popup-Messages.html @@ -55,6 +55,7 @@ + @@ -126,6 +127,7 @@ + @@ -442,7 +444,7 @@ generated by LDoc diff --git a/docs/configs/Preset-Player-Colours.html b/docs/configs/Preset-Player-Colours.html index c841aab9..78214098 100644 --- a/docs/configs/Preset-Player-Colours.html +++ b/docs/configs/Preset-Player-Colours.html @@ -55,6 +55,7 @@ + @@ -126,6 +127,7 @@ + @@ -352,7 +354,7 @@ generated by LDoc diff --git a/docs/configs/Preset-Player-Quickbar.html b/docs/configs/Preset-Player-Quickbar.html index a4089585..b597a2a6 100644 --- a/docs/configs/Preset-Player-Quickbar.html +++ b/docs/configs/Preset-Player-Quickbar.html @@ -47,6 +47,7 @@ + @@ -118,6 +119,7 @@ + @@ -265,7 +267,7 @@ generated by LDoc diff --git a/docs/configs/Repair.html b/docs/configs/Repair.html index 82f7049d..e63a85ad 100644 --- a/docs/configs/Repair.html +++ b/docs/configs/Repair.html @@ -55,6 +55,7 @@ + @@ -126,6 +127,7 @@ + @@ -442,7 +444,7 @@ generated by LDoc diff --git a/docs/configs/Rockets.html b/docs/configs/Rockets.html index 581beb66..e5efe508 100644 --- a/docs/configs/Rockets.html +++ b/docs/configs/Rockets.html @@ -55,6 +55,7 @@ + @@ -126,6 +127,7 @@ + @@ -862,7 +864,7 @@ generated by LDoc diff --git a/docs/configs/Roles.html b/docs/configs/Roles.html index afdb593b..119c8453 100644 --- a/docs/configs/Roles.html +++ b/docs/configs/Roles.html @@ -55,6 +55,7 @@ + @@ -126,6 +127,7 @@ + @@ -348,7 +350,7 @@ generated by LDoc diff --git a/docs/configs/Science.html b/docs/configs/Science.html index 08876d7f..b5e3202c 100644 --- a/docs/configs/Science.html +++ b/docs/configs/Science.html @@ -55,6 +55,7 @@ + @@ -126,6 +127,7 @@ + @@ -382,7 +384,7 @@ generated by LDoc diff --git a/docs/configs/Scorched-Earth.html b/docs/configs/Scorched-Earth.html index d9684422..8106cfd2 100644 --- a/docs/configs/Scorched-Earth.html +++ b/docs/configs/Scorched-Earth.html @@ -55,6 +55,7 @@ + @@ -126,6 +127,7 @@ + @@ -416,7 +418,7 @@ generated by LDoc diff --git a/docs/configs/Spawn-Area.html b/docs/configs/Spawn-Area.html index a05eacb1..1f5b0772 100644 --- a/docs/configs/Spawn-Area.html +++ b/docs/configs/Spawn-Area.html @@ -55,6 +55,7 @@ + @@ -126,6 +127,7 @@ + @@ -1223,7 +1225,7 @@ generated by LDoc diff --git a/docs/configs/Statistics.html b/docs/configs/Statistics.html index 182f3500..0ad9562a 100644 --- a/docs/configs/Statistics.html +++ b/docs/configs/Statistics.html @@ -55,6 +55,7 @@ + @@ -126,6 +127,7 @@ + @@ -682,7 +684,7 @@ generated by LDoc diff --git a/docs/configs/Tasks.html b/docs/configs/Tasks.html index 3b48a519..7358af6c 100644 --- a/docs/configs/Tasks.html +++ b/docs/configs/Tasks.html @@ -55,6 +55,7 @@ + @@ -126,6 +127,7 @@ + @@ -412,7 +414,7 @@ generated by LDoc diff --git a/docs/configs/Warnings.html b/docs/configs/Warnings.html index c12015f2..c385acab 100644 --- a/docs/configs/Warnings.html +++ b/docs/configs/Warnings.html @@ -55,6 +55,7 @@ + @@ -126,6 +127,7 @@ + @@ -383,7 +385,7 @@ generated by LDoc diff --git a/docs/configs/Warps.html b/docs/configs/Warps.html index f4f86e77..b327f63d 100644 --- a/docs/configs/Warps.html +++ b/docs/configs/Warps.html @@ -55,6 +55,7 @@ + @@ -126,6 +127,7 @@ + @@ -772,7 +774,7 @@ generated by LDoc diff --git a/docs/configs/inventory_clear.html b/docs/configs/inventory_clear.html index 8996d834..cec877ff 100644 --- a/docs/configs/inventory_clear.html +++ b/docs/configs/inventory_clear.html @@ -47,6 +47,7 @@ + @@ -118,6 +119,7 @@ + @@ -265,7 +267,7 @@ generated by LDoc diff --git a/docs/control/Jail.html b/docs/control/Jail.html index c24a73cb..071b83fa 100644 --- a/docs/control/Jail.html +++ b/docs/control/Jail.html @@ -90,6 +90,7 @@ + @@ -170,6 +171,7 @@ + @@ -803,7 +805,7 @@ generated by LDoc diff --git a/docs/control/Production.html b/docs/control/Production.html index 164a117b..7dc729c0 100644 --- a/docs/control/Production.html +++ b/docs/control/Production.html @@ -91,6 +91,7 @@ + @@ -171,6 +172,7 @@ + @@ -1357,7 +1359,7 @@ generated by LDoc diff --git a/docs/control/Protection.html b/docs/control/Protection.html index 07ebaf1f..292da287 100644 --- a/docs/control/Protection.html +++ b/docs/control/Protection.html @@ -90,6 +90,7 @@ + @@ -170,6 +171,7 @@ + @@ -1029,7 +1031,7 @@ generated by LDoc diff --git a/docs/control/Reports.html b/docs/control/Reports.html index 12b02382..938b62b0 100644 --- a/docs/control/Reports.html +++ b/docs/control/Reports.html @@ -91,6 +91,7 @@ + @@ -171,6 +172,7 @@ + @@ -1170,7 +1172,7 @@ generated by LDoc diff --git a/docs/control/Rockets.html b/docs/control/Rockets.html index 61dca66a..5f66d379 100644 --- a/docs/control/Rockets.html +++ b/docs/control/Rockets.html @@ -90,6 +90,7 @@ + @@ -170,6 +171,7 @@ + @@ -1012,7 +1014,7 @@ generated by LDoc diff --git a/docs/control/Selection.html b/docs/control/Selection.html index 91437520..8e798c90 100644 --- a/docs/control/Selection.html +++ b/docs/control/Selection.html @@ -90,6 +90,7 @@ + @@ -170,6 +171,7 @@ + @@ -919,7 +921,7 @@ generated by LDoc diff --git a/docs/control/Tasks.html b/docs/control/Tasks.html index 7a1676f1..b61e3118 100644 --- a/docs/control/Tasks.html +++ b/docs/control/Tasks.html @@ -90,6 +90,7 @@ + @@ -170,6 +171,7 @@ + @@ -1013,7 +1015,7 @@ Tasks.update_task(task_id, 'We need more iron!', gam generated by LDoc diff --git a/docs/control/Warnings.html b/docs/control/Warnings.html index 00eab4d4..59bfa2b4 100644 --- a/docs/control/Warnings.html +++ b/docs/control/Warnings.html @@ -90,6 +90,7 @@ + @@ -170,6 +171,7 @@ + @@ -1553,7 +1555,7 @@ generated by LDoc diff --git a/docs/control/Warps.html b/docs/control/Warps.html index 0ed9510a..f71ebc27 100644 --- a/docs/control/Warps.html +++ b/docs/control/Warps.html @@ -91,6 +91,7 @@ + @@ -171,6 +172,7 @@ + @@ -1535,7 +1537,7 @@ Warps.make_warp_tag(warp_id) generated by LDoc diff --git a/docs/core/Async.html b/docs/core/Async.html index 81d06fe9..7889069d 100644 --- a/docs/core/Async.html +++ b/docs/core/Async.html @@ -89,6 +89,7 @@ + @@ -169,6 +170,7 @@ + @@ -626,7 +628,7 @@ Async.register(function(player, message) generated by LDoc diff --git a/docs/core/Commands.html b/docs/core/Commands.html index 87f1e850..e6ce1106 100644 --- a/docs/core/Commands.html +++ b/docs/core/Commands.html @@ -95,6 +95,7 @@ + @@ -175,6 +176,7 @@ + @@ -2441,7 +2443,7 @@ nb: use error(error_message) within your callback to trigger do not trigger dire generated by LDoc diff --git a/docs/core/Common.html b/docs/core/Common.html index 9877aefd..922eb5d8 100644 --- a/docs/core/Common.html +++ b/docs/core/Common.html @@ -92,6 +92,7 @@ + @@ -172,6 +173,7 @@ + @@ -2780,7 +2782,7 @@ https://github.com/Refactorio/RedMew/blob/9184b2940f311d8c9c891e83429fc57ec7e0c4 generated by LDoc diff --git a/docs/core/Datastore.html b/docs/core/Datastore.html index 5aae6c27..1f4b5456 100644 --- a/docs/core/Datastore.html +++ b/docs/core/Datastore.html @@ -94,6 +94,7 @@ + @@ -174,6 +175,7 @@ + @@ -2977,7 +2979,7 @@ ExampleData:on_update(function(key, value) generated by LDoc diff --git a/docs/core/External.html b/docs/core/External.html index 5f4108d5..91fcc1cc 100644 --- a/docs/core/External.html +++ b/docs/core/External.html @@ -88,6 +88,7 @@ + @@ -168,6 +169,7 @@ + @@ -761,7 +763,7 @@ generated by LDoc diff --git a/docs/core/Groups.html b/docs/core/Groups.html index a90f0b86..9267e116 100644 --- a/docs/core/Groups.html +++ b/docs/core/Groups.html @@ -92,6 +92,7 @@ + @@ -172,6 +173,7 @@ + @@ -1456,7 +1458,7 @@ generated by LDoc diff --git a/docs/core/Gui.html b/docs/core/Gui.html index 7378bb56..e8735cc6 100644 --- a/docs/core/Gui.html +++ b/docs/core/Gui.html @@ -97,6 +97,7 @@ + @@ -177,6 +178,7 @@ + @@ -4434,7 +4436,7 @@ Gui.left_toolbar_button('entity/inserter', generated by LDoc diff --git a/docs/core/PlayerData.html b/docs/core/PlayerData.html index 072bda9f..0d1bf314 100644 --- a/docs/core/PlayerData.html +++ b/docs/core/PlayerData.html @@ -89,6 +89,7 @@ + @@ -169,6 +170,7 @@ + @@ -544,7 +546,7 @@ generated by LDoc diff --git a/docs/core/Roles.html b/docs/core/Roles.html index 9c2e304e..afbc48b0 100644 --- a/docs/core/Roles.html +++ b/docs/core/Roles.html @@ -96,6 +96,7 @@ + @@ -176,6 +177,7 @@ + @@ -3404,7 +3406,7 @@ nb: this is one way, failing false after already gaining the role will not revok generated by LDoc diff --git a/docs/data/Alt-View.html b/docs/data/Alt-View.html index 279620d4..b3746dc7 100644 --- a/docs/data/Alt-View.html +++ b/docs/data/Alt-View.html @@ -101,6 +101,7 @@ + @@ -168,6 +169,7 @@ + @@ -348,7 +350,7 @@ generated by LDoc diff --git a/docs/data/Bonus.html b/docs/data/Bonus.html index 4aad3155..0831238e 100644 --- a/docs/data/Bonus.html +++ b/docs/data/Bonus.html @@ -102,6 +102,7 @@ + @@ -169,6 +170,7 @@ + @@ -500,7 +502,7 @@ generated by LDoc diff --git a/docs/data/Greetings.html b/docs/data/Greetings.html index c2e5b1dd..9019eaa7 100644 --- a/docs/data/Greetings.html +++ b/docs/data/Greetings.html @@ -102,6 +102,7 @@ + @@ -169,6 +170,7 @@ + @@ -443,7 +445,7 @@ generated by LDoc diff --git a/docs/data/Player-Colours.html b/docs/data/Player-Colours.html index d0d389bd..42accea0 100644 --- a/docs/data/Player-Colours.html +++ b/docs/data/Player-Colours.html @@ -101,6 +101,7 @@ + @@ -168,6 +169,7 @@ + @@ -404,7 +406,7 @@ generated by LDoc diff --git a/docs/data/Quickbar.html b/docs/data/Quickbar.html index a39662c2..3b806b65 100644 --- a/docs/data/Quickbar.html +++ b/docs/data/Quickbar.html @@ -102,6 +102,7 @@ + @@ -169,6 +170,7 @@ + @@ -421,7 +423,7 @@ generated by LDoc diff --git a/docs/data/Tag.html b/docs/data/Tag.html index 62c46b85..42e761c2 100644 --- a/docs/data/Tag.html +++ b/docs/data/Tag.html @@ -102,6 +102,7 @@ + @@ -169,6 +170,7 @@ + @@ -553,7 +555,7 @@ generated by LDoc diff --git a/docs/guis/Autofill.html b/docs/guis/Autofill.html index dbeb0673..784e8f66 100644 --- a/docs/guis/Autofill.html +++ b/docs/guis/Autofill.html @@ -103,6 +103,7 @@ + @@ -168,6 +169,7 @@ + @@ -605,7 +607,7 @@ generated by LDoc diff --git a/docs/guis/Player-List.html b/docs/guis/Player-List.html index 3f81467b..58cafe6b 100644 --- a/docs/guis/Player-List.html +++ b/docs/guis/Player-List.html @@ -104,6 +104,7 @@ + @@ -169,6 +170,7 @@ + @@ -719,7 +721,7 @@ generated by LDoc diff --git a/docs/guis/Readme.html b/docs/guis/Readme.html index ac1d4abe..4d853796 100644 --- a/docs/guis/Readme.html +++ b/docs/guis/Readme.html @@ -106,6 +106,7 @@ + @@ -171,6 +172,7 @@ + @@ -1011,7 +1013,7 @@ generated by LDoc diff --git a/docs/guis/Rocket-Info.html b/docs/guis/Rocket-Info.html index 3ffbf065..e75639ce 100644 --- a/docs/guis/Rocket-Info.html +++ b/docs/guis/Rocket-Info.html @@ -104,6 +104,7 @@ + @@ -169,6 +170,7 @@ + @@ -719,7 +721,7 @@ generated by LDoc diff --git a/docs/guis/Science-Info.html b/docs/guis/Science-Info.html index d995d7b9..2553c75d 100644 --- a/docs/guis/Science-Info.html +++ b/docs/guis/Science-Info.html @@ -104,6 +104,7 @@ + @@ -169,6 +170,7 @@ + @@ -598,7 +600,7 @@ generated by LDoc diff --git a/docs/guis/Task-List.html b/docs/guis/Task-List.html index 1fee3edf..07550c71 100644 --- a/docs/guis/Task-List.html +++ b/docs/guis/Task-List.html @@ -104,6 +104,7 @@ + @@ -169,6 +170,7 @@ + @@ -1122,7 +1124,7 @@ generated by LDoc diff --git a/docs/guis/Warps-List.html b/docs/guis/Warps-List.html index 470a4a90..2db7bf5f 100644 --- a/docs/guis/Warps-List.html +++ b/docs/guis/Warps-List.html @@ -105,6 +105,7 @@ + @@ -170,6 +171,7 @@ + @@ -1088,7 +1090,7 @@ generated by LDoc diff --git a/docs/guis/server-ups.html b/docs/guis/server-ups.html index c4d2ef6f..80bba7f2 100644 --- a/docs/guis/server-ups.html +++ b/docs/guis/server-ups.html @@ -105,6 +105,7 @@ + @@ -170,6 +171,7 @@ + @@ -521,7 +523,7 @@ generated by LDoc diff --git a/docs/index.html b/docs/index.html index 0eea4303..3ede4df6 100644 --- a/docs/index.html +++ b/docs/index.html @@ -171,6 +171,10 @@ Makes markers on the map where places have died and reclaims items if not recovered + Deconlog + Log certain actions into a file when events are triggered + + Discord-Alerts Sends alert messages to our discord server when certain events are triggered @@ -429,6 +433,10 @@ This config controls what happens when a player dies mostly about map markers and item collection; allow_teleport_to_body_command and allow_collect_bodies_command can be over ridden if command_auth_runtime_disable is present; if not present then the commands will not be loaded into the game + + + Deconlog + This config controls whether actions such as deconning by players without sufficient permissions is logged or not Discord-Alerts @@ -610,7 +618,7 @@ Events.set_event_filter(defines.events.on_built_entity, {{filter = "name", name generated by LDoc diff --git a/docs/modules/control.html b/docs/modules/control.html index b499f70a..a99975eb 100644 --- a/docs/modules/control.html +++ b/docs/modules/control.html @@ -95,6 +95,7 @@ + @@ -175,6 +176,7 @@ + @@ -268,7 +270,7 @@ generated by LDoc diff --git a/docs/modules/modules.addons.station-auto-name.html b/docs/modules/modules.addons.station-auto-name.html index 1e0771b6..ceaa509e 100644 --- a/docs/modules/modules.addons.station-auto-name.html +++ b/docs/modules/modules.addons.station-auto-name.html @@ -103,6 +103,7 @@ + @@ -183,6 +184,7 @@ + @@ -321,7 +323,7 @@ Events.set_event_filter(defines.events.on_built_entity, {{filter = "name", name generated by LDoc diff --git a/docs/modules/overrides.debug.html b/docs/modules/overrides.debug.html index 162c6a71..7cf9efb6 100644 --- a/docs/modules/overrides.debug.html +++ b/docs/modules/overrides.debug.html @@ -103,6 +103,7 @@ + @@ -183,6 +184,7 @@ + @@ -682,7 +684,7 @@ generated by LDoc diff --git a/docs/modules/overrides.math.html b/docs/modules/overrides.math.html index 0c020087..d938dc1c 100644 --- a/docs/modules/overrides.math.html +++ b/docs/modules/overrides.math.html @@ -103,6 +103,7 @@ + @@ -183,6 +184,7 @@ + @@ -381,7 +383,7 @@ generated by LDoc diff --git a/docs/modules/overrides.table.html b/docs/modules/overrides.table.html index f6f2570f..7c5d7893 100644 --- a/docs/modules/overrides.table.html +++ b/docs/modules/overrides.table.html @@ -105,6 +105,7 @@ + @@ -185,6 +186,7 @@ + @@ -2036,7 +2038,7 @@ generated by LDoc diff --git a/docs/modules/utils.event.html b/docs/modules/utils.event.html index 37084781..7d646cd0 100644 --- a/docs/modules/utils.event.html +++ b/docs/modules/utils.event.html @@ -104,6 +104,7 @@ + @@ -184,6 +185,7 @@ + @@ -1320,7 +1322,7 @@ generated by LDoc diff --git a/docs/modules/utils.event_core.html b/docs/modules/utils.event_core.html index 19924ffe..1683c001 100644 --- a/docs/modules/utils.event_core.html +++ b/docs/modules/utils.event_core.html @@ -103,6 +103,7 @@ + @@ -183,6 +184,7 @@ + @@ -462,7 +464,7 @@ generated by LDoc diff --git a/docs/modules/utils.task.html b/docs/modules/utils.task.html index 2c5c67fe..c14a6516 100644 --- a/docs/modules/utils.task.html +++ b/docs/modules/utils.task.html @@ -104,6 +104,7 @@ + @@ -184,6 +185,7 @@ + @@ -679,7 +681,7 @@ generated by LDoc diff --git a/docs/topics/LICENSE.html b/docs/topics/LICENSE.html index 5fc129d8..b5efdd3c 100644 --- a/docs/topics/LICENSE.html +++ b/docs/topics/LICENSE.html @@ -89,6 +89,7 @@ + @@ -169,6 +170,7 @@ + @@ -817,7 +819,7 @@ Public License instead of this License. But first, please read generated by LDoc diff --git a/docs/topics/README.md.html b/docs/topics/README.md.html index a1f62f83..a94851d1 100644 --- a/docs/topics/README.md.html +++ b/docs/topics/README.md.html @@ -89,6 +89,7 @@ + @@ -169,6 +170,7 @@ + @@ -377,7 +379,7 @@ generated by LDoc diff --git a/modules/addons/deconlog.lua b/modules/addons/deconlog.lua new file mode 100644 index 00000000..4b2529d6 --- /dev/null +++ b/modules/addons/deconlog.lua @@ -0,0 +1,64 @@ +--- Log certain actions into a file when events are triggered +-- @addon Deconlog + +local Event = require 'utils.event' --- @dep utils.event +local Roles = require 'expcore.roles' --- @dep expcore.roles +local format_time = _C.format_time +local config = require 'config.deconlog' --- @dep config.deconlog + +local filepath = "log/decon.log" + +local function add_log(data) + game.write_file(filepath, data .. "\n", true, 0) -- write data +end +local function get_secs () + return format_time(game.tick, { hours = true, minutes = true, seconds = true, string = true }) +end +local function pos_tostring (pos) + return tostring(pos.x) .. "," .. tostring(pos.y) +end + +Event.on_init(function() + game.write_file(filepath, "\n", false, 0) -- write data +end) + +if config.decon_area then + Event.add(defines.events.on_player_deconstructed_area, function (e) + local player = game.get_player(e.player_index) + if Roles.player_has_flag(player, "deconlog-bypass") then return end + add_log(get_secs() .. player.name .. ",decon_area," .. pos_tostring(e.area.left_top) .. "," .. pos_tostring(e.area.right_bottom)) + end) +end + +if config.built_entity then + Event.add(defines.events.on_built_entity, function (e) + if not e.player_index then return end + local player = game.get_player(e.player_index) + if Roles.player_has_flag(player, "deconlog-bypass") then return end + local ent = e.created_entity + add_log(get_secs() .. player.name .. ",built_entity," .. ent.name .. "," .. pos_tostring(ent.position) .. "," .. tostring(ent.direction) .. "," .. tostring(ent.orientation)) + end) +end + +if config.mined_entity then + Event.add(defines.events.on_player_mined_entity, function (e) + local player = game.get_player(e.player_index) + if Roles.player_has_flag(player, "deconlog-bypass") then return end + local ent = e.entity + add_log(get_secs() .. player.name .. ",mined_entity," .. ent.name .. "," .. pos_tostring(ent.position) .. "," .. tostring(ent.direction) .. "," .. tostring(ent.orientation)) + end) +end + +if config.fired_nuke then + Event.add(defines.events.on_player_ammo_inventory_changed, function (e) + -- this works only if the player took more than one nuke, which they usually do + local player = game.get_player(e.player_index) + if Roles.player_has_flag(player, "deconlog-bypass") then return end + local ammo_inv = player.get_inventory(defines.inventory.character_ammo) + local item = ammo_inv[player.character.selected_gun_index] + if not item or not item.valid or not item.valid_for_read then return end + if item.name == "atomic-bomb" then + add_log(get_secs() .. player.name .. ",shot-bomb," .. pos_tostring(player.position) .. "," .. pos_tostring(player.shooting_state.position)) + end + end) +end \ No newline at end of file