mirror of
https://github.com/JonasunderscoreJones/ConsoleMC.git
synced 2025-10-23 10:39:18 +02:00
Added basic command structure with console feedback
This commit is contained in:
parent
c215bc41dd
commit
7784f65c74
20 changed files with 478 additions and 37 deletions
|
@ -1,6 +1,7 @@
|
|||
package me.jonasjones.consolemc;
|
||||
|
||||
import me.jonasjones.consolemc.command.RunCommand;
|
||||
import me.jonasjones.consolemc.config.ModConfigs;
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -11,13 +12,15 @@ public class ConsoleMC implements ModInitializer {
|
|||
// It is considered best practice to use your mod id as the logger's name.
|
||||
// That way, it's clear which mod wrote info, warnings, and errors.
|
||||
public static final Logger LOGGER = LoggerFactory.getLogger("consolemc");
|
||||
public static String MOD_ID = "consolemc";
|
||||
|
||||
private static void registerCommands() {
|
||||
public static void registerCommands() {
|
||||
CommandRegistrationCallback.EVENT.register(RunCommand::register);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
ModConfigs.registerConfigs();
|
||||
registerCommands();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue