Plugin that can change command from other plugins

Discussion in 'Archived: Plugin Requests' started by Evandro, May 14, 2014.

  1. Offline

    Evandro

    Hello peoples!

    Apparently we can't create aliases from plugins in the commands.yml file, so I want to know if someone know a good plugin that can do it.

    For example, i have mcMMO and the command to check my skills is actually /mcstats, I want to change it to /skills without needing to edit all the .class files, expecially because it will take months to change all the commands for all plugins that I want.

    Someone told me about CommandHelper, but it have 10MB, i don't need a complex and weighted plugin like that, i just need one that can modify or create a second alias for the original command (i prefer one that can change, but if there is one that can only create a new alias there is no problem, because i can block players from using the original command).
     
  2. Offline

    Onlineids

    Command helper is 1.3MB.... A 10MB plugin is absolutely huge for comparison thats around 5 MCMMO's and 10 factions combined.
     
  3. Offline

    Evandro

    The version you saw did not work for 1.7.9, the lastest Dev that works is 10.887 kb (basically 11mb), it also costs like 3-4 seconds more to load the server, it will use too much resources, while another good plugin can do that with like 100kb only, that is why i don't want to use it.

    You can check the last version here: http://builds.enginehub.org/job/commandhelper/last-successful/?branch=master
     
  4. Offline

    Onlineids

    touche xD
     
  5. Offline

    timtower Administrator Administrator Moderator

  6. Offline

    Evandro

    Thanks for the info, timtower! I will check this plugin.

    Sorry for asking about another plugin here, but did any of you know a good plugin that can check the ram/processor usage of plugins? So i can check CommandHelper and this one to compare the resource usage.

    Thanks for the attention, guys.
     
  7. Offline

    timtower Administrator Administrator Moderator

    Can only check it for the server in general, not for some plugins
     
  8. Offline

    myrrdin777

    Mycommands.
     
  9. Offline

    Me4502

    You don't need a plugin to do this, commands.yml can do it.
     
  10. Offline

    Evandro

    Commands.yml can't change or create aliases from other plugins, only for craftbukkit/server.

    This plugin is very outdated, sorry :/
     
  11. Offline

    KeeperofMee

    Go into your plugins folder.
    Right click the plugin you want to change commands for.
    Open with Winrar/7zip w/e.
    Open the plugin.yml.
    It should look something like this:
    Code:
    author: KeeperofMee
    database: false
    description: A simple plugin for hiding yourself from other players.
    generator: http://dinnerbone.com/minecraft/tools/pluginator/
    main: com.keeperofmee.hideme.HideMe
    name: HideMe
    startup: postworld
    url: http://keeperofmee.weebly.com/
    version: '1.0'
    commands:
        HideMe:
            description: Hide yourself from another player.
            aliases: [hm, hide, hideme]
            usage: Error! Simply type /hideme <player> to hide yourself from another player.
            permission: hideme.hide
            permission-message: You don't have permission to hide yourself from other players.
        ShowMe:
            description: Show yourself to another player.
            aliases: [sm, show, showme]
            usage: Error! Simply type /showme <player> to show yourself to another player.
            permission: hideme.show
            permission-message: You don't have permission to show yourself from other players.
    permissions:
        hideme.*:
            description: Gives access to all HideMe commands
            children:
                hideme.hide: true
                hideme.show: true
        hideme.hide:
            description: Allows you to hide yourself from another player.
            default: true
        hideme.show:
            description: Allows you to show yourself to another player.
            default: true
    Find the command you want to change:
    Code:
        HideMe:
            description: Hide yourself from another player.
            aliases: [hm, hide, hideme]
            usage: Error! Simply type /hideme <player> to hide yourself from another player.
            permission: hideme.hide
            permission-message: You don't have permission to hide yourself from other players.
    Add/Change:
    Code:
            aliases: [hm, hide, hideme]
    Change:
    Code:
    hm, hide, hideme to WhateverYouWantTheAliasToBe
    or add
    Code:
    , WhateverYouWantTheAliasToBe
     
    Evandro likes this.
  12. Offline

    Me4502

    I've done it in the commands.yml, and recommended it to many others.
     
  13. Offline

    Evandro

    Can you send me an example of your edited commands.yml? I have tried like 10 different ways and unfortunately nothing works for me.

    Thanks for the information KeeperofMee, it worked very well.
    I have one doubt, do this works with every plugin even if the plugin developer does not put the "aliases: [commandhere]" in the plugin,yml? I mean, can I create my own aliases for every plugin?

    This is not what I was planning to do because everytime when I update the plugin I will need to change manually again, but it still better than using another plugin, thinking about the server side. Really thanks :)
     
  14. Offline

    KeeperofMee

    Yes, you just have to add it, just make sure you're using spaces and not tabs ;)
     
  15. Offline

    magicman40

Share This Page