Split Commands by @x

This commit is contained in:
Kam committed 2024-03-13 19:32:22 -04:00
1 parent 95e9d4b9c1
commit 25443f1641
4 files changed
+17 -15

No files matched your search

@@ -6,7 +6,7 @@ import noppes.npcs.client.gui.util.*;
public class SubGuiNpcCommand extends SubGuiInterface implements ITextfieldListener
{
public String command;
public SubGuiNpcCommand(String command)
{
this.command = command;
@@ -19,17 +19,18 @@ public class SubGuiNpcCommand extends SubGuiInterface implements ITextfieldListe
public void initGui()
{
super.initGui();
this.addTextField(new GuiNpcTextField(4, this, this.fontRendererObj, guiLeft + 4, guiTop + 84, 248, 20, command));
this.addLabel(new GuiNpcLabel(4, "advMode.command", guiLeft + 4, guiTop + 74));
this.addTextField(new GuiNpcTextField(4, this, this.fontRendererObj, guiLeft + 4, guiTop + 84, 248, 20, command));
this.getTextField(4).setMaxStringLength(32767);
this.addLabel(new GuiNpcLabel(4, "advMode.command", guiLeft + 4, guiTop + 110));
this.addLabel(new GuiNpcLabel(5, "advMode.nearestPlayer", guiLeft + 4, guiTop + 125));
this.addLabel(new GuiNpcLabel(6, "advMode.randomPlayer", guiLeft + 4, guiTop + 140));
this.addLabel(new GuiNpcLabel(7, "advMode.allPlayers", guiLeft + 4, guiTop + 155));
this.addLabel(new GuiNpcLabel(8, "dialog.commandoptionplayer", guiLeft + 4, guiTop + 170));
this.addLabel(new GuiNpcLabel(5, "advMode.nearestPlayer", guiLeft + 4, guiTop + 110));
this.addLabel(new GuiNpcLabel(6, "advMode.randomPlayer", guiLeft + 4, guiTop + 125));
this.addLabel(new GuiNpcLabel(7, "advMode.allPlayers", guiLeft + 4, guiTop + 140));
this.addLabel(new GuiNpcLabel(8, "dialog.commandoptionplayer", guiLeft + 4, guiTop + 155));
this.addLabel(new GuiNpcLabel(9, "dialog.commandmultiple", guiLeft + 4, guiTop + 170));
this.addButton(new GuiNpcButton(66, guiLeft + 82, guiTop + 190,98, 20, "gui.done"));
}
protected void actionPerformed(GuiButton guibutton)