Hi, i have question, For example the damager has been tampered with with the entity Then the damager logs out of the game well then later if the entity dies, he will get the damager's name and the server will error "getName() on null" how to fix it?
I advise you to learn the basics of object oriented php. You just need to declare the variable as null, but what would you like to use that for? PHP: $damager = null;
I want the last damager to be null in 10 seconds, because if it is not converted to null the damager will continue to be the last damager to the entity continuously. btw thank you!