diff --git a/src/main/java/com/lumijiez/luminous/HelloCommand.java b/src/main/java/com/lumijiez/luminous/HelloCommand.java deleted file mode 100644 index 9e0c484..0000000 --- a/src/main/java/com/lumijiez/luminous/HelloCommand.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.lumijiez.luminous; - -import net.minecraft.command.CommandBase; -import net.minecraft.command.ICommandSender; -import net.minecraft.util.ChatComponentText; - -public class HelloCommand extends CommandBase { - - @Override - public String getCommandName() { - return "hello"; - } - - @Override - public int getRequiredPermissionLevel() { - return 0; - } - - @Override - public boolean canCommandSenderUseCommand(ICommandSender sender) { - return true; - } - - @Override - public String getCommandUsage(ICommandSender sender) { - return "/hello"; - } - - @Override - public void processCommand(ICommandSender sender, String[] args) { - sender.addChatMessage(new ChatComponentText("Hello!")); - } -} diff --git a/src/main/java/com/lumijiez/luminous/Luminous.java b/src/main/java/com/lumijiez/luminous/Luminous.java index 274a3cd..19bf797 100644 --- a/src/main/java/com/lumijiez/luminous/Luminous.java +++ b/src/main/java/com/lumijiez/luminous/Luminous.java @@ -2,12 +2,8 @@ package com.lumijiez.luminous; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.event.FMLPreInitializationEvent; -import cpw.mods.fml.common.event.FMLServerStartingEvent; -import cpw.mods.fml.common.eventhandler.EventPriority; import cpw.mods.fml.common.eventhandler.SubscribeEvent; -import cpw.mods.fml.common.gameevent.TickEvent; import net.minecraft.client.Minecraft; -import net.minecraftforge.client.event.RenderWorldEvent; import net.minecraftforge.client.event.RenderWorldLastEvent; import net.minecraftforge.common.MinecraftForge; @@ -29,11 +25,6 @@ public class Luminous { } } - @Mod.EventHandler - public void onServerStarting(FMLServerStartingEvent event) { - event.registerServerCommand(new HelloCommand()); - } - @Mod.EventHandler public void preInit(FMLPreInitializationEvent event) { MinecraftForge.EVENT_BUS.register(this);