Changing a Plugin's Command

Discussion in 'Bukkit Help' started by dlndcrdso, Oct 18, 2018.

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

    dlndcrdso

    Hey,
    I've tried to change killStats's command from /ks to /stats and /ksa to /statsadmin but this hasn't worked, if anyone could do it for me that would be great!
    Here is the plugin thread: https://dev.bukkit.org/projects/killstats-v1-0/files
    If you do do this for me, please change:
    - /ks (/killstats) to /stats
    - /ksa (/killstatsadmin) to /statsadmin

    I've tried before and couldn't do it, no errors in console just that the new command doesn't work, if anyone could do these simple changes for me I'd be very grateful!
    Thanks in advance!
    (Wasn't sure where to post this)
     
  2. Offline

    timtower Administrator Administrator Moderator

    @dlndcrdso Yeah, those changes aren't as easy as you might think.
    Best that you can do is to extract the plugin.yml, add aliases to the commands and then add the plugin.yml again.
     
  3. Offline

    dlndcrdso

    Ok, I'll add aliases as you said but if anyone reads this and can change the commands please do :/
    Thanks
     
  4. Offline

    timtower Administrator Administrator Moderator

    Why change the commands when you can add aliases? Changing the command will require us to change the code, that can be a very nasty thing to do.
     
  5. Offline

    dlndcrdso

    Ok thanks anyway, I added aliases sorry to drag this on
     
Thread Status:
Not open for further replies.

Share This Page