https://github.com/unnamed/bukkit-channel-injector
A simple bukkit netty channel injector, allowing to inject new handlers to every netty channel of a bukkit server.
https://github.com/unnamed/bukkit-channel-injector
Last synced: about 2 months ago
JSON representation
A simple bukkit netty channel injector, allowing to inject new handlers to every netty channel of a bukkit server.
- Host: GitHub
- URL: https://github.com/unnamed/bukkit-channel-injector
- Owner: unnamed
- License: mit
- Created: 2021-07-11T22:49:11.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-15T17:53:45.000Z (almost 3 years ago)
- Last Synced: 2025-03-26T13:38:25.406Z (2 months ago)
- Language: Java
- Size: 10.7 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BukkitChannelInjector
A simple bukkit netty channel injector, allowing to inject new handlers to every netty channel of a bukkit server.## Usage
You have 2 ways of using it, as a plugin which you depend of, or as a library.
### As a plugin
Just add a depends in your `plugin.yml` and use `ServerInjector#getOrCreate(Plugin)` to get an instance of ServerInjector on your onLoad.
With that instance you can add injectors for every channel.
### As a library
First of all things, relocate the library into another package to avoid incompatibilites.
Then, at your onEnable you do exactly the same as when using this api as a plugin, and after that you call `ServerInjector#injectServer()`.
Also at your onDisable you should call `ServerInjector#removeServerInjection()`