aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/commands/ReloadConfigCommand.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-11-21 19:16:08 -0500
committerbowser0000 <bowser0000@gmail.com>2020-11-21 19:16:08 -0500
commit43c6b9c0387eb0294d12f9de22baad7f9235b86f (patch)
tree8af2acaf7ed14d518984b83a56f8a617e2c4abdd /src/main/java/me/Danker/commands/ReloadConfigCommand.java
parentb8481811e5e25f2a710053444347295010a6155c (diff)
downloadSkyblockMod-43c6b9c0387eb0294d12f9de22baad7f9235b86f.tar.gz
SkyblockMod-43c6b9c0387eb0294d12f9de22baad7f9235b86f.tar.bz2
SkyblockMod-43c6b9c0387eb0294d12f9de22baad7f9235b86f.zip
Access static methods in static ways and remove unused imports
Diffstat (limited to 'src/main/java/me/Danker/commands/ReloadConfigCommand.java')
-rw-r--r--src/main/java/me/Danker/commands/ReloadConfigCommand.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/me/Danker/commands/ReloadConfigCommand.java b/src/main/java/me/Danker/commands/ReloadConfigCommand.java
index 113bbc4..c4ad036 100644
--- a/src/main/java/me/Danker/commands/ReloadConfigCommand.java
+++ b/src/main/java/me/Danker/commands/ReloadConfigCommand.java
@@ -7,7 +7,6 @@ import net.minecraft.command.CommandException;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ChatComponentText;
-import net.minecraft.util.EnumChatFormatting;
public class ReloadConfigCommand extends CommandBase {
@@ -29,8 +28,7 @@ public class ReloadConfigCommand extends CommandBase {
@Override
public void processCommand(ICommandSender arg0, String[] arg1) throws CommandException {
final EntityPlayer player = (EntityPlayer)arg0;
- final ConfigHandler cf = new ConfigHandler();
- cf.reloadConfig();
+ ConfigHandler.reloadConfig();
player.addChatMessage(new ChatComponentText(TheMod.MAIN_COLOUR + "Reloaded config."));
}