Skip to content

Commit 94ea72c

Browse files
committed
first compiling commit
1 parent 6ccf527 commit 94ea72c

File tree

6 files changed

+23
-27
lines changed

6 files changed

+23
-27
lines changed

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ remoteMappings = https://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/con
2626
# restart Minecraft in development. Choose this dependent on your mod:
2727
# Do you need consistent player progressing (for example Thaumcraft)? -> Select a name
2828
# Do you need to test how your custom blocks interacts with a player that is not the owner? -> leave name empty
29-
developmentEnvironmentUserName = Developer
29+
developmentEnvironmentUserName = ZeekDaGeek
3030

3131
# Define a source file of your project with:
3232
# public static final String VERSION = "GRADLETOKEN_VERSION";
@@ -81,4 +81,4 @@ usesShadowedDependencies = false
8181
# Uncomment this to disable spotless checks
8282
# This should only be uncommented to keep it easier to sync with upstream/other forks.
8383
# That is, if there is no other active fork/upstream, NEVER change this.
84-
# disableSpotless = true
84+
disableSpotless = true

src/main/java/tv/zeekdageek/missingtweaks/LoggerMT.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import org.apache.logging.log4j.LogManager;
44
import org.apache.logging.log4j.Logger;
55

6-
import java.util.Formatter;
7-
86
public class LoggerMT
97
{
108
public static Logger logger = LogManager.getLogger(MissingTweaks.MODID);
@@ -13,7 +11,7 @@ public class LoggerMT
1311

1412
/**
1513
* General log helper.
16-
* @param message
14+
* @param message message
1715
*/
1816
public static void log(String message) {
1917
logger.info(message);
@@ -30,10 +28,10 @@ public static void vlog(String message) {
3028
logger.info(message);
3129
}
3230

33-
public static void vlog(String message, Object... args) {
31+
public static void vlog(String message, Object ... args) {
3432
if (!verbose)
3533
return;
3634

37-
logger.info(new Formatter().format(message, args).toString());
35+
logger.info(message, args);
3836
}
3937
}

src/main/java/tv/zeekdageek/missingtweaks/MissingTweaks.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,18 @@
33
//import com.zuxelus.gt6orehelper.config.ConfigHandler;
44
//import com.zuxelus.gt6orehelper.proxy.ServerProxy;
55

6-
import cpw.mods.fml.common.Loader;
76
import cpw.mods.fml.common.Mod;
87
import cpw.mods.fml.common.Mod.EventHandler;
9-
import cpw.mods.fml.common.SidedProxy;
10-
import cpw.mods.fml.common.event.*;
11-
import cpw.mods.fml.relauncher.Side;
12-
import net.minecraft.nbt.NBTTagCompound;
13-
import net.minecraftforge.client.ClientCommandHandler;
8+
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
9+
import cpw.mods.fml.common.event.FMLServerStartingEvent;
1410
import net.minecraftforge.common.MinecraftForge;
1511
import tv.zeekdageek.missingtweaks.common.CommandHandler;
1612
import tv.zeekdageek.missingtweaks.common.LightningHighjack;
1713

1814
@Mod(
1915
modid = Tags.MODID,
20-
name = Tags.MODNAME,
2116
version = Tags.VERSION,
17+
name = Tags.MODNAME,
2218
dependencies = "",
2319
guiFactory = "",
2420
acceptedMinecraftVersions = "[1.7.10]",
@@ -27,7 +23,7 @@
2723
public class MissingTweaks {
2824
public static final String NAME = Tags.MODNAME;
2925
public static final String MODID = Tags.MODID;
30-
public static final String VERSION = Tags.VERSION;
26+
public static final String MODVERSION = Tags.VERSION;
3127

3228
/*
3329
@SidedProxy(clientSide = "com.zuxelus.gt6orehelper.proxy.ClientProxy", serverSide = "com.zuxelus.gt6orehelper.proxy.ServerProxy")

src/main/java/tv/zeekdageek/missingtweaks/common/CommandHandler.java

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package tv.zeekdageek.missingtweaks.common;
22

3-
import net.minecraft.command.ICommand;
3+
import net.minecraft.command.CommandBase;
44
import net.minecraft.command.ICommandSender;
55
import net.minecraft.command.WrongUsageException;
66
import net.minecraft.entity.effect.EntityLightningBolt;
@@ -9,11 +9,12 @@
99
import net.minecraft.world.World;
1010
import tv.zeekdageek.missingtweaks.MissingTweaks;
1111

12+
import java.util.Arrays;
1213
import java.util.List;
1314

14-
public class CommandHandler implements ICommand
15+
public class CommandHandler extends CommandBase
1516
{
16-
private String CommandName;
17+
private final String CommandName;
1718

1819
public CommandHandler(String assignedName) {
1920
if (assignedName.isEmpty()) {
@@ -23,19 +24,24 @@ public CommandHandler(String assignedName) {
2324
}
2425
}
2526

27+
@Override
28+
public int getRequiredPermissionLevel() {
29+
return 3;
30+
}
31+
2632
@Override
2733
public String getCommandName() {
2834
return CommandName;
2935
}
3036

3137
@Override
32-
public String getCommandUsage(ICommandSender p_71518_1_) {
33-
return null;
38+
public String getCommandUsage(ICommandSender sender) {
39+
return "/missingtweaks [smite]";
3440
}
3541

3642
@Override
3743
public List getCommandAliases() {
38-
return null;
44+
return Arrays.asList("mt");
3945
}
4046

4147
@Override
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
package tv.zeekdageek.missingtweaks.common;
22

3-
public class Config
4-
{
5-
}
3+
public class Config {}
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
package tv.zeekdageek.missingtweaks.common;
22

3-
public class EventHandler
4-
{
5-
}
3+
public class EventHandler {}

0 commit comments

Comments
 (0)