forked from Limework/RediSkript
read the notes xd
This commit is contained in:
parent
d905b1490f
commit
a7f8f39675
@ -92,7 +92,8 @@ public class RediSkript extends JavaPlugin {
|
|||||||
return redisController;
|
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(){
|
public static RediSkript getAPI(){
|
||||||
//this safer than making static.
|
//this safer than making static.
|
||||||
return (RediSkript) Bukkit.getServer().getPluginManager().getPlugin("RediSkript-bukkit");
|
return (RediSkript) Bukkit.getServer().getPluginManager().getPlugin("RediSkript-bukkit");
|
||||||
|
Loading…
Reference in New Issue
Block a user