From 9dcd3db024c6c8051d668df499e75d5ba6efca78 Mon Sep 17 00:00:00 2001 From: JOO200 Date: Sun, 31 May 2020 18:29:58 +0200 Subject: [PATCH] Removed wrong dependency injection note, added hint for dependency injections --- Using-ACF.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Using-ACF.md b/Using-ACF.md index fc489af..b6d7702 100644 --- a/Using-ACF.md +++ b/Using-ACF.md @@ -36,7 +36,8 @@ First you need to create a class that extends `BaseCommand`, then register that manager.registerCommand(new MyCommand()); ``` -If you need your plugin instance, pass it to your commands constructor like so (this is called dependency injection if you are not aware) +If you need your plugin instance, pass it to your commands constructor like so. +Take note that there is another possibility to use objects in your command class with [dependency injections](https://github.com/aikar/commands/wiki/Dependency-Injection). ```java manager.registerCommand(new MyCommand(myPlugin));