[Mod] Chatcommand stopwatch [chatcommand_delays]

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

[Mod] Chatcommand stopwatch [chatcommand_delays]

by Hybrid Dog » Thu May 12, 2016 17:28

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: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [Mod] Chatcommand stopwatch [chatcommand_delays]

by azekill_DIABLO » Sun Jul 17, 2016 10:28

hello there! any one in here? :D
looks like a great debug feature!
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 11 guests

cron