That’s not actually securing it, that’s just avoiding the core issue
. Once a player “dumps” your file(s) and sees the changed event names, they can easily cheat again.
If you are a user who wants to use this, I still highly suggest you fix the events exploits! See How hackers can exploit your servers and what to do about it