ScriptingChat and logging¶
chat.print('§7local, with the [bitchos] prefix');
chat.raw('§7local, no prefix');
chat.send('/p invite someone'); // to the SERVER, as if you typed it
chat.debug('only when Scripts → Debug is on');
log.info('to latest.log');
log.warn('…');
log.error('…'); // to stderr
notify('Title', 'message', 3); // prints to chat — see below
print('shorthand for chat.print');
chat.send leaves your client
It is the only call here that does. Hypixel rate-limits chat and mutes accounts that flood it, so calling it from a tick handler will get you muted rather than noticed.
notify prints to chat. There is no toast surface in bitchos and this does not pretend otherwise; the seconds argument is accepted and ignored so a script written today keeps working if one ever appears. If you want something on screen, register a HUD element and you get the user's own placement and fade for free.
Colour codes use §. util.colour('&a') converts & codes if you prefer to write those.