[Mod] Chatcommand stopwatch [chatcommand_delays]

Post Reply
User avatar
Hybrid Dog
Member
Posts: 2771
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

[Mod] Chatcommand stopwatch [chatcommand_delays]

by Hybrid Dog » Post

This mod tells the time a chatcommand took to get executed.
So for example if you want to know how long it takes to set 100x100x100 nodes using worldedit,
you only need to have this mod, it automatically adds the delay to the message sent to the player (if no message is returned, the delay gets sent in an own line).
Currently the time is added in brackets at the end of the message.
If the delay is very short, e.g. when you just teleport somewhere, the time isn't added to not cause spamming.

License: WTFPL
Download: zip, tar.gz
github: chatcommand_delays

Obviously Worldedit doesn't use minetest.register_chatcommand correctly
setting about 2.5 mio nodes may take longer for you, I use my own worldedit modifications
Image

It works with every chatcommand, e.g. the one of cave_lighting:
Image

If you got ideas or found bugs, please tell them to me.

How to install a mod?

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Chatcommand stopwatch [chatcommand_delays]

by azekill_DIABLO » Post

hello there! any one in here? :D
looks like a great debug feature!

Post Reply

Who is online

Users browsing this forum: Cartmic and 4 guests