Source-checkedAdmin & protection

CommandHook

by _NewAge · for Minecraft

Allow vanilla selectors in command blocks

25KDownloads
2 yr agoLast updated
Spigot · PaperLoaders
1.21Latest game version

About CommandHook

From SpigotMC

Allow vanilla selectors in command blocks

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)

Highlights

From source data

Game versions

Supports 10 Minecraft versions, the newest being 1.21.

Loaders

Runs on Spigot and Paper.

Footprint

Rated a light load on a server.

CommandHook on Nxeon

From our catalogue
One-click install
Supported on Nxeon Minecraft servers, for Paper servers. We download it from SpigotMC, place it, and restart the server.
Server side
Required on the server
Server type needed
Spigot, Paper
Server load
light
Smallest plan we suggest
Minecraft — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
3.1.0, released 2024-06-15

Game versions by loader

LoaderGame versionsNewest
Paper1.13 to 1.21 (10 versions)1.21
Spigot1.13 to 1.21 (10 versions)1.21

From 10 recorded builds of CommandHook.

Recent builds

BuildReleasedGame versionsLoaders
3.1.02024-06-151.13 to 1.21 (10 versions)Spigot, Paper
3.0.02024-06-09n/aSpigot, Paper
2.4.22023-12-10n/aSpigot, Paper
2.4.12023-10-07n/aSpigot, Paper
2.4.02023-06-10n/aSpigot, Paper
2.3.12023-03-25n/aSpigot, Paper

Run CommandHook on a Minecraft server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on SpigotMC as “Admin”

Admin & protection

Permissions, moderation, anti-cheat and land protection for the people running the server.

Runs on your server

From source side support

SpigotMC lists CommandHook as required on the server. Check its SpigotMC page to see whether players need it too.

Compatibility

Game
Minecraft
Loaders
SpigotPaper
Runs on
Serverrequired on the server
Game versions
1.21 and 9 earlier
Requires
One-click install needs a Paper server.

Verified at the source

  • ✓SpigotMCOfficial listing, checked 2026-10-02Open ↗
  • ✓Author_NewAge, as published on SpigotMC
  • ✓LicenseNot published by the sourceFree

CommandHook, answered

Generated from the mod’s own source data.

Do my players need to install CommandHook?

SpigotMC lists CommandHook as required on the server. Check its SpigotMC page to see whether players need it too.

Which loaders does it support?

Spigot and Paper.

Is it free?

Yes. CommandHook is free to download from SpigotMC.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run CommandHook on a Minecraft server.

Deploy in about a minute from $4.99 a month, then add CommandHook in one click.