File tree Expand file tree Collapse file tree 6 files changed +23
-27
lines changed
src/main/java/tv/zeekdageek/missingtweaks Expand file tree Collapse file tree 6 files changed +23
-27
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 33import org .apache .logging .log4j .LogManager ;
44import org .apache .logging .log4j .Logger ;
55
6- import java .util .Formatter ;
7-
86public 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}
Original file line number Diff line number Diff line change 33//import com.zuxelus.gt6orehelper.config.ConfigHandler;
44//import com.zuxelus.gt6orehelper.proxy.ServerProxy;
55
6- import cpw .mods .fml .common .Loader ;
76import cpw .mods .fml .common .Mod ;
87import 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 ;
1410import net .minecraftforge .common .MinecraftForge ;
1511import tv .zeekdageek .missingtweaks .common .CommandHandler ;
1612import 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]" ,
2723public 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")
Original file line number Diff line number Diff line change 11package tv .zeekdageek .missingtweaks .common ;
22
3- import net .minecraft .command .ICommand ;
3+ import net .minecraft .command .CommandBase ;
44import net .minecraft .command .ICommandSender ;
55import net .minecraft .command .WrongUsageException ;
66import net .minecraft .entity .effect .EntityLightningBolt ;
99import net .minecraft .world .World ;
1010import tv .zeekdageek .missingtweaks .MissingTweaks ;
1111
12+ import java .util .Arrays ;
1213import 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
Original file line number Diff line number Diff line change 11package tv .zeekdageek .missingtweaks .common ;
22
3- public class Config
4- {
5- }
3+ public class Config {}
Original file line number Diff line number Diff line change 11package tv .zeekdageek .missingtweaks .common ;
22
3- public class EventHandler
4- {
5- }
3+ public class EventHandler {}
You can’t perform that action at this time.
0 commit comments