Update API.java

Fixed the method debugConsole, it was doing the same as the debugBroadcast.