Skip to content

A simple bukkit netty channel injector, allowing to inject new handlers to every netty channel of a bukkit server.

License

Notifications You must be signed in to change notification settings

unnamed/bukkit-channel-injector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()

About

A simple bukkit netty channel injector, allowing to inject new handlers to every netty channel of a bukkit server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages