Shopkeepers

Shopkeepers

2M Downloads

Alias commands

ReshiStar opened this issue ยท 4 comments

commented

im having issues creating aliases for the shopkeeper.remote command, how do i set it up to allow the shop names?
what im trying to do is create an alias called Blacksmith, for the shopkeeper.remote, but it wont accept it at all.

commented

What do you mean by 'alias'? Are you editing the Shopkeepers plugin directly to add this command alias, or is this 'alias' part of a seprate plugin? I am not fully sure what you are trying to do.

Is the alias 'Blacksmith' referencing a specific shopkeeper instance, or a certain shopkeeper type, or simply an alias for the command '/shopkeeper remote' (so for instance the player uses it like this: '/blacksmith 4' to open the shopkeeper with id 4)?

Maybe you can make an example of what command you want to enter, and what behavior you expect.

commented

Im editing my server's commands.yml to Alias shopkeeper.remote into a command for my users, and im trying to find out a way to set them to open specific admin shops, so rather than /shopkeeper remote blacksmith, i wanna alias it into /blacksmith.

I wanna be able to create aliases for the shops so users can access them with shortened commands.

commented

According to the wiki (https://bukkit.gamepedia.com/Commands.yml) and my testing, this seems to work:
Inside the commands.yml:

aliases:
  blacksmith:
  - "shopkeeper remote blacksmith"

This assumes that there is an shopkeeper named 'blacksmith'.

commented

Oh wow it works!
My problem was i was doing

aliases:
blacksmith:

  • "shopkeeper.remote.blacksmith"

with the dots. Thank you!