Skip to content

Commit 0a773b0

Browse files
committed
Spigot: Finish formatter command
1 parent de4050b commit 0a773b0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Spigot/src/main/java/me/innectic/permissify/spigot/PermissifyMain.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
import lombok.Getter;
2828
import me.innectic.permissify.spigot.commands.PermissifyCommand;
29+
import me.innectic.permissify.spigot.commands.permissify.FormatCommand;
2930
import me.innectic.permissify.spigot.events.PlayerChat;
3031
import me.innectic.permissify.spigot.events.PlayerJoin;
3132
import me.innectic.permissify.api.PermissifyAPI;
@@ -53,6 +54,7 @@ public class PermissifyMain extends JavaPlugin {
5354

5455
@Getter private GroupCommand groupCommand;
5556
@Getter private PlayerCommand playerCommand;
57+
@Getter private FormatCommand formatCommand;
5658

5759
@Override
5860
public void onEnable() {

Spigot/src/main/java/me/innectic/permissify/spigot/commands/PermissifyCommand.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ public boolean onCommand(CommandSender sender, Command command, String s, String
109109
return;
110110
}
111111
sender.sendMessage(ColorUtil.makeReadable(response.getResponse()));
112+
} else if (args[0].equalsIgnoreCase("format")) {
113+
CommandResponse response = plugin.getFormatCommand().handleSetFormat(sender, ArgumentUtil.getRemainingArgs(2, args));
114+
sender.sendMessage(ColorUtil.makeReadable(response.getResponse()));
112115
}
113116
}
114117
});

0 commit comments

Comments
 (0)