mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 06:28:53 +00:00
Assign commandManager
This commit is contained in:
1 parent
b7c2e3d4e4
commit
483144abb5
1 file changed
+2
-2
@@ -216,7 +216,7 @@ public final class CarbonChatBukkit extends JavaPlugin implements CarbonChat {
|
|||||||
|
|
||||||
private void setupCommands() {
|
private void setupCommands() {
|
||||||
try {
|
try {
|
||||||
final PaperCommandManager<CarbonUser> manager = new PaperCommandManager<>(this,
|
this.commandManager = new PaperCommandManager<>(this,
|
||||||
CommandExecutionCoordinator
|
CommandExecutionCoordinator
|
||||||
.simpleCoordinator(), sender -> {
|
.simpleCoordinator(), sender -> {
|
||||||
if (sender instanceof Player) {
|
if (sender instanceof Player) {
|
||||||
@@ -232,7 +232,7 @@ public final class CarbonChatBukkit extends JavaPlugin implements CarbonChat {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
CommandRegistrar.registerCommands(manager);
|
CommandRegistrar.registerCommands(this.commandManager);
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user