So block monsters you basicly block the spawn entity packet, which is 10014.
(Ofcourse you have to check if it's a player or not by checking its UID and mesh/model)
To block it, you basicly go to handler -> HandleServer and you block the 10014 packet. But i believe that the proxy already has an /alone command to block those.
(Ofcourse you have to check if it's a player or not by checking its UID and mesh/model)
To block it, you basicly go to handler -> HandleServer and you block the 10014 packet. But i believe that the proxy already has an /alone command to block those.