Add event for commands and make __on_player_message not trigger for them (#1525)

* Restoring old behaviour of __on_player_message

Fixes #1511

* Changed to PLAYER_COMMAND

* Updated docs

* Updated event_test.sc

* Updated editor keywords

* Fixed issue
This commit is contained in:
Ghoulboy authored and GitHub committed 2022-12-26 15:30:50 +01:00
1 parent b63dfa1b0a
commit 43bb84437f
6 files changed
+32 -2

No files matched your search

@@ -272,6 +272,13 @@ __on_player_message(player, message) ->
print('Player '+player+' sent message: '+message)
);
__on_player_command(player, command) ->
(
print('');
print('__on_player_command(player, command)');
print('Player '+player+' sent command: '+command)
);
__on_player_chooses_recipe(player, recipe, full_stack) ->
(
print('');