Closed HybridDog closed 6 months ago
Not sure if this is worth doing actually, what advantage is there?
Coloring the messages is a good idea however (though I think just the prefix should be colorful).
Not sure if this is worth doing actually, what advantage is there?
The first commit changes how the GUI invokes chatcommands. Before this PR, the code directly uses minetest.chatcommands
at many places. minetest.chatcommands
is not officially documented, so the commit makes the code more robust.
The second commit changes code so that chatcommand return values are used. The advantage is that the function now returns a success boolean, so it could be, for example, easier to handle errors in the WorldEdit GUI or brush code.
rebased
This fixes #60; please test.