Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-732

Command Block Processing Events.

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None

      I tried several times but failed miserably. Maybe someone else can get a functional PR?

      I was thinking 2 events...

      One to just ask if execution of the command is allowed through a command block. However this can be accomplished via the BlockRedstoneEvent somewhat. But I'd rather be safe and catch it at the execution level.

      Okay now on to the real big and ultra-helpful one.

      Looking at the source in net.minecraft.server.CommandBlockListenerAbstract, a method of customising buildCommands() would be amazing. I was thinking one of two things, events, or editing the SimpleCommandMap. However I can see editing the SimpleCommandMap leading to several large plugins breaking. (That's life but what's the point if there's a way to do it without it breaking anything).

      So I was thinking have it call events. I tried and failed miserably, I also didn't know where to put and name the Event.

            Unassigned Unassigned
            cory_redmond Cory Redmond
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: