Permission node to use Command Blocks

Discussion in 'Archived: Plugin Requests' started by Hockeymikey, Mar 2, 2013.

  1. Offline


    Plugin category: Admin

    Suggested name: NoOPCB

    What I want: I want there to be permission nodes so none ops can use command blocks

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: NoOPCB.use

    When I'd like it by: As soon as possible

    Please note do not recommend me a plugin that makes a block into a command executing block. I need to use command blocks for an adventure map.
  2. I asked for this at the irc some time at the past, but they refused to implement this, I don't think they deside to implement this
  3. Offline


    Are you sure? I saw a similar request to implement it but a dev said it's a job for a plugin.
  4. Offline


    This is possible and very easy.
  5. Offline


    That's good. Could you do it or recommend a plugin that can? I do not have the skills to program this.
  6. Offline


    You could do this with Variable Triggers.
  7. Offline


    Ok thanks. Can you tell me alittle bit to help get me started?
  8. Offline


    I'm adding this to

    It's a pain in the arse to do or I'd have done it this way to start with, rather than using commands.

    Gimme a day or so and I'll be pushing some code.

    I'm pretty damn sure it cannot be done with variable triggers, the only way to do this is to handle the network packet yourself (e.g. via ProtocolLib), because the packet handling code for the packet involved generates no Bukkit events you can hook into.

    I'll probably allow restricting the commands used via the permission, for my own purposes I don't want people running things like /mvcreate, /mvdelete etc from command blocks.
  9. Offline


    Alright thank you. Can't wait to use it. The other fluff of the plugin I won't need though.
  10. Offline


    I'd do it as it's own plugin, but it depends on a lot of code in Instances, and is related to what Instances tries to achieve.

    For some reason there is no way in Bukkit to set the command (unless I missed it in the API) on a CommandBlock, and you have to resort to using NMS.

Share This Page