command alias

Jun 26, 2017
command alias
  • I will teach you to add a command alias to your command.
    All you will need is the plugin.yml No Java needed.
    I am going to be using a example plugin.yml
    Code (Text):

    name: ExamplePlugin
    main: me.KingLinux01.ExamplePlugin
    version: 1.0
    author: KingLinux01
    commands:
      example:
      description: Example
      usage: /<command>
     
    That was a plugin.yml with no command alias
    Now for one with command alias
    All you will need to add is aliases: [alies1, Alies2] after the command.
    Separate each one with a comma. example.
    Code (Text):

    name: ExamplePlugin
    main: me.KingLinux01.ExamplePlugin
    version: 1.0
    author: KingLinux01
    commands:
      example:
      description: Example
      usage: /<command>
      aliases: [alies1, Alies2]
     
    That is all that needs to be added.
  • Loading...
  • Loading...