#Input

1 messages · Page 1 of 1 (latest)

unreal glade
#

How can i take input from players?
- '[console] variable set %player_name% pickaxe_name <&fWrite the name you want for your pickaxe!>' I tried this, it's not working

dense coveBOT
#

v2.8.2 by CyR1en
Great Plugin Companion for DeluxeMenus, ChestCommand, or Any Menu Plugins

Downloads:

25,248

Rating:

4.6★

Reviews:

48

unreal glade
# dense cove

@rotund oak I downloaded commandprompter and tried, still doesn't work

#
open_command:
- pickaxename
- pn
size: 45
items:
  'space-1':
    material: BLACK_STAINED_GLASS_PANE
    priority: 1000
    display_name: '&f'
    slots:
    - 0-44
    
  'name':
    material: NAME_TAG
    priority: 10
    slot: 21
    display_name: '&d&lPICKAXE RENAME'
    lore:
    - '&fClick here to set a new pickaxe name!'
    click_commands:
      - '[close]'
      - '[console] variable set %player_name% pickaxe_name <&fWrite the name you want for your pickaxe!>'
  'update':
    material: DIAMOND_PICKAXE
    priority: 10
    slot: 23
    display_name: '&c&lCONFIRM RENAME'
    lore:
    - '&fClick here to confirm pickaxe rename!'
    click_commands:
      - '[close]'
      - '[console] edp updatepickaxe %player%'```
#

I tried with 'player' command. It works, but doesn't register color

rotund oak
#

what do you mean by "player command" ?

unreal glade
#

[player]

rotund oak
#

so it works or it doesn't work?

unreal glade
#

how do i enable color codes on command prompter

rotund oak
#

what's your DeluxeMenus version?

unreal glade
#

1.14.0

rotund oak
#

thonking that shouldn't be an issue

#

I guess you could try to use § instead of &

unreal glade
#

hmm

#

how would players know to use that 😅

rotund oak
#

oh you mean in the input?

#

like writing colors ?

unreal glade
#

yes

rotund oak
#

ah

#

what's the result exactly? is it the text without the color codes, or the text including the color codes, just no color?

unreal glade
#

so, when i input, it shows in green. But when i update pickaxe, it shows in aqua

#

and I'm trying color code yellow and green

rotund oak
#

wat

unreal glade
#

it works when i do it through command. But through menu, it doesn't work

rotund oak
#

can you send screenshots?

unreal glade
#

the second one is done through command

rotund oak
#

seems like CommandPrompter removes all colors from the input

unreal glade
#

oh

rotund oak
#

and there doesn't seem to be a config option to disable that

unreal glade
#

well, Ig I have to make new variables 😭

rotund oak
#

you could try to open a github issue to ask for a config option to disable that

#

but I don't think there's any other solutions rn

unreal glade
#

ok thank you so much for all the help 😄

tranquil oasis
#

You can disable input sanitation for a prompt using the -ds prompt argument.

Example:

nick <-a Player> <-a -ds Enter nickname>

The example above would only remove the input sanitation for the second prompt, not the first prompt.