Disable /kill command

Discussion in 'Archived: Plugin Requests' started by Sol, Feb 21, 2011.

  1. Offline

    Sol

    Even with Permissions installed, users can still perform the /kill command which is annoying.

    Any chance someone could make a plugin that disables this command via Permissions?

    ~Sol
     
  2. Offline

    RecoJohnson

    Why is it annoying? What is the issue with it?
     
  3. Offline

    matejdro

    I think you can disable that command by cancelling onPlayerCommand, but I'm not 100% sure..
     
  4. Offline

    Sol

    It's annoying because I have a test/exam on entry to the server. If players fail miserably they will end up trapped in a room with no escape. If they can issue the /kill command then it defeats the purpose of the exam.

    @matejdro
    I'm not sure what you mean, as I do not program in java or have any understanding of the Bukkit API... but I assume you are talking about a Bukkit API hook/call or something.

    ~Sol
     
  5. Offline

    Plague

    You can, the only commands that cannot be disabled this way are /version and /plugins, which I reported as a bug anyway.
     
  6. Offline

    Sol

    OK well, it's good to know that it's possible at least...

    ~Sol
    --- merged: Feb 24, 2011 12:36 PM ---
    Shameless bump, for great justice...

    ~Sol
     
  7. Offline

    Ryan Carretta

  8. Offline

    Sol

    Thanks a bunch Ryan! This will stop users from having infinite attempts at not failing unless I feel like it :D

    ~Sol
     
  9. Offline

    Sc1234freak

    This can be disabled with the essentials general plugin. The command blocker works at the server level, completely ignoring all permissions.

    Sc.
     
  10. Offline

    Sol

    I didn't want to use Essentials for one feature. I try to keep things as bloat-free as possible. I requested this, and it was delivered... and I thank Ryan for it.

    ~Sol
     
  11. Offline

    Plague

  12. Offline

    Ryan Carretta

    Sol, you should move to Plague's plugin. It's a better and more extensible implementation.
     
  13. Offline

    Sol

    @Plague
    Awesome thanks :D

    @Ryan Carretta
    Thanks again mate, after updating to 496 the plugin you worked up for me stopped loading and threw up some crazy error. I'll test out Plague's plugin now ;)

    ~Sol
     
  14. Offline

    Ryan Carretta

    Indeed, because mine was a hack-together and doesn't properly utilize onCommand. Test Plague's plugin...like I said it's likely a better solution. If it doesn't work for any reason I'll look at updating this.
     
  15. Offline

    Sol

    No it works great. Thanks for your effort though, it solved my problem for a while at least :D

    Kudos +1

    ~Sol
     

Share This Page