How can I replace a class function without making changes to the file? Yes, I can make a fork but this is not a good idea. For example, I need to change something in the player class. What are the ways to do this?
Create a custom class extending Player, and then use PlayerCreationEvent to change the class used to your class.