Update API.java

Don't send messages when you're making an API. Beats the whole point of an API.