CommandHook icon

CommandHook -----

Allow vanilla selectors in command blocks




Support version 1.21
----------, Jun 15, 2024

Support 1.20.6 version
Fix issue with targeting another plugin's selectors - see related issue on github

Plugin internals have been redone a bit and may break compatibility with previous Server versions. Please do test the plugin and report issues back.
----------, Jun 9, 2024

Support version 1.20.4
----------, Dec 10, 2023

Support version 1.20.2
----------, Oct 7, 2023

Support version 1.20
----------, Jun 10, 2023

Support version 1.19.4
----------, Mar 25, 2023

Added support for 1.19.3
----------, Dec 17, 2022

Add mappings for 1.19
----------, Jun 18, 2022

Last update introduced an issue with parsing selectors that had no arguments. Fixed the logic and added few tests...
----------, Apr 15, 2022

Plugin now handles spaces in selector's arguments, such as targeting player with custom made item

Thanks rykea for report!
----------, Mar 5, 2022

Add support for version 1.18.2

This is also first release that moved away from using reflection as server internals are still changing and plugin required to update anyway.
It should be compatible with any version from 1.13 up to 1.18.2
----------, Mar 5, 2022

Tested only on 1.17.1 & 1.18
2.0.0: Backwards compatibility is untested and might be broken.

Due to a time pressure I could not test more versions. Feel free to report back if it works for you!

I would like to thank you, the community, for reaching out to me with plugin issues. It helps me to fix bugs in lesser time span.

News:
- support for 1.18
- fixed printing into System.out, getLogger is used now (sorry about that!)
- Extended reflection mapping due to more methods being reobfuscated in 1.18

Promise:
- The only time I play Minecraft is when the new version arrives so I can update this plugin. I will release the source code of this plugin once I clean it up a bit. Don't expect much, it is a bit of a mess :)
- If this plugin would not get released for another major version (1.19) and you are up to the task, feel free to contact me or submit a PR.
----------, Dec 4, 2021

Updated mapping.
Tested on Spigot only as other forks are not available yet.
Backwards compatibility untested, but should work.
----------, Jun 13, 2021

Added method to validate 'level=x' arguments in selector.
Rewrites old syntax of 'l=x' and 'lm=x' to respective 'level=x' format.
Should support both 1.13 and 1.14
----------, May 5, 2019

Quick edit for 1.14 (method names changed)
----------, May 1, 2019

Tested & working on git-Spigot-f56e2e7-ad6070d.
b() method was given an overridePermissions boolean that caused the issue.
----------, Jan 31, 2019

This update handles InvocationTargetException in friendlier way. If the error was thrown because of bad input, you'll get more meaningful message like this:
CommandBlock at -105 84 -123 has thrown SyntaxException. Please check the input. (e[distance=..150,type=minecaft: player] (....150,type=<--[HERE]))
Also, if you have old CommandBlocks that use radius as 'r' instead of new 'distance', they will be (hopefully) auto fixed ( r=150 -> distance=..150)
----------, Jan 13, 2019

Edited RefUtil to match removed method. Sorry for the delay!
----------, Jan 4, 2019

Resource Information
Author:
----------
Total Downloads: 21,109
First Release: Oct 7, 2018
Last Update: Jun 15, 2024
Category: ---------------
All-Time Rating:
45 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings