aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/polyfrost/oneconfig/command/OneConfigCommand.java
diff options
context:
space:
mode:
authornextdaydelivery <12willettsh@gmail.com>2022-02-12 13:02:02 +0000
committernextdaydelivery <12willettsh@gmail.com>2022-02-12 13:02:02 +0000
commitaba637fd14fbcbda7e036874d164ddba8236e739 (patch)
tree57fcded0100b95bb6f6c0cae86c142c57c46edb7 /src/main/java/io/polyfrost/oneconfig/command/OneConfigCommand.java
parent2231da6af9982840fa9d3bd24c4333bdbbe19cc2 (diff)
downloadOneConfig-aba637fd14fbcbda7e036874d164ddba8236e739.tar.gz
OneConfig-aba637fd14fbcbda7e036874d164ddba8236e739.tar.bz2
OneConfig-aba637fd14fbcbda7e036874d164ddba8236e739.zip
more theme stuff
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/command/OneConfigCommand.java')
-rw-r--r--src/main/java/io/polyfrost/oneconfig/command/OneConfigCommand.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/command/OneConfigCommand.java b/src/main/java/io/polyfrost/oneconfig/command/OneConfigCommand.java
index 3433c56..d462c5e 100644
--- a/src/main/java/io/polyfrost/oneconfig/command/OneConfigCommand.java
+++ b/src/main/java/io/polyfrost/oneconfig/command/OneConfigCommand.java
@@ -1,14 +1,17 @@
package io.polyfrost.oneconfig.command;
import io.polyfrost.oneconfig.gui.Window;
+import io.polyfrost.oneconfig.themes.Themes;
import io.polyfrost.oneconfig.utils.TickDelay;
import net.minecraft.client.Minecraft;
import net.minecraft.command.CommandException;
import net.minecraft.command.ICommand;
import net.minecraft.command.ICommandSender;
import net.minecraft.util.BlockPos;
+import net.minecraft.util.ChatComponentText;
import org.jetbrains.annotations.NotNull;
+import java.io.File;
import java.util.ArrayList;
import java.util.List;
@@ -41,6 +44,10 @@ public class OneConfigCommand implements ICommand {
@Override
public void processCommand(ICommandSender sender, String[] args) throws CommandException {
new TickDelay(() -> mc.displayGuiScreen(new Window()), 1);
+ if(args != null) {
+ mc.thePlayer.addChatMessage(new ChatComponentText("hi"));
+ Themes.openTheme(new File("C:\\Users\\Harry\\Documents\\Coding\\Minecraft\\Forge1.8.9\\OneConfig\\run\\OneConfig\\Themes\\one.zip"));
+ }
}
@Override