From a7f8f3967571eaa770958e0ae3c6769c6290e7b4 Mon Sep 17 00:00:00 2001 From: mohammed jasem alaajel <34905970+ham1255@users.noreply.github.com> Date: Mon, 14 Jun 2021 09:02:02 +0400 Subject: [PATCH] read the notes xd --- .../src/main/java/net/limework/rediskript/RediSkript.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RediSkript-bukkit/src/main/java/net/limework/rediskript/RediSkript.java b/RediSkript-bukkit/src/main/java/net/limework/rediskript/RediSkript.java index b24c2e4..6ab3837 100644 --- a/RediSkript-bukkit/src/main/java/net/limework/rediskript/RediSkript.java +++ b/RediSkript-bukkit/src/main/java/net/limework/rediskript/RediSkript.java @@ -92,7 +92,8 @@ public class RediSkript extends JavaPlugin { return redisController; } - //Developer note: This is use for skript-reflect! DO NOT USE WITHIN THE PLUGIN! use depend injection with constructors + //Developer note: This is use for skript-reflect! and also for plugin use for static stuff -> skript effects classes + //DO NOT USE THIS IN NON STATIC CLASSES public static RediSkript getAPI(){ //this safer than making static. return (RediSkript) Bukkit.getServer().getPluginManager().getPlugin("RediSkript-bukkit");