#Is it possible to create a menu that remembers the player's choice?

1 messages · Page 1 of 1 (latest)

magic drum
#

I have a dueling plugin called TitansBattle
And I do not like his design, I would like to select the arena and player for pvp to do with it

I have a command, /tb challenge arena player

I need the first time you open the menu, the player chooses the arena, conventionally he chooses from three arenas

  • DarkSide Arena
  • Zona51
  • SkodaPark Arena

After opening the second menu, where the player is invited to click on the button in the center of the menu and then type the nickname of the player he wants to challenge to a duel in the chat
For example

  • HyperBob
  • Alex
  • Steve

After this, DeluxeMenu fills in the command and it looks like this
/tb challenge Zona51 HyperBob
And executes it from the player

Is this possible in implementation?

tepid trail
# magic drum I have a dueling plugin called TitansBattle And I do not like his design, I woul...

Yes it is 100% possible You will need:

  • DeluxeMenus 1.13.7 or higher
  • CommandPrompter 2.0.4 or higher
  • Server Version 1.14.0 or higher

You will alos need to configure CommandPrompter (they have decent documentation: https://github.com/CyR1en/CommandPrompter/wiki/Getting-Started)

Here's a quick example on the DeluxeMenus side:

arena-choosing-menu:


items:
  zona51:
    display_name: '&eZona51'
    click_commands:
    - '[meta] set arena-selection STRING zona51'
    - '[openguimenu] player-choosing-menu <delay=1>'

player-choosing-menu:


items:
  choose-player:
    display_name: '&7Click to chose player!'
    click_commands:
    - '[player] tb challange %deluxemenus_meta_arena-selection_STRING_ERROR% <-p &6Select player to fight>'
    - '[close]'