@M0Rtsss And what event are we talking about? That method only applies for a couple events, it isn't global.
The method that you are trying to build with is not the same as the server is running. Otherwise you would have had that method.