CommandHook 1.0.7

Allow vanilla selectors in command blocks

  1. _NewAge
    Native Minecraft Version:
    1.14
    Tested Minecraft Versions:
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    • 1.17
    This plugin adds the possibility to use vanilla selectors in non-vanilla commands written in CommandBlock.

    Since it hooks into vanilla functions, all of the selector arguments are parsed (@p[distance=..5])

    Keep in mind
    Selecting entities other than player isn't probably of any use, because after the result is obtained, it parses the command with entity name (Player or mob name), however all of the selectors should work.

    @p - targets nearest player
    @a - targets all players
    @r - targets random player
    @e - targets all entities
    @s - targets the executor (that is command block, not Player!)

    FAQ
    Q: Vanilla commands are not working.
    A: Plugin scans if the command inside the block starts with /minecraft: or minecraft: so the syntax is ex.: minecraft:kill @p[name="RandomPlayer"]
    TL;DR: just add minecraft: before it.

    If you have a problem or you have found an error, please text me with a short brief (logs are welcomed help)

Recent Updates

  1. 1.17 Update
  2. Player Level fix
  3. 1.14 support

Recent Reviews

  1. CreepyHut
    CreepyHut
    5/5,
    Version: 1.0.7
    great plugin to let you use permissions so players can add their own suffix or prefix colors!
  2. AdamsApple
    AdamsApple
    4/5,
    Version: 1.0.7
    I installed EssentialsX on my server which previously had exclusively command blocks for /give and /tp. Of course since essentials broke the command blocks, using the CommandHook plugin was able to fix some of the commands like /tp. Unfortunately /give still doesnt seem to work when executed from a command block.
  3. Slim_Shepherd
    Slim_Shepherd
    5/5,
    Version: 1.0.6
    Perfect. Huge help for running my server; thanks a lot!
    -------------------------------------------------------------------------------
  4. LoneDev
    LoneDev
    5/5,
    Version: 1.0.6
    Amazing! Thanks for this :D

    But seems that distance attributes are not working , very strange
  5. CallumW202
    CallumW202
    5/5,
    Version: 1.0.6
    Fantastic plugin, bridges the gap left after various changed to vanilla between versions.
  6. xBACONATORx
    xBACONATORx
    5/5,
    Version: 1.0.6
    Super helpful does its job works thx!
    ++++++++++++++++++++++++++++++++++++++++++++
  7. Espinete87
    Espinete87
    5/5,
    Version: 1.0.6
    Thanks goooooood! i was trying to understand why i cant make the command block use a command of a plugin, and i reach this plugin trought a forum, but i took hours to reach this.
    No i can make that anybody click in a button, and activate a hidden command block to execute a GUI from a plugin, thats super cool!!Thanks good job!
  8. jeroen053
    jeroen053
    5/5,
    Version: 1.0.6
    Solved all my problems! Thanks for this! You are awesome!
    Did not expect someone to fix this
  9. Heath
    Heath
    3/5,
    Version: 1.0.6
    It would be really nice if this could work with players too, and was open-source...
  10. Minecreeper.Isi
    Minecreeper.Isi
    1/5,
    Version: 1.0.6
    not working on paper. And no anser off all negative reports. not good support. Already deletet