If this is any help to you, my source has a command to add notes. Not sure if it works or not, but I hope it can help you somehow.
In the command:
Code:
player.getNotes().add(new Note(cmd[1], 1));
player.getNotes().refresh();
This is the add method:
Code:
public boolean add(Note note) {
if (notes.size() >= 30) {
player.getPackets().sendGameMessage("You may only have 30 notes!",
true);
return false;
}
if (note.text.length() > 50) {
player.getPackets().sendGameMessage(
"You can only enter notes up to 50 characters!", true);
return false;
}
int id = notes.size();
player.getPackets().sendConfig(1439, id);
player.getPackets().sendGlobalString(149 + id, note.text);
player.getTemporaryAttributtes().put("curNote", note);
return notes.add(note);
}