Relic Castle

So, I have been working on my Pokemon FanGame, Pokemon Light and for some reason, whenever I recieve a Pokemon, It gives me an error saying its id is equal to 651, it does this with every pokemon, I dont even have a Pokemon #651. Like seriously.

Here is the full error:

Note I am using Pokemon Essentials v17.2
https://hasteb.in/onoyedew.coffeescript -- Full Error.

#FangameHelp

Thanks for any help! :D
Top