Overhaul of Patchwork and Registration system, fix-up for all plugin.yml files and removal of .negates(0 and .value() from DefaultNodes in turn for the .expiry() system removing the redundancies. (#21)

Co-authored-by: eva <66324759+evax64@users.noreply.github.com>
This commit is contained in:
Eva
2023-08-11 19:15:36 +01:00
committed by GitHub
parent 368f3cae12
commit 3e8c63221d
24 changed files with 113 additions and 158 deletions

View File

@ -1,6 +1,7 @@
package fns.corvo;
import fns.patchwork.base.Patchwork;
import fns.patchwork.base.Registration;
import org.bukkit.plugin.java.JavaPlugin;
public class Corvo extends JavaPlugin
@ -8,18 +9,14 @@ public class Corvo extends JavaPlugin
@Override
public void onDisable()
{
Patchwork.getInstance()
.getRegistrations()
.getModuleRegistry()
Registration.getModuleRegistry()
.removeModule(this);
}
@Override
public void onEnable()
{
Patchwork.getInstance()
.getRegistrations()
.getModuleRegistry()
Registration.getModuleRegistry()
.addModule(this);
}
}

View File

@ -1,5 +1,6 @@
name: Corvo
main: me.totalfreedom.corvo.Corvo
main: fns.corvo.Corvo
api-version: 1.20
version: 1.0.0
author: TotalFreedom
description: Services and Listeners for the Freedom Network Suite