Greetings.
Is it possible to fix warnings about hook usage conflict? At 1 side coding (mean only in 1 plugin), with saving fuctionality of both.
Example:
2 plugins use OnPlayerChat
2 Plugins using same hook
Discussion in 'Rust Development' started by 4seti, Apr 6, 2015.
-
Wulf Community Admin
Generally they aren't actually conflicts, just warnings about possible conflicts. The only time it'd really be a conflict is if you are both trying to modify what the hook returns, which in the case of OnPlayerChat it would be the chat output to each client.
What are you hooking into OnPlayerChat for? Are you listening for a command? -
I do understand what this is just a warning, and have no errors or smth, but still.
I understand what this can be fixed editing both plugins to see each other, but 1 side dev? is it possible? -
Wulf Community Admin
-
-
you could use: onruncommand and detect when chat.say is used
instead of onplayerchat -
Wulf Community Admin
-
As the result of topic as i understood this:
There is no way at the moment to avoid conflicts of using some of the hooks in diff plugins.