Skip to content

This repository showcases a spigot plugin which has the ability to contain multiple plugins.

Notifications You must be signed in to change notification settings

mccormack-harry/NestedPlugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nested Plugins

This repository showcases a spigot plugin which has the ability to contain multiple plugins.

An example of when this might be useful, is if you are writing a collection of plugins for a single server.

The benefit of doing this rather than just writing one plugin with loads of features is that each feature has its own plugin instance for the purpose of registering listeners, tasks etc. In addition, each plugin is independent meaning:

  • They can have separate dependencies
  • They can depend on one another
  • If one plugin has an error onEnable, the rest will be unaffected
  • Each has their own DataFolder

image

[20:43:52 INFO]: [NestedPlugins] Loading NestedPlugins v1.0-SNAPSHOT
[20:43:52 INFO]: [ExampleNested] Loading ExampleNested v1.0-SNAPSHOT
[20:43:52 INFO]: [AnotherNested] Loading AnotherNested v1.0-SNAPSHOT
...
[20:43:53 INFO]: [NestedPlugins] Enabling NestedPlugins v1.0-SNAPSHOT
[20:43:53 INFO]: [ExampleNested] Enabling ExampleNested v1.0-SNAPSHOT
[20:43:53 INFO]: [AnotherNested] Enabling AnotherNested v1.0-SNAPSHOT
[20:43:53 INFO]: [AnotherNested] The value in ExampleNested is 5

About

This repository showcases a spigot plugin which has the ability to contain multiple plugins.

Resources

Stars

Watchers

Forks

Languages