CommandHook 1.0.4

Allow vanilla selectors in command blocks

  1. _NewAge
    Native Minecraft Version:
    Tested Minecraft Versions:
    • 1.13
    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!)

    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. QuickFix for newer Spigot!
  2. Error wrapping
  3. 1.13.2 Fix!

Recent Reviews

  1. HassyRassy
    Version: 1.0.4
    I'm not sure if this is supposed to allow me to use @p @a, etc in plugin commands or not. but nothing has changed after I installed this. vanilla commands work with "minecraft:" in front of them just as it was before. plugin commands cant use with @p @, etc.
  2. Redned
    Version: 1.0.4
    Simple yet outstanding plugin that fixed many problems with my server when updating to 1.13. It even has an extra side bonus of updating radius in selectors to the new distance replacement in 1.13.

    Amazing piece of work and cannot be more grateful for this plugin. Keep up the great work!
  3. Rakaan
    Version: 1.0.3
    After almost going rm -rf *
    Found out that essentials does not support the @whatever.
    This magic plugin made it work. Great work
  4. Pangamma
    Version: 1.0.3
    Works great. Thanks! Hope we can get this logic into the spigot commands logic, but for now this works great.
  5. Curtis73
    Version: 1.0.2
    Great plugin, saved hours of hunting and re-doing all of our command blocks! Thank you!
  6. derFlo1909
    Version: 1.0.2
    This realy saved my life. There are some many homebrew plugins on my server, that do rely on @p oder @r. This plugin bringing that functionality back is just wonderfull.
  7. CreepyHut
    Version: 1.0.2
    Great plugin! Solves a crucial problem for my server and lets my players be able to choose their name color and much more
  8. redbau
    Version: 1.0.1
    Great simple plugin that fills an excellent need since Spigot broke support for auto converting @p to playername in command blocks.
  9. -BeefSoup-
    Version: 1.0.1
    Amazing fix to this issue, Hopefully, they fix this bug soon. For now though I highly recommend this!
  10. Kepuli
    Version: 1.0.1
    Excellent plugin. Saved a LOT of headache of moving a server from 1.12.x to 1.13.2