aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/commands/SetkeyCommand.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/Danker/commands/SetkeyCommand.java')
-rw-r--r--src/main/java/me/Danker/commands/SetkeyCommand.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/me/Danker/commands/SetkeyCommand.java b/src/main/java/me/Danker/commands/SetkeyCommand.java
index 9ad1abe..f2e58e5 100644
--- a/src/main/java/me/Danker/commands/SetkeyCommand.java
+++ b/src/main/java/me/Danker/commands/SetkeyCommand.java
@@ -8,7 +8,6 @@ import net.minecraft.command.ICommand;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ChatComponentText;
-import net.minecraft.util.EnumChatFormatting;
public class SetkeyCommand extends CommandBase implements ICommand {
@@ -36,8 +35,7 @@ public class SetkeyCommand extends CommandBase implements ICommand {
return;
}
- final ConfigHandler cf = new ConfigHandler();
- cf.writeStringConfig("api", "APIKey", arg1[0]);
+ ConfigHandler.writeStringConfig("api", "APIKey", arg1[0]);
player.addChatMessage(new ChatComponentText(TheMod.MAIN_COLOUR + "Set API key to " + TheMod.SECONDARY_COLOUR + arg1[0]));
}