Skip to content

Latest commit

History

44 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

CommandHook

Minecraft plugin for Bukkit API compatible servers. Vanilla selector parsing for non-vanilla commands.

Supported versions:1.13 up to 1.21

Note: Plugin is not in active development, only bugfixes and ports to newer MC runtimes are done.

That means updates may be slow from version to version as I am no longer playing Minecraft or maintaining any server since 2019. I do welcome pull requests and issue notices, though.

Contact

Structure

To achieve easier maintainability, the plugin was split into multiple maven modules
These can be found under modules folder

ModuleDescription
pluginSpigot / Paper plugin
apiConnection between the plugin and mapping modules
providerMapping provider for both Spigot and Paper

Adding to the modules above, you may configure the provider module to contain at least one or more mappings.

As of CommandHook 3.0.0, different mappings are available for Spigot runtime and Paper runtime. These are configurable in provider modules in both spigot and paper directory


Paper mappings

Since 1.20.5 Paper no longer relocates CraftBukkit internals and switched to mojang mapped runtime. That means plugin should be upwards compatible without any work whilst running on Paper based servers.

MappingDescription
mojang-mappedMapping for Paper 1.20.6+ (Mojang-mapped)

Spigot mappings

Note: As of CommandHook 3.0.0, Only latest version is supported, all other mappings are subject to removal in future versions.

NMSDescription
v1_21_R1NMS mapping for Minecraft 1.21
v1_20_R4NMS mapping for Minecraft 1.20.5 - 1.20.6
v1_20_R3NMS mapping for Minecraft 1.20.3 - 1.20.4
v1_20_R2NMS mapping for Minecraft 1.20.2
v1_20_R1NMS mapping for Minecraft 1.20 - 1.20.1
v1_19_R3NMS mapping for Minecraft 1.19.4
v1_19_R2NMS mapping for Minecraft 1.19.3
v1_19_R1NMS mapping for Minecraft 1.19 - 1.19.2
v1_18_R2NMS mapping for Minecraft 1.18.2
v1_18_R1NMS mapping for Minecraft 1.18 - 1.18.1
v1_18NMS mapping for Minecraft 1.18 - 1.18.1
v1_17NMS mapping for Minecraft 1.17 - 1.17.1
v1_16_R3NMS mapping for Minecraft 1.16.4 - 1.16.5
v1_16_R2NMS mapping for Minecraft 1.16.2 - 1.16.3
v1_16_R1NMS mapping for Minecraft 1.16.1
v1_15NMS mapping for Minecraft 1.15 - 1.15.2
v1_14NMS mapping for Minecraft 1.14 - 1.14.4
v1_13_R2NMS mapping for Minecraft 1.13.1 - 1.13.2
v1_13_R1NMS mapping for Minecraft 1.13

Knowing the above, to support newer Spigot version, a new module has to be created.
However, in comparison to reflection, compile safety is met. No more guesses if field/method exists.


License

GPL-3.0 License

All files are licensed under GPL 3.0 license

About

Minecraft plugin for Bukkit API compatible servers. Vanilla selector parsing for non-vanilla commands.

Topics

Resources

Stars

11 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages