⭐Plugin Patches / Hooks
Hooks that only get patched & unpatched per plugin.
Automatic Way
In CarbonPlugin
, Carbon already handles all the logic for patching / unpatching your instructions, making it easier so all you need to focus on is the actual implementation of your plugin.
You need to add this line which lets Carbon know that it should automatically handle everything for you.
Manual Way
There are 2 ways you can create your own hooks, which are fairly similar in execution.
Carbon automatically includes the Harmony library into the compiler, which means it's not necessary to do // Reference: 0Harmony
.
Here's an example to how this works when you manually add patches to your plugin:
Last updated