Disable commands from a certain plugin

Discussion in 'Archived: Plugin Requests' started by pilot3101, Apr 7, 2014.

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

    pilot3101

    Hey!

    I was wondering if someone can make me a simple plugin that disables commands from a certain plugin on the server! Only ops can use this command! The command will be /discmd (command without / and user _ for more than one argument) (plugin.jar name)! This will disable a command from that plugin. Example, /discmd helpme essentials.jar Something like that. That is a example on how to use this. Can anyone make this please!
     
  2. Offline

    Shadowwolf97

  3. Offline

    pilot3101

    That's not quite what I need. I need it where you can disable a command from a certain plugin. I need this because there are two plugins tht use the same command. If I were to block that command it would block it from both plugins.

    Shadowwolf97

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
  4. Offline

    timtower Administrator Administrator Moderator

    pilot3101 You can disable commands in Essentials
     
  5. Offline

    Adriani6

    Use negative nodes ?
    example:
    - -essentials.help
     
  6. Offline

    timtower Administrator Administrator Moderator

    Won't work if 2 plugins try to register the same command.
     
    Adriani6 likes this.
  7. Offline

    pilot3101

    timtower The guy that was trying to help me already said that. And if I disable this command in essentials, it will block the command that I need in essetials and in mcmmo. That is ehy I need to block it from a certain plugin.
     
  8. Offline

    timtower Administrator Administrator Moderator

    Yes I did read the whole thread, and I said why it wouldn't work in this case.
    And did you test that? As far as I know: if you disable a command in essentials then other plugins wil be able to use them.
     
  9. Offline

    pilot3101

    timtower I want the essentials command that is the same command to work. I want te other plugin command that is the same i not work. How do I do this?
     
  10. Offline

    timtower Administrator Administrator Moderator

    pilot3101 So you want to disable the command from mcmmo? I know 1 way of doing so:
    Open the jar, open the plugin.yml, remove the command that you want gone.
     
  11. Offline

    pilot3101

    Where is the command? At the top or near the bottom? timtower
     
  12. Offline

    timtower Administrator Administrator Moderator

    pilot3101 Somewhere in the commands section
     
  13. Offline

    pilot3101

    timtower Can you show me where it is in the mcmmo plugin.yml. Post a pic please?
     
  14. Offline

    timtower Administrator Administrator Moderator

    Don't have that plugin, don't have access to my laptop either, try ctrl-f
     
  15. Offline

    pilot3101

    timtower When I tried that, and removed it, and restarted, mcMMO shows up broken in /pl.
     
  16. Offline

    BetrayedQU

    pilot3101 Open Jar > Open plugin.yml > Remove command you don't want /permission > Select everything in folder > Compress to zip > rename extension (.zip) to .jar > put in plugins folder
     
  17. Offline

    pilot3101

    BetrayedQU Removing things from the plugin.yml doesn't work. It shows up broken in /pl
     
  18. Offline

    BetrayedQU

    pilot3101 Did you remember to save it? And also paste the plugin.yml here, you have to remove it so the formatting is still the same.
     
  19. Offline

    pilot3101

  20. Offline

    timtower Administrator Administrator Moderator

  21. Offline

    pilot3101

  22. Offline

    timtower Administrator Administrator Moderator

    Love it how you removed your spigot log.
    And this is not possible anyways. Even tried some stuff that goes beyond the api, still didn't work
     
    pilot3101 and BetrayedQU like this.
  23. Offline

    Jade

Thread Status:
Not open for further replies.

Share This Page