Help with commands event in GUI

3 posts / 0 new
Last post
Offline
Last seen: 1 year 5 months ago
Joined: 03/18/2015 - 20:22
Gems: 0
Help with commands event in GUI

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 !



Offline
Last seen: 22 hours 19 min ago
Joined: 08/27/2013 - 18:03
Gems: 312
What do you mean? You want

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

Offline
Last seen: 1 year 5 months ago
Joined: 03/18/2015 - 20:22
Gems: 0
I want make, when a button in

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