public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity)
    {
           if ((par5Entity.ridingEntity == null) && (par5Entity.riddenByEntity == null) && ((par5Entity instanceof EntityPlayerMP)))
           {
                  EntityPlayerMP player = (EntityPlayerMP) par5Entity;
                  ModLoader.getMinecraftServerInstance();
                  MinecraftServer mServer = MinecraftServer.getServer();

                  if (player.timeUntilPortal > 0)
                  {
                        player.timeUntilPortal = 10;
                  }
                  else if (player.dimension != RegisterDimension.dimensionID)
                  {
                        player.timeUntilPortal = 10;

                        player.mcServer.getConfigurationManager().transferPlayerToDimension(player, RegisterDimension.dimensionID, new TeleporterAlien(mServer.worldServerForDimension(RegisterDimension.dimensionID)));
                  }
                  else
                  {
                        player.timeUntilPortal = 10;
                        player.mcServer.getConfigurationManager().transferPlayerToDimension(player, 0, new TeleporterAlien(mServer.worldServerForDimension(1)));
                  }
           }
    }