diff options
| author | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2021-03-27 20:37:19 +0000 |
|---|---|---|
| committer | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2021-03-27 20:37:19 +0000 |
| commit | 4d8ab12cc609e745386e40a4b8b2e474503b5496 (patch) | |
| tree | bb2f67588ce6a06357eb4aa75e9a28bb3e827f6e /src/main/java | |
| parent | 43083631c6cce8533ba5b05bd2014269d65a950c (diff) | |
Fix null command
- Closes #155
Diffstat (limited to 'src/main/java')
| -rw-r--r-- | src/main/java/com/leonardobishop/quests/Quests.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/leonardobishop/quests/Quests.java b/src/main/java/com/leonardobishop/quests/Quests.java index 1997699b..1da974a3 100644 --- a/src/main/java/com/leonardobishop/quests/Quests.java +++ b/src/main/java/com/leonardobishop/quests/Quests.java @@ -156,7 +156,7 @@ public class Quests extends JavaPlugin { dataGenerator(); setupVersionSpecific(); - Bukkit.getPluginCommand("quests").setExecutor(new CommandQuests(this)); + super.getCommand("quests").setExecutor(new CommandQuests(this)); Bukkit.getPluginManager().registerEvents(new EventPlayerJoin(this), this); Bukkit.getPluginManager().registerEvents(new MenuController(this), this); Bukkit.getPluginManager().registerEvents(new EventPlayerLeave(this), this); |
