Solved Change plugin command

Discussion in 'Plugin Help/Development/Requests' started by REW01WER, Aug 31, 2018.

Thread Status:
Not open for further replies.
  1. Offline

    REW01WER

    Could someone change this plugin command to "/report"
    https://www.spigotmc.org/resources/bugreports-a-simple-but-uniqie-bug-report-plugin-1-12-x.46138/
    Also check if its fully compatible for 1.13.1 bukkit
    It is pretty simple plugin i like it, but i want to use it for other purposes also :)


    Edit:
    Maybe you can make your own plugin which would also have option to have customizable cooldown to avoid spam.

    Also if you are willing to suggest me other plugin I want it to be lightweight.
     
    Last edited: Aug 31, 2018
  2. Offline

    timtower Ninja on the waves Moderator

    @REW01WER You can use the aliases.yml for that.
     
  3. Offline

    REW01WER

    @timtower
    What do you mean? Do i have to make aliases.yml file in this plugin folder?
     
  4. Offline

    timtower Ninja on the waves Moderator

    @REW01WER No, Bukkit has default aliases, might be commands.yml, not 100% sure which one.
    Or an alias plugin
     
  5. Offline

    REW01WER

    @timtower
    I'm not familiar with build aliases system, folder is called commands.yml btw.

    Contents:
    command-block-overrides: []
    ignore-vanilla-permissions: true
    aliases:
    icanhasbukkit:
    - version $1-

    I tried adding command and alias, but it gives me unknown command error :(
     
    Last edited: Aug 31, 2018
  6. Offline

    timtower Ninja on the waves Moderator

    @REW01WER Check the wiki for help with the file.
     
  7. Offline

    REW01WER

    @timtower
    No it is not working, looks like it is not meant for plugin commands.

    @timtower
    Can i use ecplipse to edit plugins?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
  8. Offline

    timtower Ninja on the waves Moderator

    @REW01WER Don't edit if you can't code.
    And try DynamicAliases
     
  9. Offline

    REW01WER

    @timtower
    Meh, I don't think it would be that hard to replace one command in simple 3.7kb plugin :D
    Tried it, i got an error. it works only for specified commands. /bug <i cant specify every report> :D
     
  10. Offline

    timtower Ninja on the waves Moderator

    @REW01WER It can be difficult, you don't know how many checks there are, how many libraries are used.
    And read the page, you have {args} as variable.

    Thing that you might be able to do is opening the jar, getting the plugin.yml and adding an alias to the command there.
    Then you put the file back in the jar.
     
  11. Offline

    REW01WER

    @timtower
    Code:
    #BugReports v1.3.1 - Written by AnviLLLL
    name: BugReports
    main: me.anvillll.BugReports
    version: 1.3.1
    commands:
       bug:
          description: Submit a bug report
          usage: /<command>
       viewbugs:
          description: View all the bug reports
          usage: /<command>
       delbug:
          description: Delete a bug report from the list
          usage: /<command>
       bugreports:
          description: Displays info about the version of BugReports you are running
          usage: /<command>
    do you think i can add alias here? Btw replacing default ones and "<command>" wont do anything
     
    Last edited: Aug 31, 2018
  12. Offline

    timtower Ninja on the waves Moderator

  13. Offline

    REW01WER

    @timtower
    Wow, i just learned something new :D Thanks

    Does this means every plugin can be edited like this?
    Also the permissions are always listed there? if there is any
     
    Last edited: Aug 31, 2018
  14. Offline

    timtower Ninja on the waves Moderator

    It does not.
    Not always the case.
     
Thread Status:
Not open for further replies.

Share This Page