[fix] stuff working now
This commit is contained in:
parent
6a85ecabc3
commit
116c3142e3
5 changed files with 30 additions and 31 deletions
|
@ -2,14 +2,25 @@ package net.saltymc.eaa.handler.commands;
|
|||
|
||||
import net.fabricmc.fabric.api.client.command.v1.FabricClientCommandSource;
|
||||
import net.minecraft.text.Text;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
public class EaaCommand implements Command {
|
||||
|
||||
private static final String COMMAND = "echo";
|
||||
private static final boolean INTERCEPT = true;
|
||||
private static final Logger LOGGER = LogManager.getLogger();
|
||||
|
||||
public EaaCommand(){
|
||||
LOGGER.info("Init EaaCommand");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean run( final FabricClientCommandSource cs, String[] args) {
|
||||
System.out.println("on Command: " + args[0]);
|
||||
|
||||
if (!args[0].equalsIgnoreCase(COMMAND)) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue