AntumDeluge 2017-06-01 12:45:05 -07:00
parent 0ed55190fb
commit 4f7924e3c8
7 changed files with 23 additions and 6 deletions

View File

@ -31,7 +31,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
* [campfire][] ([GPL][lic.gpl2.0] / [CC BY-SA][lic.ccbysa] / [WTFPL][lic.campfire]) -- version: [b45acd2 Git][ver.campfire] *2016-02-18* ([patched][patch.campfire])
* chat/
* [away][] ([GPL][lic.gpl2.0]) -- version: [4c1e5a9 Git][ver.away] *2012-03-09*
* [chatlog][] ([CC0][lic.cc0]) -- version: (no version info)
* [chatlog][] ([CC0][lic.cc0]) -- version: (no version info) *2013-06-09* ([patched][patch.chatlog])
* crafting/
* [craftguide][] ([GPL / WTFPL](mods/crafting/craftguide/LICENSE)) -- version: [86a96c3 Git][ver.craftguide] *2017-03-21* ([patched][patch.craftguide])
* [currency][] ([WTFPL][lic.currency]) -- version: [21f9811 Git][ver.currency] *2017-03-22* ([patched][patch.currency])
@ -505,6 +505,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[patch.castle_storage]: https://github.com/AntumDeluge/mtmod-castle_storage/tree/b80b72f
[patch.castle_tapestries]: https://github.com/AntumDeluge/mtmod-castle_tapestries/tree/4e70f1b
[patch.castle_weapons]: https://github.com/AntumDeluge/mtmod-castle_weapons/tree/577464d
[patch.chatlog]: https://github.com/AntumDeluge/mtmod-chatlog/tree/074c8ee
[patch.christmas]: https://github.com/AntumDeluge/mtmod-christmas/tree/f6c8dc2
[patch.clean]: https://github.com/AntumDeluge/mtmod-clean/tree/ec7cfff
[patch.cme]: https://github.com/AntumDeluge/mtmp-cme/tree/7a6e106

View File

@ -1,2 +0,0 @@
Chatlog by JBR
License: CC0

View File

@ -0,0 +1 @@
Creates a *chatlog.txt* file in the world directory.

View File

@ -1,9 +1,11 @@
-- License: CC0
local chatlog = minetest.get_worldpath().."/chatlog.txt"
monthfirst = true -- Wheter the 1st of Feb should be 1/2/13(monthfirst = false) or 2/1/13(monthfirst = true)
monthfirst = minetest.setting_getbool('chatlog.monthfirst') or true -- Whether month is displayed before day in timestamp
function playerspeak(name,msg)
f = io.open(chatlog, "a")
local f = io.open(chatlog, "a")
if monthfirst then
f:write(os.date("(%m/%d/%y %X) ["..name.."]: "..msg.."\n"))
else

View File

@ -0,0 +1,3 @@
name = chatlog
author = JBR
license = CC0

View File

@ -0,0 +1,2 @@
# Whether month is displayed before day in timestamp (E.g. 'dy/mo/yr' vs. 'mo/dy/yr').
chatlog.monthfirst (Timestamp shows month before day) bool true

View File

@ -85,6 +85,16 @@ remove_far_mobs (Remove far mobs) bool false
[Mods]
[*Chat]
[**chatlog]
# Whether month is displayed before day in timestamp (E.g. 'dd/mm/yyyy' vs. 'mm/dd/yy').
chatlog.monthfirst (Timestamp shows month before day) bool true
[*Equipment]