Help with commands event in GUI

Started by Landum on Tue, 11/24/2015 - 11:30
Last seen on 19:44, 4. Dec 2015
Joined Mar 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Help with commands event in GUI
Tue, 11/24/2015 - 11:30

Hello everyone, i need help about something, i would like create something like this:

Open GUI, click on a button, and have the possibility to complete a line of text like this:

*Button execute the command : /realname (playername)*
But, for this command, we need to add a player name, so how make this possible with a GUI button ?

Thanks for Help !

Last seen on 01:08, 17. Aug 2018
Joined Aug 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
What do you mean? You want
Tue, 11/24/2015 - 19:03

What do you mean? You want make command that changes players name?

Last seen on 19:44, 4. Dec 2015
Joined Mar 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I want make, when a button in
Tue, 11/24/2015 - 21:24

I want make, when a button in a GUI is clicked, a secondary dialog box appear to type something for complete a command, like this :

*GUI opened, click in a button*  *execute a command (like /realname (text) ) and open a area where we can write anything* 

So, at the end, i just click on a button, a popup appears with a text area, i type something like 'Landum' and the command who is executed is something like /realname Landum