PluginX Framework
Revolutionizing Minecraft Plugin Development!
Inspired by the magic of
Spring Boot, we bring you a powerful framework equipped with intuitive annotations and seamless dependency injection. Build robust Minecraft plugins with ease, efficiency, and elegance. Let PluginX Framework be the backbone of your next masterpiece. Dive into a world where code meets creativity!
THIS PROJECT DOES NOT CONTAIN SPRING BOOT FRAMEWORK
The PluginX Framework is just starting out, like a baby plant. We're working hard to make it bigger and better! Soon, there will be easy-to-read guides and cool new features. Thanks for being with us from the start. Big things are coming, so stay tuned!
Version 0.1.2 - Documentation (NOT DONE):
Project Setup
- add the jar file to you maven project as dependency
- setup maven-shade plugin to make shaded jar, including the framework in itself
Plugin Class
Code (Java):
public
class MyAwesomePlugin
extends JavaPlugin
{
public
void onEnable
(
)
{
PluginXLauncher.
onEnable
(
this
)
;
}
public
void onDisable
(
)
{
PluginXLauncher.
onDisable
(
)
;
}
}
Annotations like in Spring Boot
Annotations like
@.Service,
@.Component,
@.Autowired... you can use in the same manner as in Spring Boot. However there all our specific annotations to make EventListener, plugin commands etc...
Code (Java):
@Service
public
class MyService
{
@Autowired
private MySecondService mySecondService
;
@PostConstruct
private
void init
(
)
{
// Do something on service init
}
}
Specific annotations
@.EventListener,
@.Command
Plugins that use this Framework
[1.16+] ⚡ ProLamp ⚡ :: Master the Home Lighting with a Click! Photocells & Night lamps, NO Redstone!