{
if (onScriptDialog != null)
{
Packet packet = e.getPacket();
ScriptDialogPacket dialog = (ScriptDialogPacket)packet;
List<String> buttons = new ArrayList<String>();
for (ScriptDialogPacket.ButtonsBlock button : dialog.Buttons)
{
buttons.add(Utils.bytesWithTrailingNullByteToString(button.ButtonLabel));