title: Minecraft Forge Custom Player Command Issues
body: <p>I am trying to make a new command for the first time and was following <a href="http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/1571462-1-6-4-forge-command-tutorials" rel="nofollow">this tutorial</a>
  which is slightly old but I believe will still work. After finishing it I tried running my mod and everything ran fine but my command did not exist. Here is my code:</p>
  
  <pre><code>public class MainRegistry {
      @EventHandler
      public void serverStart(FMLServerStartingEvent event) {
          MinecraftServer server = MinecraftServer.getServer();
          ICommandManager command = server.getCommandManager();
          ServerCommandManager manager = (ServerCommandManager) command;
          manager.registerCommand(new FireBall5());
      }
  
  }
  </code></pre>
  
  <p>And my actual <code>CommandBase</code> class:</p>
  
  <pre><code>public class FireBall5 extends CommandBase {
      @Override
      public String getCommandName() {
          return "fireball 5";
      }
  
      @Override
      public String getCommandUsage(ICommandSender var1) {
          return "Shoots fireball with explosive power 5";
      }
  
      @Override
      public void processCommand(ICommandSender icommandsender, String[] var2) {
          if (icommandsender instanceof EntityPlayer) {
              EntityPlayer player = (EntityPlayer) icommandsender;
              World par2World = player.worldObj;
              if (!par2World.isRemote)
                  par2World.spawnEntityInWorld(new PlayerFireBall(par2World, 5.0f));
          }
  
      }
  
  }
  </code></pre>
  
  <p>It is calling an entity <code>PlayerFireBall</code> which I created myself and is simply a fireball with increased explosion power.</p>