Thank you! It worked! Sorry for being really amateurish because I now see how obvious that is. I spent around 3 hours trying to look at different solutions for this and looking at different classes, but I never considered actually looking at the CommandKill class. Sorry for wasting your time.
Hello, I am very new to programming in Forge!
For my first true mod, I need to know how a command (specifically /kill) can be executed as if the player has done it, but it needs to actually be executed from the code itself. Also, I need this for my 1.12.2 mod. Thank you!