read the notes xd

This commit is contained in:
mohammed jasem alaajel 2021-06-14 09:02:02 +04:00 committed by Govindas
parent d905b1490f
commit a7f8f39675
1 changed files with 2 additions and 1 deletions

View File

@ -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");