Skip to content

Repository files navigation

PluginMessageFramework

Project is still a WIP, the framework can drastically change at any moment, use at your own risk.

PluginMessageFramework is a project evolved from the legacy project PluginMessageAPI+ and is licensed under the MIT License. It aims to provide a seamless plugin message api across multiple implementations allowing plugin messages to be handled as packet objects rather than simple primitive types.

Requirements

  • Java 7 or higher
  • SLF4J API & Implementation

Usage

Creating Packets

publicclassMyPacketextendsStandardPacket {
privatestaticfinallongserialVersionUID = 4714156896979723677L;
privateStringmessage;
publicMyPacket(Stringmessage) {
this.message = message;
}
publicStringgetMessage() {
returnmessage;
}
}

Please note that all fields must be of a type which implements java.io.Serializable otherwise you may need to customize the serialization and deserialization by implementing your own readObject(ObjectInputStream) and writeObject(ObjectOutputStream) methods.

Coming Soon

  • Dependency injection with GUICE

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages