package net.earthcomputer.easyeditors.gui.command.syntax;

import net.earthcomputer.easyeditors.gui.command.slot.CommandSlotFormattedTextField;
import net.earthcomputer.easyeditors.gui.command.slot.CommandSlotLabel;
import net.earthcomputer.easyeditors.gui.command.slot.CommandSlotTextField;
import net.earthcomputer.easyeditors.gui.command.slot.IGuiCommandSlot;
import net.earthcomputer.easyeditors.util.Translate;

public class SyntaxEmote extends CommandSyntax {

	@Override
	public IGuiCommandSlot[] setupCommand() {
		return new IGuiCommandSlot[] {
				CommandSlotLabel.createLabel(Translate.GUI_COMMANDEDITOR_ME_MESSAGE, getContext().canHoldFormatting()
						? new CommandSlotFormattedTextField(500) : new CommandSlotTextField(500, 500)) };
	}

}

@@ -356,16 +356,82 @@
 ndSlot;%0A
+import net.earthcomputer.easyeditors.gui.command.slot.ITextField;%0A
 import n
@@ -586,228 +586,378 @@
 %7B%0A%09%09
-return new IGuiCommandSlot%5B%5D %7B%0A%09%09%09%09CommandSlotLabel.createLabel(Translate.GUI_COMMANDEDITOR_ME_MESSAGE, getContext().canHoldFormatting()%0A%09%09%09%09%09%09? new CommandSlotFormattedTextField(500) : new CommandSlotTextField(500, 500)
+ITextField%3C?%3E textField;%0A%09%09if (getContext().canHoldFormatting()) %7B%0A%09%09%09textField = new CommandSlotFormattedTextField(500);%0A%09%09%7D else %7B%0A%09%09%09textField = new CommandSlotTextField(500, 500);%0A%09%09%7D%0A%09%09textField.setMaxStringLength(Short.MAX_VALUE);%0A%09%09return new IGuiCommandSlot%5B%5D %7B%0A%09%09%09%09CommandSlotLabel.createLabel(Translate.GUI_COMMANDEDITOR_ME_MESSAGE, (IGuiCommandSlot) textField
 ) %7D;

Fix max string length in me syntax