Hi can anyone tell me what I need to do to run commands from my code in Minecraft 1.16.5? For example in the PlayerLoginEvent I want to run the command: "/locate village", so that when the player logs in, and the chat shows the closest location for a village.
Hi, I want to run command from my java code and I need to use MinecraftServer.getMinecraftServer() from Minecraft forge 1.16.5. The problem is I don't know what kind of arguments this new method takes. Can someone help me?