Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to add command after the tpaccept being accepted? #8825

Open
bobhenl opened this issue Jun 9, 2024 · 1 comment
Open

Is it possible to add command after the tpaccept being accepted? #8825

bobhenl opened this issue Jun 9, 2024 · 1 comment
Labels
question Further information is requested

Comments

@bobhenl
Copy link

bobhenl commented Jun 9, 2024

Hi, is it possible to add some commands to other commands / actions, like accepting tpaccept?

In EventCommands is only playerTeleport, but this includes all teleportation types, and in the locale_EN I don't see any option to add another command. It's probably not possible, just asking to be sure

@bobhenl bobhenl added the question Further information is requested label Jun 9, 2024
@bobhenl
Copy link
Author

bobhenl commented Jun 10, 2024

I guess I can solve it by defining own tpa & tpahere in customalias and executing two commands with asPlayer cmi tpa, or is there better solution?

EDIT:
Tried this:

  tpa:
    Cmds:
    - asConsole! cmi actionbarmsg [playerName] -s:7 &cIf you won't attack anyone within
      15s you are protected & can tp away.
    - asPlayer! cmi tpa $1-
    AddTabs: true
    CustomTabs:
    - '[playername]'

with & without AddTabs but it broken tab completion, it's not suggesting player names... even when I have:

  /tpa:
    Enabled: true
    Tab: false

I wanted to notify players that they have invulnerability enabled for 15s (btw there probably isn't a placeholder for it yet), but not really sure if there's an efficient way of doing it that will let me tab complete their names.

Not sure if the last issue isn't bug, that tab completion of names isn't working when setting tab: false for aliases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant