Skip to content

Commit

Permalink
FIX register BuildModeCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
sanguine6660 committed Dec 19, 2023
1 parent 9ecea14 commit 1729bb2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

package com.izanagicraft.guard;

import com.izanagicraft.guard.commands.BuildModeCommand;
import com.izanagicraft.guard.commands.GuardCommand;
import com.izanagicraft.guard.commands.WorldGuardCommand;
import com.izanagicraft.guard.events.listener.*;
Expand Down Expand Up @@ -192,7 +193,8 @@ private void loadProviders() {
private void loadCommands() {
CommandMap commandMap = Bukkit.getCommandMap();
List.of(
new WorldGuardCommand(this)
new WorldGuardCommand(this),
new BuildModeCommand(this)
).forEach(command -> commandMap.register("guard", (GuardCommand) command));
}

Expand Down

0 comments on commit 1729bb2

Please sign in to comment.