From fb5e6fa10b2f418a54dc1ca51d5bf8a5ea54d2f6 Mon Sep 17 00:00:00 2001 From: Pepich Date: Thu, 2 Feb 2017 20:41:15 +0100 Subject: [PATCH] Updated to implement default onEnable/onDisable --- src/com/redstoner/modules/CoreModule.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/com/redstoner/modules/CoreModule.java b/src/com/redstoner/modules/CoreModule.java index 6a026c6..8c78308 100644 --- a/src/com/redstoner/modules/CoreModule.java +++ b/src/com/redstoner/modules/CoreModule.java @@ -7,7 +7,7 @@ import com.redstoner.annotations.Version; * Examples are the ModuleLoader and the Debugger. * * @author Pepich */ -@Version(major = 1, minor = 0, revision = 0, compatible = -1) +@Version(major = 1, minor = 0, revision = 1, compatible = -1) public interface CoreModule extends Module { /** Core modules should always be enabled. */ @@ -16,4 +16,14 @@ public interface CoreModule extends Module { return true; } + + /** Core modules don't need to be enabled. */ + @Override + public default void onEnable() + {} + + /** Core modules don't need to be disabled. */ + @Override + public default void onDisable() + {} }